Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
AutoCAD 2024 Ajuda | EXTRIM (Express Tool) | Autodesk
GIVEN RECTANGLE THAT RECEIVES POINTS P1 P2 P3 AND P4
(command "_.PLINE" "_non" p1 "_non" p2 "_non" p3 "_non" p4 "_C")
(setq rectEnt (entlast)) ;; saves the extra rectangle drawn
;finds the reference of what is the center and the external
cross between p1 and p3)
(setq ssREC (ssget "C" p1 p3))
;; Checks if there are objects to cut and valid rectangle
(if (and rectEnt ssREC )
(progn
;; Uses the rectangle as limit for EXTRIM and ssREC as reference to cut objects that will be inside the rectangle
(command "_.EXTRIM" rectEnt "" ssREC "")
)
)
;any suggestions on how to make this work?
Solved! Go to Solution.