SimplifiedLogic / creoson

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

Wildcard open all files with same format #66

Closed DieSwartKat closed 3 years ago

DieSwartKat commented 3 years ago

I've run the CREOSON open command with a wildcard

data = {'file' : '*.drw'}

If any of the drawings have an issue opening the command returns an empty list. The specific issues I'm talking about is when a model name in a drawing doesn't exist and the drawings cannot open, until the name issue is fixed.

I have three requests, let me know if I should log them in different tickets.

  1. Would it be possible to return a list of the drawings CREO couldn't open?
  2. Would it be possible to open the other files which are not broken, instead of just stopping the whole command and return an empty list?
  3. It will be ultra amazing if I can have the error message that CREO produce when trying to open the drawing.

CREO 3 CREOSON 2.8.0

thanks

davidhbigelow commented 3 years ago

Currently no...

Recommended path ... list the files and from drive, list the files in session... compare the results/differences.

Alternatively... list the files into memory and loop through them to open and catch each error.

Dave

On Thu, Apr 22, 2021 at 10:48 DieSwartKat @.***> wrote:

I've run the CREOSON open command with a wildcard

data = {'file' : '*.drw'}

If any of the drawings have an issue opening the command returns an empty list. The specific issues I'm talking about is when a model name in a drawing doesn't exist and the drawings cannot open, until the name issue is fixed.

I have three requests, let me know if I should log them in different tickets.

  1. Would it be possible to return a list of the drawings CREO couldn't open?
  2. Would it be possible to open the other files which are not broken, instead of just stopping the whole command and return an empty list?
  3. It will be ultra amazing if I can have the error message that CREO produce when trying to open the drawing.

CREO 3 CREOSON 2.8.0

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/66, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJIMK2V7NLYYGBLS32DTKAZKLANCNFSM43MT6F3Q .

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

DieSwartKat commented 3 years ago

Thanks Dave, that is what we are currently doing. The wildcard option just speed up the process significantly, if everything goes right.