Dayananda Posted April 14 Posted April 14 I hve alisp program to mark chainages of polyline. But always the start point and end point is same. I want to change direction of cranages as showen in the picture. Can some one help me to change polyline properties to full fill this task. Quote
Stefan BMR Posted April 14 Posted April 14 PEDIT command has the option to revert the polyline. However, you have to run the lisp once, then, if require revert, you have to UNDO the lisp, revert the polyline, then run the lisp again. IMO, the chainage lisp should decide the starting point based on the selection point. 1 Quote
DavidP Posted April 14 Posted April 14 There is also the "reverse" command. To work with lines that require specific direction I typical temporally change the object line type this custom linetype -->--->---> ... and once I'm done with task I re-set back to by-layer. arrow.lin Quote
BIGAL Posted April 14 Posted April 14 (edited) This will reverse a pline if required. I would also look at Lee-mac "Text readable.lsp" as some of your text is up is up side down. (setq ent (entsel "\npick a line near end ")) (setq obj (vlax-ename->vla-object (car ent))) (setq startpt (vlax-curve-getstartPoint obj)) (setq endpt (vlax-curve-getEndPoint obj)) (setq pt1 (cadr ent)) (setq d1 (distance pt1 startpt)) (setq d2 (distance pt1 endpt)) (if (< d1 d2) (command "pedit" (car ent) "R" "") ) Edited April 22 by BIGAL Quote
X11start Posted April 22 Posted April 22 To change the origin and/or direction of a polyline, I recommend this excellent Lisp of Giampaolo Cattaneo.CHVERT.LSP Quote
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.