Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Problem exporting dwg from jlink

maglin

New member
Hi!


I'm having a problem with exporting the DWG format. The generated file is not complete (about 6k) and when I try to read it into ProE I get two errors:


The specified DXF file does not exist


Invalid DWG file


ProE does not issue any error nor warning messages.


Using the same code, exept for the export commands, I can generate a correct DXF file. Here is the code that differs between the two exports:


DWG code


DWGSetupExportInstructions exportinstructions = pfcModel.DWGSetupExportInstructions_Create();


model.Export(configuration_partnumber+".dwg", exportinstructions);


DXF code


DXFExportInstructions exportinstructions = pfcModel.DXFExportInstructions_Create();


model.Export(configuration_partnumber+".dxf", exportinstructions);


I'm using ProE Wildfire 2.0 and java 1.4.2 on a Microsoft Windows Server 2003, standard edition.


Has anybodyexperienced anything like this?


Cheers, Magnus
 

Sponsor

Back
Top