Jump to content

about OFFSET command : erase source/layer settings


Recommended Posts

Posted

I would like to ask about the "offset" command, there are options of "erase source" "Layer".

 

 

I wonder if there is any system variables which store those settings. For I would like to make an AutoLisp command which toggles on/off of "erase source" or even to specify offset layer.

 

Thank you

Posted

Thank you for the suggestion, but what I am looking for is the system variables (or something else) to control these. For example "trimmode" is to control the "trim" command, so that I can make an Autolisp command to toggle "trimmode" between 1 and 0.

Posted

Good question, the only sys Vars that come to mind with the OFFSET command are:

 

OFFSETDIST & OFFSETGAPTYPE

 

But I shall do a bit of digging for you :)

Posted

Express-Tools

Exoffset.lsp …

(setq dist (acet-exOffset-get-dist)

lay (xstrcase (acet-exOffset-get-layermode))

gap (getvar "offsetgaptype") acet-setvar….

Posted
Express-Tools

Exoffset.lsp …

(setq dist (acet-exOffset-get-dist)

lay (xstrcase (acet-exOffset-get-layermode))

gap (getvar "offsetgaptype") acet-setvar….

 

 

Thanks for the advise....wonder if I can do this in Lisp (instead of VLisp) for I am not familiar with VLips !!

Posted

Hausta refers to the Express Tools ExOffset.lsp which can be found in the Express tools folder - this saves the modes in the drawing using such functions as:

 

(acet-exOffset-get-layermode)

Which are defined in the above .lsp file. These functions in turn use:

 

(acet-setvar)

To store the relevant settings.

 

These are Express Tools functions, not VLISP :)

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