Native x64 Scripting

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Programmer's Guide >

Native x64 Scripting

available from build: 20090624

It is possible to execute scripts with the native Windows x64 scripting engine.

The scripts must have the following comment line as first line:

'.x64

When running in native x64 scripting mode, the DBWScript library can't be useful for most of its subroutines, because the COM objects used are still in 32-bit mode.

Generally, functions that run properly as native x64 are:

functions that call directly a DBWShell command

functions that contains NATIVE method of VBScript WSH library

functions that don't call ActiveX (e.g. ADO)

When a script contains the '.x64 directive, it means it will be executed in-process with the calling process; otherwise the 32bit DBWScriptCOM.exe process will be created to allow the script running

script called from

script directive

process running the script

Solidworks

nothing

DBWScriptCOM.exe (32bit)

'.x64

sldworks.exe

Solid Edge

nothing

DBWScriptCOM.exe (32bit)

'.x64

edge.exe

Inventor

nothing

DBWScriptCOM.exe (32bit)

'.x64

inventor.exe

Standalone X64

nothing

DBWScriptCOM.exe (32bit)

'.x64

dbwalone64.exe

Standalone

nothing

dbwalone.exe (32bit)

'.x64 (→ignored)

dbwalone.exe (32bit)

Please note -when running in process- the script crash will produce the crash of the hosting process as well (e.g. the CAD)