Some updated code after using it a bit. Asks for the initial offset distance every time (with default of last offset).
Code:Updated again. See below.
Registered forum members do not see this ad.
My biggest peev with Audocad's offset command is you can't change the offset distance in the middle of the command. You also can't just tell it to offset an object say 10 times to one side. So here's my advanced offset command.
Notes on the command:
1) Using the multiple command before selecting an object lets you define how many times to offset an object; using multiple after selecting an object works exactly like the built-in offset's multiple works (offset each time you click)
2) Change your offset distance at almost any time!
3) The rest of the options work just like the original offset.
This code is fresh and tested only to work. If you experience any problems, let me know. If you want to rewrite something in it, feel free to do so.
Code:Updated code. See below.
Last edited by Arch_Eric; 14th May 2008 at 08:31 pm.
Some updated code after using it a bit. Asks for the initial offset distance every time (with default of last offset).
Code:Updated again. See below.
Last edited by Arch_Eric; 14th May 2008 at 09:31 pm. Reason: Doh!


works great except for the amount of times you want to offset if you enter ten times to offset it only does about 2 or 3
Good stuff. You should post it here, in the AutoLISP Archive for future reference as well: http://www.cadtutor.net/forum/forumdisplay.php?f=30
Tannar Frampton | Facilities Engineering | Revit 2013
Personal Projects | Fender Squier Stratocaster | Custom Smoker | Concrete Patio
MikeP: I got that fixed. Was brought to my attention elsewhere.
Code:Code updated.
Last edited by Arch_Eric; 26th May 2008 at 03:13 pm.
Can you add this code [current/match layer offset], maybe hightlight the entity too would be nice.
Hey Tader,
I was already working on that code, and finally finished it tonight. I went a little further with it. In addition to being able to select Source or Current, you can enter any valid layer name. I've been working out bugs all night and I think I worked out most of them.
Let me know what you think.
That's sweet. I'll run it quite often & let you know of any bugs. Thnx again as I'm sure many others will enjoy it.
Hey Eric, I was thinking: rut ro, if you replaced the "Layer" option with "Layer" "Current" which would make your 1st prompt [Specify offset distance [Through/Current/Source/Exit] <Through>: this would save the user one keystroke if he/she wanted to offset in layer. I was poking around in there to do it myself, but I usually mutilate anything I touch.


Registered forum members do not see this ad.
Hey Eric,
Thats cool, i like it, beats faffing with the array dialog..
My only thoughts would be to include the whole procedure for the multi offset in one undo. If you want to undo it now, each undo click only does one line at a time..
Cheers,
PaulRenegade @ hardwiredstudios..
XP Pro / AutoCAD 2007 : Pentium Core 2 Q6600 Quad Core : ASUS P5N-E SLI Motherboard : 4GB DDR2 RAM : 2 x SLI NVIDIA 8500GT SLi 1024MB DDR2 PCI-Express Graphics Cards
Bookmarks