+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21

Thread: Advanced Offset

  1. #1
    Full Member Arch_Eric's Avatar
    Using
    ADT 2006
    Join Date
    May 2008
    Location
    Texas
    Posts
    25

    Smile Advanced Offset

    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.

  2. #2
    Full Member Arch_Eric's Avatar
    Using
    ADT 2006
    Join Date
    May 2008
    Location
    Texas
    Posts
    25

    Default

    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!

  3. #3
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Mar 2007
    Posts
    475

    Default

    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

  4. #4
    Luminous Being StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows 7 Ultimate 64bit
    Computer:
    Dell Precision T3500
    Discipline
    Multi-disciplinary
    StykFacE's Discipline Details
    Occupation
    BIM Manager & Design Specialist
    Discipline
    Multi-disciplinary
    Details
    Facilities engineering, involving mechanical piping, mechanical HVAC and electrical engineering.
    Using
    Revit 2013
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    6,497

    Default

    Quote Originally Posted by Arch_Eric View Post
    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.
    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

  5. #5
    Full Member Arch_Eric's Avatar
    Using
    ADT 2006
    Join Date
    May 2008
    Location
    Texas
    Posts
    25

    Smile

    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.

  6. #6
    Junior Member
    Using
    AutoCAD 2004
    Join Date
    May 2008
    Posts
    17

    Default add this?

    Can you add this code [current/match layer offset], maybe hightlight the entity too would be nice.
    Attached Files

  7. #7
    Full Member Arch_Eric's Avatar
    Using
    ADT 2006
    Join Date
    May 2008
    Location
    Texas
    Posts
    25

    Default

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

  8. #8
    Junior Member
    Using
    AutoCAD 2004
    Join Date
    May 2008
    Posts
    17

    Default

    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.

  9. #9
    Junior Member
    Using
    AutoCAD 2004
    Join Date
    May 2008
    Posts
    17

    Default

    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.

  10. #10
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Dec 2007
    Posts
    130

    Default

    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

Similar Threads

  1. offset
    By GREG in forum AutoCAD Beginners' Area
    Replies: 6
    Last Post: 9th Sep 2007, 04:18 am
  2. Advanced Trim
    By daiharv in forum AutoCAD Drawing Management & Output
    Replies: 10
    Last Post: 24th Apr 2007, 10:25 am
  3. Advanced Modelling Extersor
    By youngken in forum AutoCAD 3D Modelling & Rendering
    Replies: 1
    Last Post: 9th Jun 2005, 09:33 am
  4. offset
    By joiner in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 5th Apr 2005, 04:44 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts