Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru 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
Joined
Nov 8, 2004
Messages
129
Location
US
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?
 
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

Back
Top