Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic rule parameter gets stuck regardless of change

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
an42drew
430 Views, 4 Replies

ilogic rule parameter gets stuck regardless of change

Hello,

 

This is the code:

 


If SDU_Through_Ceiling = "Yes" Then
Parameter("Raceway Roof:1", "Width") = Raceway_Width
Parameter("Raceway Roof:2", "Width") = Raceway_Width
Parameter("Raceway Roof:3", "Width") = Raceway_Width
Component.IsActive("Riser Top:1") = True
Component.IsActive("Riser Top:2") = True
Component.IsActive("Riser Infil:5") = True
Component.IsActive("Riser Infil:6") = True
Component.IsActive("Riser Infil Top:1") = True
Component.IsActive("Riser Infil Top:2") = True
Component.IsActive("Riser Panel:1") = True
Component.IsActive("Riser Panel:2") = True
Else If SDU_Through_Ceiling = "No" AndAlso Width < 2500
Parameter("Raceway Roof:1", "Width") = Raceway_Width+Riser_Width+Riser_Width
Component.IsActive("Riser Top:1") = False
Component.IsActive("Riser Top:2") = False
Component.IsActive("Riser Infil:5") = False
Component.IsActive("Riser Infil:6") = False
Component.IsActive("Riser Infil Top:1") = False
Component.IsActive("Riser Infil Top:2") = False
Component.IsActive("Riser Panel:1") = False
Component.IsActive("Riser Panel:2") = False
Else If SDU_Through_Ceiling = "No" AndAlso Width >= 2500 And Width < 4500 Then
Parameter("Raceway Roof:1", "Width") = Raceway_Width+Riser_Width
Parameter("Raceway Roof:2", "Width") = Raceway_Width+Riser_Width
Component.IsActive("Riser Top:1") = False
Component.IsActive("Riser Top:2") = False
Component.IsActive("Riser Infil:5") = False
Component.IsActive("Riser Infil:6") = False
Component.IsActive("Riser Infil Top:1") = False
Component.IsActive("Riser Infil Top:2") = False
Component.IsActive("Riser Panel:1") = False
Component.IsActive("Riser Panel:2") = False
Else If SDU_Through_Ceiling = "No" AndAlso Width >= 4500 Then
Parameter("Raceway Roof:1", "Width") = Raceway_Width+Riser_Width
Parameter("Raceway Roof:2", "Width") = Raceway_Width
Parameter("Raceway Roof:3", "Width") = Raceway_Width+Riser_Width
Component.IsActive("Riser Top:1") = False
Component.IsActive("Riser Top:2") = False
Component.IsActive("Riser Infil:5") = False
Component.IsActive("Riser Infil:6") = False
Component.IsActive("Riser Infil Top:1") = False
Component.IsActive("Riser Infil Top:2") = False
Component.IsActive("Riser Panel:1") = False
Component.IsActive("Riser Panel:2") = False
End If


The red text is where i am having problems.
The rule seems to run fine up to the point of "Width" going over 4500.
The parameters Parameter("Raceway Roof:1", "Width") Parameter("Raceway Roof:2", "Width") Parameter("Raceway Roof:3", "Width")
dont change no matter what value i give them


Any help would be much appreciated








4 REPLIES 4
Message 2 of 5
akhidrosyidi
in reply to: an42drew

hi, can you attach the model included your ilogic here?

 

daily works with :
-----------------------------------------------------------------------------------------
Autodesk Inventor Profesional 2014.
AutoCAD Mechanical 2014.
Autodesk Vault Profesional 2014.
Message 3 of 5
an42drew
in reply to: an42drew

Hi,

 

I'd rather not put the whole model on, but i will try tonight to make a smaller model with just the problem parts.See if i can work it out that way. If not i will put that one on here.

I keep staring at the code but just cant seem to see whats wrong. It must be something else conflicting with this part.

 

Thanks

Message 4 of 5
an42drew
in reply to: an42drew

 

Here is a small assembly with the bit i am struggling with

 

 

In the last piece of the code

Else If SDU_Through_Ceiling = "No" AndAlso Width >= 4500 Then
Parameter("Raceway Roof:1", "Width") = Raceway_Width+Riser_Width
Parameter("Raceway Roof:2", "Width") = Raceway_Width
Parameter("Raceway Roof:3", "Width") = Raceway_Width+Riser_Width

 Raceway Roof 2 should be a Riser Width shorter than the other two but it isnt

 

 

Thanks

 
Message 5 of 5
an42drew
in reply to: an42drew

I feel like a bit of a fool, and find it hard to believe i havent come across this situation before.

Turns out the problem was not with the code but the fact i was trying to make the same parameter in duplicated components behave differently.

I simply solved this by saving the component two more times under different names and adapted the code to suit those names.

Oh well you live and learn!

 

Thanks anyway

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

Post to forums