iLogic - Model State - Lower Level Assembly

iLogic - Model State - Lower Level Assembly

JKunHN5NJ
Explorer Explorer
284 Views
1 Reply
Message 1 of 2

iLogic - Model State - Lower Level Assembly

JKunHN5NJ
Explorer
Explorer

I am trying to use iLogic in a top level assembly, to change the model state of a lower level assembly. 

 

I have started off with this code, but obviously this is editing the top level and not the lower.

 

The top level assembly does not have model states.

 

MultiValue.SetValueOptions(True, DefaultIndex)
MultiValue.SetList("BASE_TUBE_NUMBER", "13.50 - 01000", "13.50 - 01025")

Select Case BASE_TUBE_NUMBER
	
Case "13.50 - 01000"
	ThisDoc.ActiveModelState = "master"
	
End Select

 

How do I link this to the lower levels?

0 Likes
285 Views
1 Reply
Reply (1)
Message 2 of 2

dalton98
Collaborator
Collaborator

Hello,

To change the active model state of a component use this:

Component.ActiveModelState("Part1:1") = "Master"

 If the model state names are the same for assembly and part the 'Link Model States' ribbon api seems to work ususally.

0 Likes