Jump to content

Leaderboard

  1. GLAVCVS

    GLAVCVS

    Community Member


    • Points

      3

    • Posts

      668


  2. Danielm103

    Danielm103

    Community Member


    • Points

      3

    • Posts

      205


  3. Nikon

    Nikon

    Community Member


    • Points

      2

    • Posts

      508


  4. Steven P

    Steven P

    Trusted Member


    • Points

      1

    • Posts

      2,822


Popular Content

Showing content with the highest reputation on 05/16/2025 in all areas

  1. Try this, you might need to sign up to The Swam https://www.theswamp.org/index.php?topic=52473.msg574001#msg574001
    1 point
  2. from pyrx import Rx, Ge, Gi, Db, Ap, Ed import traceback from shapely import Polygon @Ap.Command() def doit(): try: db = Db.curDb() desc = Db.Polyline.desc() ps, id1, _ = Ed.Editor.entSel("\nPline1 :", desc) ps, id2, _ = Ed.Editor.entSel("\nPline2 :", desc) pline1 = Db.Polyline(id1) pline2 = Db.Polyline(id2) polygon1 = Polygon(pline1.toList()) polygon2 = Polygon(pline2.toList()) res = polygon1.intersection(polygon2) pl3 = Db.Polyline(list(res.exterior.coords)) pl3.setColorIndex(1) db.addToModelspace(pl3) print(res.area, pl3.getArea()) except Exception as err: traceback.print_exception(err)
    1 point
  3. (defun c:alertMg( ) (alert "¡Muchas gracias!") (princ) ) (c:alertMg)
    1 point
  4. Thanks, it solved the problem.
    1 point
  5. Another option: disable object snaps
    1 point
  6. It's probably OSMODE. When the pickbox on the screen is as large as the polyline's movement, if the 'endpoint' object snap is enabled, then (command "_pline" ...) it won't be able to avoid the OSMODE magnet. But if you zoom in, the pickbox will be smaller, and the problem won't occur. So, simply write on the first line of code: (setvar "OSMODE" 0)
    1 point
  7. It’s just another tool in the toolbox, right? acedTraceBoundary is a good option too
    1 point
  8. With shapely, you can make computations without the having the entities in the drawing. There are other calculations too https://shapely.readthedocs.io/en/stable/manual.html
    1 point
×
×
  • Create New...