Click or drag to resize

CTInterfaceScriptButtonArgs Class

Event argument class for OnRequestScriptButton.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ATR.CT.CTInterfaceCTInterfaceScriptButtonArgs

Namespace: ATR.CT.CTInterface
Assembly: CTInterface (in CTInterface.dll) Version: 25.0
Syntax
public class ScriptButtonArgs : EventArgs

The CTInterfaceScriptButtonArgs type exposes the following members.

Properties
 NameDescription
Public propertyDocType Type of the document for which the menuitem is set.

DocType is defined in assembly SolidWorks.Interop.swconst.dll.

C#
enum swDocumentTypes_e
{
   swDocNONE = 0,      /// NONE document
   swDocPART = 1,      /// PART document
   swDocASSEMBLY = 2,  /// ASSEMBLY document
   swDocDRAWING = 3,   /// DRAWING document
   swDocSDM = 4        /// SDM document
};
Public propertyHandled Returns true if SetupButton(String, String, String) is called with valid parameters.
Public propertyHint Getter for menuitem tooltip text defined with SetupButton(String, String, String).
Public propertyImageFile Getter for menuitem bitmap filename defined with SetupButton(String, String, String).
Public propertyName Getter for menuitem name defined with SetupButton(String, String, String).
Top
Methods
 NameDescription
Public methodSetupButton Call to setup extra menuitem to CUSTOMTOOLS' menu in SOLIDWORKS. Sets Handled to TRUE when called with non-empty name.
Top
Revision History
DateVersionDescription
-2015 SP0First Release
See Also