[Er...] Posted August 20 Share Posted August 20 Hi all, Is there a keyword to create a list of parent elements of a datum system? Or a keyword to find elements used in the creation of a particular element in general? Thanks, Erik Link to comment Share on other sites More sharing options...
[Er...] Posted August 20 Author Share Posted August 20 I think I found a related post Get Referenced Elements. Let me see if this answers my question. Link to comment Share on other sites More sharing options...
[Er...] Posted August 22 Author Share Posted August 22 Unfortunately, this is not very useful. The keyword: creation_sequence_args can be used to find elements that reference the element in question. But it gets quite complicated. Link to comment Share on other sites More sharing options...
[Er...] Posted August 25 Author Share Posted August 25 import gom selection = gom.app.project.actual_elements['A | (E-F)[PL]>< | WR'] gom.script.explorer.apply_selection(selection = selection) elements = list(gom.ElementSelection ({'category': ['key', 'depends_on']})) print("Te following elements depend on", selection.name, ":") print() for item in elements: print(item.name) Issue resolved. ElementSelection with 'depends_on' does the trick. 1 Link to comment Share on other sites More sharing options...
[Ma...] Posted August 27 Share Posted August 27 See also: Selecting elements in scripts — App Development Documentation Link to comment Share on other sites More sharing options...
[Er...] Posted August 29 Author Share Posted August 29 Thanks Matthias. Very useful information and a powerful tool. 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