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 If / ElseIf conditional Suppression & Reposition

2 REPLIES 2
Reply
Message 1 of 3
Kris_Inv2013
543 Views, 2 Replies

iLogic If / ElseIf conditional Suppression & Reposition

Hi there,

I wonder if someone could help me with this. There are many similar topics up here and I am encountering with this too, I can’t figure out where I might go wrong.

 

I use a simple If/ElseIf code to suppress/unsuppress  & reposition holes on a plate to ensure the desired number of fixing hole pairs.

The hole positions will change and suppress/unsuppress depending on the value of the Tie Rod Pitch (vertical) and the O/A length of this plate (and pressure inside the radiator but this is sorted in Excel).

 

For example PitchMax = 500mm, BP_2ndS= 1600mm (plate length)

    If  (3 * TieRodPitch_MAX_2ndS ) < BP_2ndS <  (4 * TieRodPitch_MAX_2ndS)  Then

...

 

For some reason some times the parameters don’t update in the hole and pattern features after running the rule thus they are in the wrong position or not suppressed/unsuppressed. When I rearrange the If/ElseIf codes it may work. All I change is just replace ElseIfs with If-End Ifs  or the other way around...

Which does not make any sense to me, since I change nothing in the parameters or conditions...

Is this code structured poorly? Or what else might be wrong?

 

Thanks in advance.

p.s. this is an engine radiator and the number of tie rod pairs depend on the height of the block, pressure inside, width, etc.

The part fie has the code.

 

rgds,

Kris

2 REPLIES 2
Message 2 of 3
mrattray
in reply to: Kris_Inv2013

It works fine for me. Could you post the Excel file so I can test it for the update problems you reported?

I don't like the way you formated the code, but I don't see why it wouldn't work.

Mike (not Matt) Rattray

Message 3 of 3
Kris_Inv2013
in reply to: mrattray

Thanks Mike.

Have you got an e-mail address please? I would prefere not to send it on here.

 

 

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

Post to forums  

Autodesk Design & Make Report