Set design view representation of Sub assembly using iLogic - This is solution of many queries

Set design view representation of Sub assembly using iLogic - This is solution of many queries

Kunal_Bhansali
Contributor Contributor
805 Views
2 Replies
Message 1 of 3

Set design view representation of Sub assembly using iLogic - This is solution of many queries

Kunal_Bhansali
Contributor
Contributor
Component.InventorComponent("Sub Assembly Name").SetDesignViewRepresentation("View 1",,True)

Just run this rule in parent assembly where you want to set specific design view representation of sub-assembly

 

Sub Assembly Name = name appearing in browser for your subassembly

View 1 = name of your desired view representation in that sub assembly

 

In attached image, Sub assembly name is "Chamber Insulation Riveted" and desired view representation is "Default". It's set by this one line rule only

0 Likes
806 Views
2 Replies
Replies (2)
Message 2 of 3

dutt.thakar
Collaborator
Collaborator

@Kunal_Bhansali 

 

Are you trying to ask any question here or just posting what you have found?

 

Just another extra thing here if you have multiple level of assemblies and sub assemblies you need to write code in to each of their parent assemblies if you are doing with iLogic.

 

Hope this will be helpful.

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
0 Likes
Message 3 of 3

Kunal_Bhansali
Contributor
Contributor

Yes here i am just posting what i have found.

 

It is solution of some of the queries which were posted in different forum topics i have read. Actually gone through many queries online and nowhere found this solution. So posting it here with proper subject so that people can find it easily.

 

By the way you are right...this code is applicable for one level assembly. You can share a code here which can be useful to multilevel assembly.

0 Likes