Click or drag to resize
CTInterface Events

The CTInterface type exposes the following members.

Events
  NameDescription
Public eventNotifyDialogAccess
Notifies when user opens and close defined CT dialog.
Public eventNotifyIdle
Notifies SW idle both pre CT handling and post CT handling Value determines whether this is pre-event (true) or post-event (false).
Public eventOnAddImportFile
Invoked at CUSTOMTOOLS Import for each individual file inserted to the list. Allows full control on what files are actually brought into the process. For instance it would be possible to unzip given file and add all unpacked files to the list via this event.
Public eventCode exampleOnAfterButtonFunction
Notification is sent after user has clicked a button representing a button function that is associated with a property in CUSTOMTOOLS Properties pane. Event is triggered when user has closed the dialog box associated with the button function.
Public eventOnAppExit
Notification that occurs when CUSTOMTOOLS is being unloaded. Can be used for instance to safely terminate asynchronous background tasks started by the script add-in.
Public eventOnChangeCustomProperty
Post-notifies when a customer property has been changed.
Public eventOnCloseCustomStructureDlg
Notification that occurs when user exits CUSTOMTOOLS Export window.
Public eventOnCustomCopyPreSavePropertyValue
Invoked at CUSTOMTOOLS Copy during the copy process, before the dirty properties are written. Allows manipulating values of dirty properties.
Public eventOnCustomCopyResolveInitialConfiguration
Invoked during CUSTOMTOOLS Copy process for all individual files when Configuration option at Properties is set to Property Specific. Allows setting configuration option per file.
Public eventOnCustomListGetColumns
A column query send for Search Groups which source is Custom.
Public eventCode exampleOnCustomListUpdate
Invoked for each Custom-type lookuplist at CUSTOMTOOLS start up and when 'Run' is clicked at Options for the Custom-type lookuplist in question. Allows full control over the lookuplist content.
Public eventOnCustomPropertiesFinished
Invoked after user exits CUSTOMTOOLS Properties with Ok/Apply and all related processes have completed.
Public eventOnCustomPropertiesLoaded
Invoked when CUSTOMTOOLS Properties are loaded.
Public eventOnCustomPropertiesLoading
Invoked when CUSTOMTOOLS Properties are loading.
Public eventOnCustomPropertyChanged
Invoked at CUSTOMTOOLS Properties when a value of a property that has Allow Scripting -option set changes. Allows manipulating all property values in context that have Allow Scripting -option set.
Public eventOnExecuteSearchGroupSearch
Invoked for Search Group searches that are defined to use Custom Handler. Allows full control over the returned Search Group data.
Public eventOnExportProfileSelected
Notification that is sent after user selects Export profile in the CUSTOMTOOLS Export dialog box. This notification is sent also when the Export dialog is opened and the last used Export profile is selected automatically.
Public eventOnFileSavePre
Invoked when a SOLIDWORKS document is being saved.
Public eventOnGetCustomImportRule
Invoked at CUSTOMTOOLS Import for each file right after they are added to the list. Allows showing custom columns, setting special import options, displaying different string than filename and disabling the row from process.
Public eventOnGetImportFiletypeFilters
Invoked at CUSTOMTOOLS Import when user adds file/files to the list. Allows adding new file name/extension filters to the file selection dialog.
Public eventOnImportFile
Notification triggered before importing a file.
Public eventOnImportFilePost
Invoked at CUSTOMTOOLS Import for each individual file right after one's import process is complete.
Public eventOnImportFilePre
Invoked at CUSTOMTOOLS Import for each file defined in OnGetCustomImportRule before the normal import procedure takes place.
Public eventOnImportFinished
Notification the is send then CUSTOMTOOLS Import procedure has finished.
Public eventOnItemDeletePre
Invoked when a feature is deleted from model's feature tree.
Public eventOnListViewExportRowRightClick
Invoked at CUSTOMTOOLS Export when user right clicks a row. Allows appending menu items which click events can be handled at OnPopupMenuChosen.
Public eventOnLookupListFill
Invoked when CUSTOMTOOLS fills up Lookuplist items for Hierarchical Combo. With this event it's possible to use value/key as saved value while displaying a different corresponding value/key in the GUI.
Public eventOnModelDocLoaded
Invoked when a SOLIDWORKS document has been loaded.
Public eventOnOptionsClosedNotify
Notifies when user exits CUSTOMTOOLS Options with OK. Invoked only when Options is accessed via SOLIDWORKS, and NOT from CUSTOMTOOLS Administration.
Public eventOnPopupMenuChosen
Invoked at CUSTOMTOOLS Export when user has right clicked a row and then selected popped up menu item defined at OnListViewExportRowRightClick.
Public eventCode exampleOnPostFileConversion
Invoked after CUSTOMTOOLS has performed file conversion.
Public eventOnPreBatchProcessFile
Invoked before CUSTOMTOOLS starts to perform file conversion.
Public eventOnPreFileConversion
Invoked before CUSTOMTOOLS performs file conversion task.
Public eventOnPreFillCopyFileTargets
Invoked at CUSTOMTOOLS Copy when filenames are generated. Allows manipulating target filenames, target project per file and check state of the row.
Public eventOnPropertiesVisibilityOverride
Invoked when CUSTOMTOOLS Properties is first initialized and shown for a document. Allows changing visibility and selected value/option of special controls.
Public eventOnPropertyCustomDefinition
Invoked at CUSTOMTOOLS Options when user click Custom Definition button [...] at property's Advanced Options -page. Invoked only when Options is accessed via SOLIDWORKS, and NOT from CUSTOMTOOLS Administration.
Public eventOnQueryCancelExportConversions
Invoked at CUSTOMTOOLS Export before possible conversions are performed for each row in internal export data structure. Allows cancelling conversions before need for them is even validated.
Public eventOnQueryExportSuccess
If the export was ran silently, it's success status will be queried with this event.
Public eventOnRequestScriptButton
Invoked at CUSTOMTOOLS startup. Allows one script add-in to set up an extra button to CUSTOMTOOLS menu. Availability of the button is queried with OnRequestScriptButtonEnable and it's click event at OnScriptButtonClicked.
Public eventOnRequestScriptButtonEnable
Invoked multiple times at various cases. Allows setting availablity of the script button defined with OnRequestScriptButton.
Public eventCode exampleOnSavePost
Invoked after a SOLIDWORKS document has been saved.
Public eventOnSaveToStoragePost
Invoked after 3rdPartyData is saved to the model.
Public eventOnSaveToStoragePre
Invoked before 3rdPartyData is saved to the model. Use GetXMLData(String) and SetXMLData(String, String) to manipulate save content.
Public eventOnScriptButtonClicked
Notification that is send when user has clicked the script button defined with OnRequestScriptButton.
Public eventOnStrExport
Invoked at CUSTOMTOOLS Export when the xml data is ready but before it's saved as a file.
Public eventOnStrExportAddRow
Invoked at CUSTOMTOOLS Export for each row when the list is getting filled. Allows filling/changing column values.
Public eventOnStrExportFillColumns
Invoked at CUSTOMTOOLS Export before model structure is filled to the view. Allows hiding/adding of columns in the view.
Public eventOnStrExportFillListPost
Invoked at CUSTOMTOOLS Export after the model structure and values are filled into the Export view. Allows setting errors for rows.
Public eventOnStrExportFillListPre
Invoked at CUSTOMTOOLS Export before model structure is filled to the view. Allows manipulating the structure before it's shown.
Public eventOnStrExportPost
Invoked at CUSTOMTOOLS Export when the export procedure has finished and the xml data is saved as a file.
Public eventOnStrExportPre
Notification that occurs at CUSTOMTOOLS Export when user clicks export but before actual procedure is ran.
Public eventOnStrExportVerifyField
Invoked at CUSTOMTOOLS Export for each row and each field in the view. Allows checking the field value and setting an error message that prevents user for performing the export.
Public eventOnValidateCustomProperties
Invoked at CUSTOMTOOLS Properties when user clicks Ok/Apply and at least one property has Allow Scripting -option set. Allows manipulating property values, preventing exiting of Properties and displaying an error/warning message.
Top
See Also