Jump to content

Change Alignment Heirarchy in GOM by script


---
 Share

Recommended Posts

My project have 100's of BestFit alignments and one RPS alignment.
For some reason a guy programmed the BestFit alignment based on RPS. But here the problem is the BestFit alignment creation has to be based on Pre-alignment instead of RPS.
So normal thing to do is manually open each BestFit alignment and change the Heirarchy to Prealignment , which will work 100%. 
But here the problem is i have to do for all 100's of alignments.

So I recorded the script for one Alignment change and try to do for all other alignments. but the GOM does not allow this in scripting API

  • Somebody please give any idea to fix this issue ?
  • Does anybody know if the newer version of software shows the same error ?

Im using GOM 2020 version.

image.png.4a9f8df18d857ecaa8c22320308d8441.png image.png.04879c0d0c8b64b72893ba9826ebd5b2.png

Edited
Link to comment
Share on other sites

You can do it manually by draging those alignments one by one from current ( Main ) into prealignment.

You still have to do it one by one, but better than reopening that window.

I will be at Inspect again in monday

Link to comment
Share on other sites

There is a function in

Operations -> Alignment -> Edit Alignment -> Move Alignment

which worked for me in a simple test project by scripting.

 

Link to comment
Share on other sites

Please sign in to view this username.

,
you are right. I could drag the alignments without re-opening the window.
Im looking for a easy script solution. I have many projects like this to move alignments , will be much difficult to do one by one.
Also , The script wont work even if we run the same manual recorded steps. I wonder if this has anything to do with version GOM 2020 Python API.
 

Link to comment
Share on other sites

Please sign in to view this username.

,
Great ! It works with script. I completely missed this feature.
Now I can atleast develop script. Thank you so much 😉

Link to comment
Share on other sites

 Share

×
×
  • Create New...