macrostarter Posted May 17, 2009 Posted May 17, 2009 Can someone help me here. Before we go too much farther you must know that I am using AutoCAD LT 07 and do not have the option of using a Lisp program. (I wish but no) Now, on to the question. I would like to write a macro to offset a line 1/32" change the layer to hatch and change the linetype to hidden then repeat the command using the same line or using the offset line........I would then change the linetype of the last line back to by layer and layer to hatch if I was offsetting from the original object line.....................If I did offset from the original line I would need to go to 1/16". If offsetting from the offset line (center line so-to-speak) I would only need to go another 1/32". I have ...................^C^C_O;.03125;\\;;-CH;L;;PROPERTIES;LA;HATCH;LT;HIDDEN;; ....... but I can't figure out how to do it again without any user input.What I would like to end up with is a triple line the first being the object line the second being a dashed hatch line and the third being a solid hatch line. Quote
BIGAL Posted May 18, 2009 Posted May 18, 2009 Not sure if LT supports scripts then you could do it you just need to ask for start and end point of line or else draw line then start the rest can be done using copy last and just enter a dummy reference point and target 0,0 0,22 makes the line 22 units above repeat 0,0 0,-44 22 units below modify as required . (CH L PROPERTIES LA HATCH LT HIDDEN) Just use "Last" its the last thing you drew a lot of people don't know this. Quote
macrostarter Posted May 18, 2009 Author Posted May 18, 2009 yes lt does support scripts but I'm not sure I understand what you mean. I am kinda dense I think. I see what you mean but how would I apply the consept in a macro? Thank you Quote
BIGAL Posted May 19, 2009 Posted May 19, 2009 Here is a start you would create a menu say ^c^cscript 2lines draw a line then click menu copy last 0,0 0,25 CH L PROPERTIES LA HATCH LT HIDDEN copy last 0,0 0,-50 CH L PROPERTIES LA HATCH LT HIDDEN I will try to add draw line as well Quote
macrostarter Posted June 7, 2009 Author Posted June 7, 2009 This will only enable me to go one direction with the offset line. I really need the ability to do any line at any angle. I can't seem to get it on LT. Maybe it's just not going to happen. Thanks for your input.... Quote
macrostarter Posted June 7, 2009 Author Posted June 7, 2009 maybe if I made a double line line type with one dashed and one not then i could juct change the offset lines properties to that linetype and I would have it. Can someone tell me if I can create that kind of linetype?....Thanks 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.