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
Entitiescollections. Only definitions and the top-level model have anEntitiescollection. -
@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
InstancePathas you drill down or get theModel.active_pathand add the selected instance to it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement