Macro Help???
Macro Help???
(OP)
I found a macro sometime last year that hides/blanks out Planes, Sketches, etc in the model tree (Correct Location) instead of turning those features off in the View Menu. This macro works great but after awhile, I noticed the hiding the Origin in the model tree wasn't a good idea/option. I really don't know much about making macro's but I was able to delete the origin option from the macro. I guess what I'm really looking for is to leave all the other options as is but instead of hiding the origin in the model tree it would hide from the View Menu instead.
Thanks,
Todd
Thanks,
Todd






RE: Macro Help???
RE: Macro Help???
For your own use, you can change this code any way you wish. However, I do not sanction any redistribution of alterations of my original work.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: Macro Help???
RE: Macro Help???
CODE
Public Sub InitValues() OKFlag = False SelectSum = 0 cmdSelectAll_Click 'add code to uncheck origin checkbox here Me.Show End SubRE: Macro Help???
CODE
ExitStrategy: 'add code to hide origins in view menu here Set swRootComp = Nothing 'SldWorks.Component2 Set swConf = Nothing 'SldWorks.Configuration Set swModel = Nothing 'SldWorks.ModelDoc2 Set swApp = Nothing 'SldWorks.SldWorks EmptyCollection colCompList EmptyCollection colComponents EmptyCollection colFeatures 'Debug.Print "Finish " & Now 'Debug.Print 'MsgBox "Done" End Subhttp://www.EsoxRepublic.com-SolidWorks API VB programming help