[Ad...] Posted June 1, 2022 Share Posted June 1, 2022 Hello How can report in a table "Max. deviation" parameter of Fitting Plane ? I have access to this parameter via script, but i can't find method to report it on the table. Sigma, Residual and Selected Points are listed in Quality menu. It looks "Maximum deviation label" created on surface comparison is not the same property. Regards Adam B. Link to comment Share on other sites More sharing options...
[Mi...] Posted June 2, 2022 Share Posted June 2, 2022 Hello Adam, as you have mentioned, there seems to be no way to choose "Max. deviation" directly from the menu in the same way as the other adjustment results that you have added to your table already. However, you can display the maximum deviation with a "user defined check." Such a check is available from the menu via "Inspection->Check Dimensions->Other->User Defined...". This will open a dialog and you can enter "actual.adjustment_result.absolute_maximum" as an expression to define the value you want. The following Python code should do the same thing. gom.script.inspection.inspect_dimension ( elements=[gom.app.project.actual_elements['PLN_LEFT']], type={'abbreviation': 'Max. Deviation', 'actual_expression': 'actual.adjustment_result.absolute_maximum', 'base_type': 'construct_user_defined', 'inputs': [], 'nominal_expression': '0.0', 'type_name': 'Max. Deviation', 'unit': 'LENGTH'}) I hope that helps. Link to comment Share on other sites More sharing options...
[Ad...] Posted June 2, 2022 Author Share Posted June 2, 2022 Thanks Michael. Works great ! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in