![]() |
|
![]() |
|
![]() |
|
![]() |
Civil 3D 2017 ~ Windohz 7
Dropbox
Try:Code:(foreach com (xins:massoc "compressor" lst) ;; For the contents of every <compressor> tag in the <rack> ;; Insert Block at insertion point 'ins' (setq ss (ssadd) tmp ;; VLA Block Reference object (vla-insertblock spc ;; Modelspace object (vlax-3d-point ins) ;; Insertion point Safearray Variant "M-GROUP-CSC-XML" ;; Block name (exists in drawing as tested earlier) 1.0 1.0 1.0 0.0 ;; (Scale=1:1, Rotation=0.0) ) ;; end vla-insertblock ) ;; end setq (cond ;;----------------------------------------------------------------------;; ;; Condition ( (null (setq mod (xins:assoc "model" com))) ;; Contents of <model> tag ;; Notify user of such: (princ (strcat "\nModel Number not found for Compressor located at " (xins:lst->str (mapcar 'rtos ins) ",") ;; Include insertion point of Compressor for clarity ) ;; end strcat ) ;; end princ ) ;; end condition ;;----------------------------------------------------------------------;; ;; Condition ( (and (setq csg (xins:assoc "suction_group" com)) ;; Finds suction group of compressor (< (atoi (cadr (assoc csg rsg))) 0) ;; Sees if suction group is LT ot MT (or (= (setq csf (xins:assoc "suction_shell" com)) "NONE") ;; Determines suction filter per comp (= (setq csf (xins:assoc "suction_shell" com)) nil) ) ) ;; Set visibility state of block accordingly: (vla-put-activelayer (setq acdoc (vla-get-activedocument (vlax-get-acad-object))) (vla-item (vla-get-layers acdoc) "M-PIPING-INS-1-0") ) (xins:setvisibilitystate tmp "DIP TUBE") ;; Sets the visibility state ) ;; end condition ;;----------------------------------------------------------------------;; ) ;; end cond (setq tmp (vlax-vla-object->ename tmp)) ;; to entity (ssadd tmp ss) ;; add to selection set (sssetfirst nil ss) (c:burst) (setq ins (mapcar '+ ins '(12.3933 0.0 0.0))) ;; Shift the insertion point by a given vector )
Tom Beauford P.S.M. - Civil 2020 on Windows 10 Enterprise
Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
2280 Miccosukee Rd. Tallahassee, FL 32308-5310
Ph# (850)606-1516 Home Page
The Explode method returns a variant (vla-explode), or a list (vlax-invoke <obj> 'explode) of the exploded objects as a native LispFunction Method, whereas BURST is an Express Tool and is not a native Command, Method, etc., nor does it follow the same behavior.
Are you swapping Explode for Burst, or are you invoking burst in addition to Explode... I'm quite confused at your intent here.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000
Phillip Bradshaw
Lead Pixel Pusher, Lucid Design Studio
CAD Detailer, Proctor Productions
A doctor can bury his mistakes but an architect can only advise his clients to plant vines. - Frank Lloyd Wright
Tom Beauford P.S.M. - Civil 2020 on Windows 10 Enterprise
Design Analysis - Leon County Public Works/Engineering Wrap [CODE] tags around selected text
2280 Miccosukee Rd. Tallahassee, FL 32308-5310
Ph# (850)606-1516 Home Page
Wow. Okay. That worked. After s#$dh%@cv#$s with that all day, you've helped me tremendously.
Tom, I tried your modification as well and that also worked.
After all this, I think the main thing that messed all this up was my use of FOREACH. Like BlackBox was referring to, it worked with the native acad commands, but didn't when a non-native command was introduced. Once I scrapped that, things got much easier.
I can't thank you guys enough. So much help from a bunch of folks.
And now...
http://i.imgur.com/usvXLjR.jpeg
Phillip Bradshaw
Lead Pixel Pusher, Lucid Design Studio
CAD Detailer, Proctor Productions
A doctor can bury his mistakes but an architect can only advise his clients to plant vines. - Frank Lloyd Wright
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3630, Core i9-9900K 5.0GHz, 128GB RAM, Samsung 970 Pro M.2, 8GB NVIDIA Quadro P4000