[Ma...] Posted yesterday at 08:06 AM Share Posted yesterday at 08:06 AM Hi, i am working on removal of magnets based on ref. points - i am using select inside sphere. Script is running ok, but i wanted to remove that from measurement instead from polygonized model -> i've solved. To block removing selection i wanted to use "gom.app.project.parts[0].actuals.selected_area" which is not working properly - it's saying 0.0 when is mesh polygonized and selection is on measurement. Bug part: But if nothing is selected, then whole Inspect is crashing. Using "try - exception" is not helping. Is there a command to get selected area globally? Not just mesh. Thanks Link to comment Share on other sites More sharing options...
[Ma...] Posted yesterday at 01:24 PM Author Share Posted yesterday at 01:24 PM Edit to topic: it fails in this case. ... How big is selected area Remove selected How big is selected area -> crash Is there a way how to see if its pre-mesh? I can not find any information if polygonization was done Link to comment Share on other sites More sharing options...
[De...] Posted 1 hour ago Share Posted 1 hour ago Hey martin, could you post your code? you might want to try and use if gom.app.project.parts[0].actuals.selected_area > 0.0: delete else: ?? Dialog - manual selection / increase radius / continue... ?? Since that keyword (.selected area) isnt available for the individual measurements, i'd recommend just selecting the mesh, deleting what you need to delete, then let it recalculate. hope it helps. Link to comment Share on other sites More sharing options...
[Ma...] Posted 1 hour ago Author Share Posted 1 hour ago I'll try tomorrow post a code with some description. You are right with selected_area and that's what i have there, but sometimes app crashes and sometimes not. I was attempting to either remove that selection from measurement or polygonized model - both variants are working. But sometimes it crashes and i can not find why. Reason for doing it before polygonization - after polygonization it's back. I would rather have and option to know when is model polygonized, otherwise it's no use to do it on pre-mesh. In sketch -> i do exclusively show only measurement mesh to have right selection, then removing selected area. Or depending on condition it's exclusively shown polyg. mesh and selection is on that mesh. Before anything i store visible things and after removal i restore visible again. 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