cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to control the layers while exporting a stepfile with J-Link/Toolkit?

RV_10256227
7-Bedrock

Is it possible to control the layers while exporting a stepfile with J-Link/Toolkit?

I'm writing a piece of code to automate the exporting of stepfiles and I can control certain properties in the export-instructions (such as GeometryFlags)

But I can't seem to find a solution to control the export status of the layers of the model.

I know you can choose the export status of each layer if you manually export the model to a STEP file

(Save As -> Customize Export -> Customize Layers)

2022-05-09 12_11_14-Window.png

But is it possible to control these export statuses using code (J-Link/Toolkit)?

 

(This piece for example exports the model as a stepfile: )

GeometryFlags gf = pfcExport.GeometryFlags_Create();
gf.SetAsSolids(true);
ExportInstructions ei = pfcExport.STEP3DExportInstructions_Create(AssemblyConfiguration.EXPORT_ASM_SINGLE_FILE, gf);
model.Export(model.GetInstanceName(), ei);

 

1 REPLY 1
tbraxton
20-Turquoise
(To:RV_10256227)

Apply layer settings and a reference coordinate system to the STEP3DExportInstructions instance if you need other than defaults. 

 

LayerExportOptions—The instructions object returned by the method
pfcExport.pfcExport.LayerExportOptions_Create that
describes how to export layers.

Announcements