[Ma...] Posted August 7, 2023 Share Posted August 7, 2023 Hello, is it possible to get the label's position in the 3d area? With label's position I don't mean the point, but rather the position of the rectangle. This i because I make the script that create a label deviation instead of the dN deviation and I want to replace the dN label with a deviation label in the report and I would to put the new label in the same position as the dN label. I attach images to better explain myself. Link to comment https://qualityforum.zeiss.com/topic/3144-get-labels-position-in-the-3d-view/ Share on other sites More sharing options...
[85...] Posted August 7, 2023 Share Posted August 7, 2023 You can use "gom.script.cad.set_label_position" to set the offset of the new label to the offset of the old label old_label=gom.app.project.inspection['Surface comparison 1'].deviation_label['Surface comparison 1.1'] new_label=gom.app.project.inspection['Surface comparison 1'].deviation_label['Surface comparison 1.2'] gom.script.cad.set_label_position(elements=[new_label],offset=old_label.label_offset_in_3d_view) Link to comment https://qualityforum.zeiss.com/topic/3144-get-labels-position-in-the-3d-view/#findComment-8458 Share on other sites More sharing options...
[Ma...] Posted August 8, 2023 Author Share Posted August 8, 2023 Thank you very much, it works very weel! Link to comment https://qualityforum.zeiss.com/topic/3144-get-labels-position-in-the-3d-view/#findComment-8470 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