TrackEvents

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > PDMSystem >

TrackEvents

Description

This command activate/deactivate the event system of the Mechworks PDM, enabling a script to AVOID the automatic recording when saving.

Syntax

call DBWShell("TrackEvents EnabledMode [permanent]")

Parameters

EnabledMode

[0/1]
0: disables the event system
1: enables the event system

permanent

optional.
1: if EnableMode is 0 (no tracking), it doesn't restart tracking when the script is terminated.

Parameters

See the list of Mechworks PDM tracked events.

Example

Sub main()

 call DBWShell( "TrackEvents 0" )
 call DBWShell( "SWOpen C:\Program|Files\dbworks\regressionTest\handlebar\Brake|Handle|Pivot|Nut.SLDPRT" )
 if (okDBW ) then
  call DBWShell( "SWSave" )
  call DBWShell( "SWSaveAs F:\temp\test.sldprt" )
  call DBWShell( "SWClose" )
 end if
 call DBWShell( "TrackEvents 1" )
end sub