Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
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
Solved! Go to Solution.
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
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