SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
81 stars 23 forks source link

interface - export_image : drw => General Error. Check your model/drawing for accuracy #49

Closed Zepmanbc closed 3 years ago

Zepmanbc commented 4 years ago

Hello,

I try to export a picture of a drawing (yes a pdf is better but i need a picture for what i'm doing) I got this issue:

A Pro/TOOLKIT error has occurred: General Error. Check your model/drawing for accuracy.

I tried all 4 image types available (JPEG, TIFF, BMP, EPS) without success. Is it a limitation for drawing files? is it my drawing file the problem (I tried with differents files)?

Second question: For a drw in the save as options there is no JPEG, but there is PNG Is it possible to add PNG support (even for prt and asm)? Thanks

davidhbigelow commented 4 years ago

The export_image expects a model (part / assembly).

For drawings - I think you would have to run a mapkey to get the png export.

We will have to check to see if there is a PNG export option ... I don't recall it is a default option.

On Tue, Apr 14, 2020 at 5:09 AM Zepmanbc notifications@github.com wrote:

Hello,

I try to export a picture of a drawing (yes a pdf is better but i need a picture for what i'm doing) I got this issue:

A Pro/TOOLKIT error has occurred: General Error. Check your model/drawing for accuracy.

I tried all 4 image types available (JPEG, TIFF, BMP, EPS) without success. Is it a limitation for drawing files? is it my drawing file the problem (I tried with differents files)?

Second question: For a drw in the save as options there is no JPEG, but there is PNG Is it possible to add PNG support (even for prt and asm)? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJMIJJIPT4ACUK5VC33RMQR4RANCNFSM4MHSKREQ .

-- David Bigelow, President Simplified Logic, Inc https://www.simplifiedlogic.com | SimilarParts.ai C: 317-431-5454

adama2000 commented 3 years ago

The JLink interface does not support a PNG export, unfortunately.

After testing drawing exports, I added a better error message for any attempt to export an image of a drawing.