Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting object snap settings from VBA

Status
Not open for further replies.

jrice174

Civil/Environmental
Nov 8, 2004
129
During a VBA program I turn off the object snap and at the end of the program I turn the snap back on using
ThisDrawing.ObjectSnapMode = True
however the only snap setting that is turned on is endpoint. Before I ran the program I had midpoint and intersection also selected. Can I make the program reset the settings to what it was before I turned it off, or can I make it add individual selections?
 
Replies continue below

Recommended for you

You can use the Thisdrawing.GetVariable method to retain the setting and then use Thisdrawing.SetVariable at the end of your macro to set it back.

"Everybody is ignorant, only on different subjects." — Will Rogers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor