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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

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

Robrecht
12-Amethyst

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

 

Kind regards
Robrecht
1 ACCEPTED SOLUTION

Accepted Solutions
tbraxton
21-Topaz II
(To:Robrecht)

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.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

View solution in original post

1 REPLY 1
tbraxton
21-Topaz II
(To:Robrecht)

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.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Top Tags