Jump to content

Please Rate this Program  

12 members have voted

  1. 1. Please Rate this Program

    • * * * * * (Best)
    • * * * *
    • * * *
    • * *
      0
    • * (Worst)
      0


Recommended Posts

Posted (edited)

Dynamic Offset

 

This program allows the user to dynamically offset multiple objects simultaneously, with an arbitrary number of offsets and an optional offset distance factor.

 

The user is prompted to make a selection of objects, and then he/she has a multitude of options available, including:

 

  • Offset Distance: the user may enter the offset distance at the command line, or onscreen.

 

  • Offset Number: the number of offsets can be increased/decreased using the +/- keys, or alternatively the user can enter the offset number by pressing 'N'.

 

  • Offset Factor: the factor of the distance between successive offsets can be altered by pressing 'F'.

 

  • Offset Settings: Destination Layer/Linetype/LineWeight and Colour can be changed by pressing 'S'.

 

  • Offset Mode: Can be changed by pressing 'TAB', user can offset either side, or both sides simultaneously.

 

  • Object Deletion: The user can retain/delete the original objects by pressing 'D'.

 

  • Offset to Center: The user can offset to the center of two objects by pressing 'C'.

 

  • Highlight Offsets: By pressing SHIFT, the user can highlight offset entities (requries Express Tools).

Demo:

 

DynOff.gif

DynOff%202.0.gif

 

Offset Settings:

 

DynOff Settings V1.6.png

 

Function Syntax: DynOff

 

;;;¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,;;;
;;;ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,¤º°`°º¤;;;
;;                                                                               ;;
;;                        --=={  Dynamic Offset  }==--                           ;;
;;                                                                               ;;
;;  Allows the user to dynamically offset multiple objects simultaneously, by    ;;
;;  either specifying the offset distance via mouse-click, or at the             ;;
;;  command-line. The command-line default will remember the last offset entered ;;
;;  by the user.                                                                 ;;
;;                                                                               ;;
;;  Object Snap functionality is retained, and the on-screen offset distance is  ;;
;;  determined by the nearest object in the offset selection set.                ;;
;;                                                                               ;;
;;  The user can use the +/- keys to change the number of offsets, or,           ;;
;;  alternatively, the user can press 'N' and specify the number of offsets      ;;
;;  directly.                                                                    ;;
;;                                                                               ;;
;;  The user can also press 'S' during object offset to change the layer,        ;;
;;  linetype, lineweight, and colour of the resultant offset objects.            ;;
;;                                                                               ;;
;;  By pressing TAB the user can switch modes between offsetting both sides or   ;;
;;  just one side of an object.                                                  ;;
;;                                                                               ;;
;;  The toggle for retaining or deleting the original Objects can be altered by  ;;
;;  pressing 'D'. The user can hold SHIFT to highlight the offset entities.      ;;
;;                                                                               ;;
;;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=;;
;;                                                                               ;;
;;  FUNCTION SYNTAX:  DYNOFF                                                     ;;
;;                                                                               ;;
;;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=;;
;;                                                                               ;;
;;  AUTHOR:                                                                      ;;
;;                                                                               ;;
;;  Copyright © Lee McDonnell, October 2009. All Rights Reserved.                ;;
;;                                                                               ;;
;;      { Contact: Lee Mac @ TheSwamp.org, CADTutor.net }                        ;;
;;                                                                               ;;
;;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=;;
;;                                                                               ;;
;;  WITH THANKS TO:                                                              ;;
;;                                                                               ;;
;;      ¤ø¤   Elpanov Evgeniy           ~¤~   Code for GrRead OSnap Symbols.     ;;
;;...............................................................................;;
;;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=;;
;;                                                                               ;;
;;  VERSION:                                                                     ;;
;;                                                                               ;;
;;    ø 1.0   ~¤~   17th October 2009   ~¤~   º First Release                    ;;
;;...............................................................................;;
;;    ø 1.1   ~¤~   19th October 2009   ~¤~   º Added Object Snap functionality  ;;
;;...............................................................................;;
;;    ø 1.2   ~¤~   20th October 2009   ~¤~   º Added Multiple Offset Option     ;;
;;...............................................................................;;
;;    ø 1.3   ~¤~   21st October 2009   ~¤~   º Updated Object Snap Coding       ;;
;;...............................................................................;;
;;    ø 1.4   ~¤~   23rd October 2009   ~¤~   º Updated Offset Number Options    ;;
;;                                            º Added option to specify Offset   ;;
;;                                              factor.                          ;;
;;...............................................................................;;
;;    ø 1.5   ~¤~   29th October 2009   ~¤~   º Added Settings Dialog.           ;;
;;...............................................................................;;
;;    ø 1.6   ~¤~   8th December 2009   ~¤~   º Added option to only offset      ;;
;;                                              object on one side.              ;;
;;...............................................................................;;
;;    ø 1.7   ~¤~  10th December 2009   ~¤~   º Added option to delete original  ;;
;;                                              objects.                         ;;
;;...............................................................................;;
;;    ø 1.8   ~¤~  14th December 2009   ~¤~   º Added ability to offset to the   ;;
;;                                              center of two objects.           ;;
;;...............................................................................;;
;;    ø 1.9   ~¤~  16th December 2009   ~¤~   º Modified method for spacing      ;;
;;                                              multiple offsets.                ;;
;;                                            º Improved OSnap Coding.           ;;
;;...............................................................................;;
;;    ø 2.0   ~¤~  18th December 2009   ~¤~   º Added colour change for offset   ;;
;;                                              entities.                        ;;
;;                                            º Fixed Bug when using Offset      ;;
;;                                              Factor.                          ;;
;;...............................................................................;;
;;    ø 2.1   ~¤~  21st December 2009   ~¤~   º Updated code to check for        ;;
;;                                              Express Tools.                   ;;
;;...............................................................................;;
;;                                                                               ;;
;;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=;;
;;                                                                               ;;
;;;¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,;;;
;;;ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,¤º°`°º¤;;;

 

For instructions on how to run the program see here.

 

Any comments, criticism and suggestions are welcome. Either PM me directly, or reply to the original thread.

 

Enjoy,

 

Lee

 

--=={ Code Updated to Version 2.1 }==--

 

Code available here.

Edited by Lee Mac

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