OMEGA-ThundeR Posted September 25, 2009 Share Posted September 25, 2009 Hi, I am looking for some lisp that does something like the following: 1. Execute command 2. Ask offset distance 3. How many offsets after each other I want to offset 1 lines up to 1 meter, but 1 half way (0.5 meter) to. Now i have to double the effort to offset the lines (2 times 0.5 meters). I hope i made myself clear. Anyone know any lisp or command that does that? Quote Link to comment Share on other sites More sharing options...
lpseifert Posted September 25, 2009 Share Posted September 25, 2009 Post the code you have tried, I'm sure you'll get help here; probably better responses in the lisp forum. Quote Link to comment Share on other sites More sharing options...
OMEGA-ThundeR Posted September 25, 2009 Author Share Posted September 25, 2009 I am looking for an lips routine or something... i haven't tried anything yet (besides doing it manually ). Quote Link to comment Share on other sites More sharing options...
Glen Smith Posted September 25, 2009 Share Posted September 25, 2009 Try using the Multiple option of offset, you could even make a macro that will automagically switch to that option. Do you Offset the same distance all the time, or is .5 meter just an example? Command: _offset Current settings: Erase source=No Layer=Source OFFSETGAPTYPE=0 Specify offset distance or [Through/Erase/Layer] <1'0">: Select object to offset or [Exit/Undo] <Exit>: [color=red]Specify point on side to offset or [Exit/Multiple/Undo] <Exit>: m[/color] Specify point on side to offset or [Exit/Undo] <next object>: Specify point on side to offset or [Exit/Undo] <next object>: Specify point on side to offset or [Exit/Undo] <next object>: *Cancel* Glen Quote Link to comment Share on other sites More sharing options...
OMEGA-ThundeR Posted September 25, 2009 Author Share Posted September 25, 2009 .5 is an example.. Ah, i didn't saw the 'multiple' option. Its one step shorter (but a lot faster). making an macro of it is almost as time consuming to use (unless it can be bound to an command (dunno how)) since i have to press the button everytime i want to use the command.. Quote Link to comment Share on other sites More sharing options...
Glen Smith Posted September 25, 2009 Share Posted September 25, 2009 The macro could be "bound" to a command depending on what you want to do. Is this something that you do right after you do something else all the time? The macro could be written to, for instance, start the line command, ask for points, start the offset command, ask for distance and which side however many times, then terminate. You aren't going to save many more mouse clicks by going with a LSIP. Lee Mac wrote a LISP for someone that inserted N lines at equal distance between 2 points for someone a while back, I'll look and see if I can find it. Glen PS Found it here: http://www.cadtutor.net/forum/showthread.php?t=38867&highlight=lines+box+offset 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.