Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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