Virgule Posted July 19, 2023 Posted July 19, 2023 Hello, Autocad newbie here. I've been researching this topic and finding nothing, prompting me to join a forum for additional input. I'm drawing a piping isometric with long lengths of pipe I'm trying to shorten for a better page fit and legibility. I've drawn them full length and am now trying to shorten/break/jog them. I've found the DIMJOGLINE command to insert the correct symbol on the dimension line, but it's not freezing the value when shortening. I also can't use that command to apply the same symbol on the pipe line itself. I need some help. Thanks Quote
BIGAL Posted July 21, 2023 Posted July 21, 2023 (edited) Do a Google Jogline autocad lisp should be able to find some code that makes the jogline and suits your needs. Here ; zig zag add to line ; BY AlanH (defun c:zig ( / pt1 pt2 pt3 pt4 pt5 pt6 pt7 ang angang dist angup) (setq pt1 (getpoint "\nPick 1st point")) (setq pt2 (getpoint "\nPick 2nd point")) (setq oldsnap (getvar 'osmode)) (setvar 'osmode 0) (setq dist (distance pt1 pt2)) (setq ang (angle pt1 pt2)) (setq angup (+ ang 1.570796)) (setq angang (+ ang 4.957368)) (setq gap 20.0) (setq gap2 2.0) (setq x (fix (/ dist gap))) c (command "pline" pt1 "w" 0.0 0.0) (repeat x (setq pt3 (polar pt1 ang gap )) (setq pt4 (polar pt3 angup gap2)) (setq pt5 (polar pt4 angang 41.2311)) (setq pt6 (polar pt5 angup gap2)) (command pt3 pt4 pt5 pt6 ) (setq pt1 pt6) ) ; repeat (command pt2 "") (setvar 'osmode oldsnap) (Princ "all done") ) is one. Edited July 21, 2023 by BIGAL Quote
SLW210 Posted July 21, 2023 Posted July 21, 2023 Here's an old thread on break line. Drawing cylindrical break line ? For the dimension, AFAIK, you need to "Convert dimension to text" by right-click in the dimension editor or "Override" the text in properties. This LISP should set the current dimension to the override. Quote
Virgule Posted July 23, 2023 Author Posted July 23, 2023 Thanks to both of you, I'll look into this. I have a lot to learn. 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.