Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I would be very grateful if anyone can help me with a lisp that disconnects all the structures from their pipes in one time in the drawing
I have this thing but it does not work
Thanks in advance
(defun c:DISCONNECTSTRUCTURES (/ ss i ent)
;; Try to select all pipe structure objects
(command "._SELECTSIMILAR" "SI" "ALL")
(setq ss (ssget "P" '((0 . "AeccDbPipeStructure"))))
(if ss
(progn
(setq i 0)
(repeat (sslength ss)
(setq ent (ssname ss i))
;; Use the Civil 3D command to disconnect the structure
(command "._AeccStructureDisconnect" ent "")
(setq i (1+ i))
)
(princ (strcat "\nDisconnected " (itoa (sslength ss)) " structures."))
)
(princ "\nNo pipe structures found in drawing.")
)
(princ)
)
Solved! Go to Solution.