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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Export a as IGES

akok
12-Amethyst

Export a as IGES

Hi,

 

My first script in J-link, I will make an export of the part into IGES, but I can't get it to work.

 

        IGES3DNewExportInstructions igesInstrs;

        GeomExportFlags gef = pfcModel.GeomExportFlags_Create();

        gef.

        igesInstrs = (IGES3DNewExportInstructions) pfcModel.IGES3DExportInstructions_Create(gef);

        model.Export(model.GetFullName(), igesInstrs);

 

As I can see I need to put in some Export Instructions, but I can't find any info about the GeomExportFlags.

 

Can you help, or is this the way to go?

 

Regards

Allan Kok

ACCEPTED SOLUTION

Accepted Solutions
James62
12-Amethyst
(To:akok)

hi,

Untested code:

Window window = session.GetCurrentWindow();

Model model = window.GetModel();

String modelName = model.GetFullName();

GeometryFlags flags = pfcExport.GeometryFlags_Create();

flags.SetAsSolids(true);

IGES3DNewExportInstructions IGES3DExportInstr =

        pfcExport.IGES3DNewExportInstructions_Create(AssemblyConfiguration

                .EXPORT_ASM_SINGLE_FILE, flags);

model.Export(modelName, IGES3DExportInstr);

View solution in original post

2 REPLIES 2
James62
12-Amethyst
(To:akok)

hi,

Untested code:

Window window = session.GetCurrentWindow();

Model model = window.GetModel();

String modelName = model.GetFullName();

GeometryFlags flags = pfcExport.GeometryFlags_Create();

flags.SetAsSolids(true);

IGES3DNewExportInstructions IGES3DExportInstr =

        pfcExport.IGES3DNewExportInstructions_Create(AssemblyConfiguration

                .EXPORT_ASM_SINGLE_FILE, flags);

model.Export(modelName, IGES3DExportInstr);

akok
12-Amethyst
(To:James62)

Thank you, I get it to work!

Announcements


Top Tags