Skip to main content
1-Visitor
Sep 20, 2020 4:54 PM UTC
Question

Export2DOption

Hi,

I'm trying to export creo drawing to dxf with WebLink application, but I don't know how to use pfcExport2DOption. For PDF there's a documented way how to use options:

var expInstructions = pfcCreate("pfcDXFExportInstructions").Create();

var expInstructions = pfcCreate("pfcPDFExportInstructions").Create();

var pdfOptions = pfcCreate("pfcPDFOptions");

...

expInstructions.Options = pdfOptions;

But for DXF (pfcExport2DOption) can't find a way to pass options to export instructions.

10 replies

18-Opal
Sep 21, 2020 11:47 AM UTC

A mapkey may be an option to set your options - assuming they are available via the UI.

 

dave

Translate
pawel_j1-VisitorAuthor
1-Visitor
Sep 21, 2020 4:46 PM UTC

Thanks, but I'd expect some programmable solution, like for PDF export. I see there's an CS19626 article about this but unfortunately I don't have subscription.

Translate
18-Opal
Sep 22, 2020 11:49 AM UTC

Technically... Mapkeys are a programmable solution... you can parameterize and execute them in your code - they are just not a "native call" to the kernel via a focused API.  Mapkeys, while not elegant - can often fill the gaps in the API that the UI seems to present options for - hence the recommendation.

 

 

 

 

 

Translate