Skip to main content
13-Aquamarine
May 9, 2022
Solved

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

  • May 9, 2022
  • 1 reply
  • 1801 views

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);

 

Best answer by tbraxton

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.

1 reply

tbraxton
22-Sapphire II
tbraxton22-Sapphire IIAnswer
22-Sapphire II
May 9, 2022

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.