Jump to content

multiple offset lisp


OMEGA-ThundeR

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

.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..

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...