I'm new in VB.NET, and try to translate my macros to standalone application.
How can I prevent user to manipulate in solidworks if the application is running?
What if you open SolidWorks silently?
I mean, swApp.Visible = False
In most case SolidWorks already is running and I have to connect to this application, and work with the opened files, so visibility change is not good :/
You can use ModelDoc2.Lock to lock the commands and effectively locking the application. And then use ModelDoc2.UnLock to get back.
unfortunatelly it doesn't works for me :/
Works fine for me. Can you share your project/codes?
Also what exactly you trying to do with the application?
combination of :
CommandInProgress Property (ISldWorks)
Lock Method (IModelDoc2)
EnableGraphicsUpdate Property (IModelView)
EnableFeatureTreeWindow Property (IFeatureManager)
EnableFeatureTree Property (IFeatureManager)
UnLock Method (IModelDoc2)
GraphicsRedraw Method (IModelView)
I tried but doesn't works :/
Retrieving data ...