Navigation: Scripting Reference Manual > Functions & Subroutines > DoCADExport

 

DoCADExport

 

Contact Us: fredsupport@photonengr.com

 

Description

This command executes a CAD export from the document associated with the script and returns a boolean indicating success or failure.

 

 

Syntax

success = DoCadExport( tCad )

 

 

Parameters

success (Boolean)

Boolean indicating whether the export was successful (True) or failed (False).

 

tCad As T_CADEXPORT

T_CADEXPORT data structure whose member values define the export conditions.

 

 

Example

The following example initializes a T_CADEXPORT structure in preparation for exporting a CAD file, sets specific member values and executes the export.

 

Sub Main

 

    Dim tCadExport As T_CADEXPORT

    Dim success As Boolean

    InitCADExport tCadExport

        tCadExport.authorName="J. Kirk"

        tCadExport.authorOrganization="UFPS"

        tCadExport.exportCurrentRayTrajectories=False

        tCadExport.filename=GetDocDir() & "\myCadExport.IGS"

        tCadExport.format="IGES"

    success = DoCADExport( tCadExport )

 

End Sub

 

 

See Also

Import/Export Script Commands

T_CADEXPORT

 

 

 

 

 

Copyright © Photon Engineering, LLC