[Ma...] Posted August 12 Share Posted August 12 (edited) Hi, is there a way to do in script some actions but having only one step in history? I am making many points, but i would like to have it like one step. I am working on a script where i want to have specified number of equaly spaced points. Since CAD model faces are strangely divided i get wrong results using section and reducing it's points. Those points will be projected on mesh. Edit: I just found that my intended creation of points can be done by another approach, which is one step in history. But anyways, question for that history step is still here Edited August 12 Link to comment Share on other sites More sharing options...
[De...] Posted 2 hours ago Share Posted 2 hours ago Hey martin, not sure what you mean by 'one step in history'. (like 1 undo function?) I've never tried it, but maybe you could try this? if you do, let us know how it works! gom.api.tools.MultiElementCreationScope https://zeiss.github.io/zeiss-inspect-app-api/2026/python_api/python_api.html#gom-api-tools-multielementcreationscope Link to comment Share on other sites More sharing options...
[Ma...] Posted 1 hour ago Share Posted 1 hour ago Please sign in to view this username. Hi and thanks for a hint. This seems to be what i was searching for. Unfortunately it's only for 2026 - i have still 2025 and it's not available. Basically if i do in the script creation of 50 single points, then in history ( undo ) i have it filled with each point and i would like to have it in one action removed that step. I've found a working way to obtain what i need and for now i am staying at half working solution. In a nutshell: customer wants to have evenly spaced 30 points on a circular path from upper half and lower half of a part. I was using section and equally spaced points on a edge. Problem is it's defined by distance and not number of points. Then i wanted to add offset to that selection. So i've done a script, where i select actual section from tree, do selection of all points, use deselection based on sphere ( size of offset ) on both endings of selected curve, calculation of point distance and it's done. I saw that some of points are not with correct distance, but i saw that this function is returning created points, so for fully working solution i'll do own calculation and selection of points, so my script will return point cloud. 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