Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

How to export a creo model to JT (enable xtbrep) with Creo OTK Java / Jlink

SS_10757213
10-Marble

How to export a creo model to JT (enable xtbrep) with Creo OTK Java / Jlink

How to export a creo model to JT (enable xtbrep) with Creo OTK Java / Jlink。 I use such code:

GeometryFlags geometryFlags = pfcExport.GeometryFlags_Create();
geometryFlags.SetAsQuilts(false);
geometryFlags.SetAsWireframe(false);
geometryFlags.SetAsSolids(true);
geometryFlags.SetAsSurfaces(true);
AssemblyConfiguration asmCfg = AssemblyConfiguration.EXPORT_ASM_SINGLE_FILE;
JT3DExportInstructions expJtIns= pfcExport.JT3DExportInstructions_Create(asmCfg,geometryFlags);

model.Export(jtFilePath,expJtIns);

 

recieive error :XInvalidInput

ACCEPTED SOLUTION

Accepted Solutions
remy
21-Topaz I
(To:SS_10757213)

Hi the error returns XInvalidInput : 

Consequently you need to debug the inputs of the method individually and collectively. Meaning that some input combinations are unsupported for various reasons. One way to check the input aka flags validity is to run the export from Creo Paramtric UI.

Another way to run 

isGeomRepSupported 

 

Additionally the following article https://www.ptc.com/en/support/article/CS289580 recommends to ExportType.EXPORT_JT

 

You might as well find inspiration and derive code from this STEP export code sample : https://www.ptc.com/en/support/article/CS224527 

View solution in original post

1 REPLY 1
remy
21-Topaz I
(To:SS_10757213)

Hi the error returns XInvalidInput : 

Consequently you need to debug the inputs of the method individually and collectively. Meaning that some input combinations are unsupported for various reasons. One way to check the input aka flags validity is to run the export from Creo Paramtric UI.

Another way to run 

isGeomRepSupported 

 

Additionally the following article https://www.ptc.com/en/support/article/CS289580 recommends to ExportType.EXPORT_JT

 

You might as well find inspiration and derive code from this STEP export code sample : https://www.ptc.com/en/support/article/CS224527 

Announcements


NEW Creo+ Topics: Real-time Collaboration

Top Tags