Skip to content

Instantly share code, notes, and snippets.

@CADSharp
CADSharp / Constants.vb
Created Sep 6, 2018
Addin example with CADSharpTools
View Constants.vb
Class Constants
Friend Const MenuItem_Command1 As String = "Command 1"
Friend Const MenuItem_Command2 As String = "Command 2"
Friend Const MenuItem_Command3 As String = "Command 3"
Friend Const MenuItem_About As String = "About"
Friend Const AboutText As String = "Command 1 is available in part documents." + vbNewLine +
"Command 2 is available in part and assembly documents." + vbNewLine +
"Command 3 is available in all documents."
Friend Const MenuCallback As String = "RunMenuCommands"
End Class
@CADSharp
CADSharp / Constants.vb
Last active Sep 6, 2018
Addin example without CADSharpTools
View Constants.vb
Class Constants
Friend Const MenuItem_Command1 As String = "Command 1"
Friend Const MenuItem_Command2 As String = "Command 2"
Friend Const MenuItem_Command3 As String = "Command 3"
Friend Const MenuItem_About As String = "About"
Friend Const AboutText As String = "Command 1 is available in part documents." + vbNewLine +
"Command 2 is available in part and assembly documents." + vbNewLine +
"Command 3 is available in all documents."
Friend Const MenuCallback As String = "RunMenuCommands"
End Class