How to keep suppressed and unsuppressed parameters in multiples model states

How to keep suppressed and unsuppressed parameters in multiples model states

thomasadson14
Explorer Explorer
98 Views
0 Replies
Message 1 of 1

How to keep suppressed and unsuppressed parameters in multiples model states

thomasadson14
Explorer
Explorer

Hi there!

I'm having some troubles while working with multiples "model states" in inventor.
Here's the problem. First:  i have an iLogic form that allows me to change some dimensions of my principal assembly called "Cabine".

thomasadson14_0-1733862689709.png

In that iLogic Form i have an option to choose wich brake i'll use, so i have "Freio 3,5t" and "Freio 4,5t". But both of them are fixed in the "same" base but the position of that base changes according to wich brake i'm choosing. So i have this rule:

Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM 4,5T:1") = FREIO_4500T

 Select Case FREIO_4500T
 Case True
	 Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM 4,5T:1") = True
	Constraint.IsActive("Mate:37") = False
	Constraint.IsActive("Mate:38") = False
	Constraint.IsActive("Mate:39") = False
	Constraint.IsActive("Mate:40") = False
	Constraint.IsActive("Mate:41") = False
	Constraint.IsActive("Mate:42") = False
	Constraint.IsActive("Flush:40") = False
	Constraint.IsActive("Flush:43") = False

	Constraint.IsActive("Flush:46") = True
	Constraint.IsActive("Mate:54") = True
	Constraint.IsActive("Mate:55") = True
	Constraint.IsActive("Mate:56") = True
	Constraint.IsActive("Mate:57") = True
	Constraint.IsActive("Flush:47") = True
	Parameter("MRS 5878_ELC225_P126:1", "Freios_1") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") -(Dist_Freio_4T * -1) -350)
Parameter("MRS 5878_ELC225_P127:1", "Freios_2") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") - Parameter("MRS 5878_ELC225_P126:1", "Freios_1") -620)


 Case False
	 Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM 4,5T:1") = False
	 	Constraint.IsActive("Mate:37") = True
	Constraint.IsActive("Mate:38") = True
	Constraint.IsActive("Mate:39") = True
	Constraint.IsActive("Mate:40") = True
	Constraint.IsActive("Mate:41") = True
	Constraint.IsActive("Mate:42") = True
	Constraint.IsActive("Flush:40") = True
	Constraint.IsActive("Flush:43") = True

	Constraint.IsActive("Flush:46") = False
	Constraint.IsActive("Mate:54") = False
	Constraint.IsActive("Mate:55") = False
	Constraint.IsActive("Mate:56") = False
	Constraint.IsActive("Mate:57") = False
	Constraint.IsActive("Flush:47") = False
	Parameter("MRS 5878_ELC225_P126:1", "Freios_1") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") -(Dist_Freio_3T * -1) -305)
Parameter("MRS 5878_ELC225_P127:1", "Freios_2") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") - Parameter("MRS 5878_ELC225_P126:1", "Freios_1") -530)
 End Select
 
 Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM:1") = FREIO_3500T
 Select Case FREIO_3500T
 Case True
	 Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM:1") = True
	Constraint.IsActive("Mate:37") = True
	Constraint.IsActive("Mate:38") = True
	Constraint.IsActive("Mate:39") = True
	Constraint.IsActive("Mate:40") = True
	Constraint.IsActive("Mate:41") = True
	Constraint.IsActive("Mate:42") = True
	Constraint.IsActive("Flush:40") = True
	Constraint.IsActive("Flush:43") = True

Parameter("MRS 5878_ELC225_P126:1", "Freios_1") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") -(Dist_Freio_3T * -1) -305)
Parameter("MRS 5878_ELC225_P127:1", "Freios_2") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") - Parameter("MRS 5878_ELC225_P126:1", "Freios_1") -530)

	Constraint.IsActive("Flush:46") = False
	Constraint.IsActive("Mate:54") = False
	Constraint.IsActive("Mate:55") = False
	Constraint.IsActive("Mate:56") = False
	Constraint.IsActive("Mate:57") = False
	Constraint.IsActive("Flush:47") = False
 Case False
	 Component.IsActive("CONJUNTO FREIO CREMALHEIRA - SLIM:1") = False
	 	Constraint.IsActive("Mate:37") = False
	Constraint.IsActive("Mate:38") = False
	Constraint.IsActive("Mate:39") = False
	Constraint.IsActive("Mate:40") = False
	Constraint.IsActive("Mate:41") = False
	Constraint.IsActive("Mate:42") = False
	Constraint.IsActive("Flush:40") = False
	Constraint.IsActive("Flush:43") = False

	Constraint.IsActive("Flush:46") = True
	Constraint.IsActive("Mate:54") = True
	Constraint.IsActive("Mate:55") = True
	Constraint.IsActive("Mate:56") = True
	Constraint.IsActive("Mate:57") = True
	Constraint.IsActive("Flush:47") = True
		Parameter("MRS 5878_ELC225_P126:1", "Freios_1") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") -(Dist_Freio_4T * -1) -350)
Parameter("MRS 5878_ELC225_P127:1", "Freios_2") = (Parameter("Sketch G Corpo Lateral:1", "Esp_Atuador") - Parameter("MRS 5878_ELC225_P126:1", "Freios_1") -620)
 End Select

If FREIO_3500T = True Then
	FREIO_4500T = False
End If

	If FREIO_4500T = True Then
		FREIO_3500T = False
End If

 Basicly if i choose "Freio 3,5t" all the constraints related to him are set as active, and those who are positioning the "Freio 4,5t" are suppressed. When i choose "Freio 4,5t" the same thing happens but activating constraints related to him.  And is working pretty well, no problems suppressing or un-supressing those constraints. 

The problem is that in the "Primary" model state that rule is working, but when i switch to the model state called "Carcaca" those constraints that are suppressed or un-supressed dont reply in this model states. Another problem is that the values of parameters also don't reply in this different model states, like: the "Flush 43" in the Primary model state has a value of 300mm, if i change him for 450mm in primary model state, that change does not apply in the model state "Carcaca", it keep beeing 300mm.

How can i keep those suppressed constraints and the value of parameters to be the same in both model states?

0 Likes
99 Views
0 Replies
Replies (0)