CAD USER Posted November 15, 2015 Share Posted November 15, 2015 Dear Users, I have downloaded this Lisp, and it's work great, but i need some changes in this, this Lisp draw duct in MLINE but i need it in line entity, anybody can modified this lisp.... Thanks in advance... Quote Link to comment Share on other sites More sharing options...
Cad64 Posted November 15, 2015 Share Posted November 15, 2015 I have moved your question to the Autolisp section: http://www.cadtutor.net/forum/forumdisplay.php?21-AutoLISP-Visual-LISP-amp-DCL For best results, always try to post in the section of the forum that is most relevant to your question. Quote Link to comment Share on other sites More sharing options...
ymg3 Posted November 16, 2015 Share Posted November 16, 2015 I've looked at the code, it's a real spaghetti. Looks like it used to work drawing in polyline and all these sections have been rem'd out. Simply exploding the MLINES would give you LINES. ymg Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted November 16, 2015 Share Posted November 16, 2015 FWIW, here is the source of the program. Quote Link to comment Share on other sites More sharing options...
ymg3 Posted November 16, 2015 Share Posted November 16, 2015 (edited) So confirmed, in the body function the section that are rem'd out will draw your duct run with straight section in LINE and elbow in LWPOLYLINE instead of MLINE Below I've rem'd out the MLINE and activated the LINE/LWPOLY mode. There are two sections like this in the body function. (if (and (= "Segmented" dpipeelb) (not (equal ang1 ang2 0.000001)) ) (progn ;(command "_.mline" "_st" "DUCT_PIPE" "_S" (cadar seglst) "_J" "_Z") ;(mapcar 'command mllst) ;(command "") ;----------------------------------------------------------------------------------------------------------- (setvar "PLINEWID" 0.0) (command "_.pline") (mapcar 'command ptLst) (command "_c") (setq SegCnt 0) (while (< SegCnt (1- SegNum)) (command "_.line" (nth SegCnt ptlst) (nth (- (length ptlst) 3 SegCnt) ptlst) "") (setq SegCnt (1+ SegCnt)) ) (setvar "PLINEWID" dpipepWd) ;----------------------------------------------------------------------------------------------------------- ) ) For the elbows you will have to look around in the same function. Might be a little more difficult as bulge are used for elbows in radius mode. You could always explode the LWpolyline after it is drawn. I attach the source code with the LWPoly mode activated. ymg ductlwp.LSP Edited November 16, 2015 by ymg3 Quote Link to comment Share on other sites More sharing options...
CAD USER Posted November 17, 2015 Author Share Posted November 17, 2015 Thanks, Everyone to Concern.... I am appreciate to all of you..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.