How to retrieve the structure of instance up to model?
-
hello,
i just stuck at one point:wirh onmousemove i can get the instance/component - structure easily:
pickhelper = view.pick_helper pickhelper.do_pick(x, y) pickhelper.count.times { |pick_path_index| pp=pickhelper.path_at(pick_path_index) }
i can the iterate pp and get for example all transformations.
now when i iterate thru entities of a certain instance and want to get the parent, i do not get the higher INSTANCE, but the DEFINITION LIST.
how can i get the whole path as in the pickhelper from a selected instance?
thanx a lot for helping .
stan
edit1 : found this interesting topic:
starting to check it out!
edit 2:
this works, but interesting:
not the returned arry of elemnts holds the row, but the array[0]
BUT IT WORKS FINE !!!!
-
@areal3d said:
hello,
... now when I iterate thru entities of a certain instance and want to get the parent, i do not get the higher INSTANCE, but the DEFINITION LIST.Instances do not have
Entities
collections. Only definitions and the top-level model have anEntities
collection. -
@areal3d said:
hello,
how can i get the whole path as in the pickhelper from a selected instance?You will either need to build an
InstancePath
as you drill down or get theModel.active_path
and add the selected instance to it.
Advertisement