Jump to content

DLine object snap resets


mickeforsberg

Recommended Posts

Hi!

 

I'm trying out the dline command in Autocad LT 2016, and it works pretty well. However, after each command is finished, and I start a new dline command - the object snap resets and no snap setting is selected, so I have to select them everytime I start a new dline command.

 

You guys have any idea why it doesn't save the OSNAP state?

 

Works fine with line command.

 

Edit: The object snap modes gets deselected, but the OSNAP is still set to "ON". If I during the dline command type S(NAP), it shows as "ON".

Link to comment
Share on other sites

I don't have LT 2015, so I can't comment about DLINE, but you do realize SNAP is not the same thing as OSNAP, right?

 

Edit: For full AutoCAD users reading this, DLINE is an LT only command.

Link to comment
Share on other sites

As RobDraw mentioned SNAP and osnaps are two different animals, with SNAP turned ON picking an osnap point will cause the DLINE command to end breaking the selected geometry, which is why osnaps are turned off for the dline command each time it is started.

Link to comment
Share on other sites

The snap option within the dline command has nothing to do with whether OSNAP is on or off, and it has nothing to do with SNAP (grid snap).

 

I can't tell whether the dline snap option is supposed to stay on or not, either from use, or the help file. In fact, the Help File is so nebulous here, that I don't plan on using dline. I didn't know it existed before now anyway.

 

Snap

 

Starts or ends a double line by snapping to an existing object. When the Snap option is on, the Break option determines whether to break the object at the intersection of the double line.

The Size option specifies the size of a search area, in pixels. The double line starts or terminates by snapping to the object it finds within the search area and adjusts each of its legs to form a clean junction with the object. Selecting the Size option displays the following prompt: Width yadayadayadayada

Link to comment
Share on other sites

I didn't realize there was a difference, but OK now I see what SNAP does. However I would rather see that the OSNAP setting continued with the selected modes. I'm new to Autocad, but I don't quite understand why it shouldn't remember the settings because SNAP breaks the selected geometry. The command is for me in that case rendered useless I'm afraid.

Link to comment
Share on other sites

The DLINE command clears the OSNAPS each time that it is run. I think it has to do with the fact that there is a snap option within the command:

 

Command: DLINE

 

Specify start point or [break/Caps/Dragline/Snap/Width]:S

 

Set snap size or snap On/Off. [size/OFF/ON] :

You can right-click+E to snap to the endpoint, you'll just have to do that with each vertex.

 

Also, once you start the DLINE command you can type 'OSMODE (note the apostrophe). That allows you to enter a new osmode setting mid-command, and it will hold it for the duration of that command.

 

I set up a custom command for my 2 main OSMODE settings. So at the click of a button in the ribbon (or you could set it as a hotkey command) you can simply set the OSNAP immediately after running the DLINE command.

 

'OSMODE;39;

I use that for many things, so I never thought to bundle it with the DLINE command, though you certainly could.

 

^C^CDLINE;'OSMODE;39;

It seems to me that if the Snap option is set to ON then the DLINE command will truncate the first time you snap the second endpoint to any existing object. If you switch Snap off within the command then you can free-flow draw DLINES indefinitely.

 

A quick addition to the DLINE macro will make this command even more useful:

 

^C^CDLINE;Snap;Off;'OSMODE;39;

Link to comment
Share on other sites

I set up a custom command for my 2 main OSMODE settings. So at the click of a button in the ribbon (or you could set it as a hotkey command) you can simply set the OSNAP immediately after running the DLINE command.

 

Thank you, I will try this! Seems like a good enough solution! :)

Link to comment
Share on other sites

You are welcome. You have to at least give that last macro a try also. I was surprised how powerful it was. It will create a loop so you can continue to add vertices to a DLINE for as long as you need, snapping or not snapping to existing geometry as you please.

 

Glad the 'osmode option may be helpful to you though.

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