SimplifiedLogic / creoson

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

Model Properties : Accuracy #51

Closed Zepmanbc closed 4 years ago

Zepmanbc commented 4 years ago

Hi

Is it possible to get current Accuracy of a model? the value and if it is Relative or Absolute

Thank you

adama2000 commented 4 years ago

Yes it would be possible, we could return both relative and absolute accuracy values. Doing so would be an enhancement.

Maybe it would be a single "get_accuracy" function which took a boolean argument which said whether you wanted absolute or relative accuracy? Or should it be two separate functions?

adama2000 commented 4 years ago

I took a closer look at the Creo documentation -- it says that only one or the other value is given, not both. So it would be one function that returns a single value plus a relative/absolute flag as you said.

Zepmanbc commented 4 years ago

That would be perfect the value plus the flag

Le ven. 10 juil. 2020 à 19:52, adama2000 notifications@github.com a écrit :

I took a closer look at the Creo documentation -- it says that only one or the other value is given, not both. So it would be one function that returns a single value plus a relative/absolute flag as you said.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/51#issuecomment-656803922, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQAPQWXZG7EWLCSJKX3MLTR25IMHANCNFSM4OWV5W4Q .

adama2000 commented 4 years ago

I checked in the file.get_accuracy function. Appears to work for me, though I couldn't find a model with absolute accuracy for testing.

adama2000 commented 4 years ago

Now tested with an absolute-accuracy model. Thanks @Zepmanbc