Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I found this lisp in here and is working fine but you have to draw a pline first then run routine to get flex duct shape.I am wondering if I can:
1) have a pline command within this lisp to draw needed pline then draw flex like shapes over it.Something like:
(defun c:Flex (/ SP cl-ent ribWidth RibShort RibLong collar dist steps ribFlag pt curAng curDer RibPtLst1 RibPtLst2 p1 p2 doc space cflag cl-len ribRadius tmp NewPline NewPline2 pl1 pl2 cnt errflag InsulThick FlexColor FlexLayer ss FlexCLLayer lyrent *error* ) (command "PLINE" SP "W" "0.0" "W" "0.0" "0.0" "ARC") (defun *error* (msg) (vl-bt)) (vl-load-com) (setq Doc (vla-get-activedocument (vlax-get-acad-object))) (vla-endundomark doc) (vla-startundomark doc) ........
2) at the end of the lisp, it convert all items into a block name it as flx.01,..
Thanks
Solved! Go to Solution.