Anyone know how how to grey out a macro icon?
Anyone know how how to grey out a macro icon?
(OP)
I would like to grey out my macro icons when they are unavailable to certain areas? For example if I have an icon that performs assembly operations I would like it greyed out during drawings. I know I could just put it in the assembly toolbar but would like to do this instead so I can group all our custom macro icons in one toolbar.
Anyone have an answer?
Anyone have an answer?






RE: Anyone know how how to grey out a macro icon?
Regards,
Scott Baugh, CSWP

http://www.3dvisiontech.com
http://www.scottjbaugh.com
FAQ731-376
RE: Anyone know how how to grey out a macro icon?
RE: Anyone know how how to grey out a macro icon?
RE: Anyone know how how to grey out a macro icon?
RE: Anyone know how how to grey out a macro icon?
Sub main()
Set swApp = CreateObject("SldWorks.Application")
Set Doc = swApp.ActiveDoc
If ((Doc Is Nothing) Or (Not (Doc.GetType Eqv swDocDRAWING))) Then
Msg = "A drawing document must be active to use this command!"
LongStatus = swApp.SendMsgToUser2(Msg, swMbWarning, swMbOk)
End
Else
Doc.PrintDirect
End If
End Sub