SimplifiedLogic / creoson

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

Request for faults when opening multiple CREO items. #39

Closed DieSwartKat closed 4 years ago

DieSwartKat commented 4 years ago

We are using the wildcard functionality in the CREOSON file open command:

{'command': 'file', 'function': 'open', 'sessionId': '9083350336389293788', 'data': {'file': '*.drw', 'display': True, 'activate': False, 'regen_force': True, 'new_window': True}}

The problem with this method is that sometimes we have an issue when drawings do not open. Like if someone renamed a part in a drawing and the drawing is not updated. Also, errors like simplified reps that are in drawing that are missing causes this message when manually opening drawings:

image

Users will have to open each manually, which is kind of pointless.

Would it be possible to at the very least get CREOSON to return the error lists of the components /drawings which were true to *.drw but didn't open?

adama2000 commented 4 years ago

There is a creoson function "open_errors" which might help. You can call it with a file and it will return true if any errors occurred.

If you don't know the file names, you could use file.list with the same wildcard argument you used for file.open.

image