Navigation: Scripting Reference Manual > Data Structures > T_CADEXPORT

 

T_CADEXPORT

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure used for exporting a model (or components) from a document.

 

 

Definition

T_CADEXPORT

authorName As String

authorOrgainization As String

coincidenceTolerance As Double

disableTrimming As Boolean

exportAllCurves As Boolean

exportCurrentRayTrajectories As Boolean

exportNeverTraceableSurfs As Boolean

exportSelectedEntities As Boolean

exportTraceableSurfs As Boolean

exportUntraceableSurfs As Boolean

filename As String

format As String

numEdgeSamples As Long

numRadialSamples As Long

numUpatches As Long

numVpatches As Long

 

 

Members

authorName

String indicating the name of the project's author.

 

authorOrganization

String indicating the author's organization.

 

coincidenceTolerance

Value below which points/curves/surfaces are considered coincident.

 

disableTrimming

Boolean indicating whether trimming should be ignored (True) or applied (False).

 

exportAllCurves

Boolean indicating whether curves should be created during export.

 

exportCurrentRayTrajectories

Boolean indicating whether current ray trajectories should be created during export.

 

exportNeverTraceableSurfs

Boolean indicating whether surfaces flagged as Never Traceable should be created during export.

 

exportSelectedEntities

Boolean indicating whether ONLY entities currently selected on the object tree should be created during export.

 

exportTraceableSurfs

Boolean indicating whether surfaces flagged as Traceable should be created during export.

 

exportUntraceableSurfs

Boolean indicating whether surfaces flagged as Untraceable should be created during export.

 

filename

String specifying the filename (full path) for the exported geometry.

 

format

String specifying the export file format.  Options are:

"STEP"

"IGES"

 

numEdgeSamples

For Ruled Surfaces, this specifies the number of samples along the edge curve.

 

numRadialSamples

For standard and general aspheres and tubes with one unity shape factor , this specifies the number of radial sampels.

 

numUpatches

For fitted surfaces, this specifies the number of U patches.

 

numVpatches

For fitted surfaces, this specifies the number of V patches.

 

 

Example

The following script example initializes a T_CADEXPORT data structure and prints out their default values to the output window.

 

Sub Main

 

    ClearOutputWindow

 

    Dim tCadExport As T_CADEXPORT

    InitCADExport tCadExport

        Print "Author: " & Chr(9) & tCadExport.authorName

        Print "Organization: " & Chr(9) & tCadExport.authorOrganization

        Print "Coincidence tolerance: " & Chr(9) & tCadExport.coincidenceTolerance

        Print "Disable trimming: " & Chr(9) & tCadExport.disableTrimming

        Print "Export all curves: " & Chr(9) & tCadExport.exportAllCurves

        Print "Export ray trajectories: " & Chr(9) & tCadExport.exportCurrentRayTrajectories

        Print "Export never traceable surfs: " & Chr(9) & tCadExport.exportNeverTraceableSurfs

        Print "Export selected entities: " & Chr(9) & tCadExport.exportSelectedEntities

        Print "Export traceable surfs: " & Chr(9) & tCadExport.exportTraceableSurfs

        Print "Export untraceable surfs: " & Chr(9) & tCadExport.exportUntraceableSurfs

        Print "Filename: " & Chr(9) & tCadExport.filename

        Print "Format: " & Chr(9) & tCadExport.format

        Print "Num edge samples: " & Chr(9) & tCadExport.numEdgeSamples

        Print "Num radial samples: " & Chr(9) & tCadExport.numRadialSamples

        Print "Num U patches: " & Chr(9) & tCadExport.numUpatches

        Print "Num V patches: " & Chr(9) & tCadExport.numVpatches

 

End Sub

 

 

See Also

Import/Export Script Commands

CAD Export

 

 

 

 

 

Copyright © Photon Engineering, LLC