Jump to content

Finding an element's parents, all the way up


---
 Share

Recommended Posts

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

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

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.

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...