Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get the same sub occurrence in another occurrence

1 REPLY 1
Reply
Message 1 of 2
matt_jlt
182 Views, 1 Reply

Get the same sub occurrence in another occurrence

I am trying to select the same sub occurrence in another occurrence of the same object. A sample of the structure is below. I want to select part 1 and be able to find the same sub occurrence from Sub Assembly 1:1 in Sub Assembly 1:2 (Note: they are two occurrences of the same assembly, also there could be many levels to the assembly structure)

 

Top Level Assembly

 

Sub Assembly 1:1           Sub Assembly1:2

part 1.ipt    --------->        part 1.ipt

part 1.ipt                        part 1.ipt

part 2.ipt                        part 2.ipt

part 3 .ipt                       part 3.ipt

 

Is this possible? Any help would be appreciated.

 

Thanks, Matt.

1 REPLY 1
Message 2 of 2
YuhanZhang
in reply to: matt_jlt

Hope the Occurrences.AllReferencedOccurrences(Document) can help you.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report