×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

iRule Problem

iRule Problem

iRule Problem

(OP)
Can anyone please explain why the folwing iRule does not control the parameter HeightAdjustment even though the Driving Rule column confirms that the iRule affects the parameter?

Thank you.
cjj




If BldgType = Outer
    HeightAdjustment = Height
    
BldgType = Inner And SunStrength = Normal
    HeightAdjustment = Height/2
        
BldgType = Inner And SunStrength = Intense
    HeightAdjustment = Height/3
End If
 

RE: iRule Problem

Can you post the part file, you haven't included enough information. Also I think you should be using ElseIf statements for Normal and Intense options. See below:

If     BldgType = Outer
       HeightAdjustment = Height
    
ElseIf BldgType = Inner And SunStrength = Normal
       HeightAdjustment = Height/2
        
ElseIf BldgType = Inner And SunStrength = Intense
       HeightAdjustment = Height/3

End If

You might also find that 'select case' is a better option for this that If statements.

RE: iRule Problem

(OP)
Dear EngAddict,

Thank you for your kind response.

I am surprised there is very little info about this online.

Nethertheless, I managed to solve the problem in the early hours of Sunday morning, as below:

Thank you once again.

Christopher

If BldgType = "Outer" Then
AdjustedHeight = 581.32 mm
Thickness = 3.0 mm
PerpFlangeWidth = 45 mm
BaseFlangeWidth = 104.3 mm
PerpFlangeOffset1 = 100 mm
PerpFlangeOffset2 = 40 mm
PerpFlangeChamferDistance = 25 mm
PerpFlangeTopChamferDistance = 35 mm
FlangeRadius = 7.5 mm
ElseIf BldgType = "InnerNormal" Then  etc.

RE: iRule Problem

Glad you got it working.

You don't really need to add the 'Then' at the end but it can't hurt.

There are some examples in the iLogic help regarding this sort of thing. Alternatively just search regarding logic statements or an introduction to VBA.

RE: iRule Problem

(OP)
Dear EngAddict

Thank you once again for your kind reply.

I must confess apart from the detailed 90 mins tutorial I found on UTube by KetivTechnologies the bulk of the examples I found were mere flippant showing-off.

This puzzled me for I would have thought the ability to drive one's parts and models by either XML files or the iLogic iRules would be widely adopted by users.

During my 15 years of MDT using the spreadsheet function to drive parts was paramount for me.

I am also puzzled why Inventor 2011 does not include a simple XML editing tool. I found it frustrating that the add value option within Parameters does not allow one to insert, to keep the structure logical and organised.

I have been using a quite complex software called Altova XMLSpy which is unnecessarily more complex than I need.

Thank you once again.

cjj

 

RE: iRule Problem

(OP)
Dear EngAddict,

Would it be possible to help me with another problem please?

In the attached image I am endeavouring to array an 8 sided cut out. But because the edges of the cut out are at an angle, I am unable to achieve an array that is either directly above or immediately to the side.

In other words the array is being influenced by the angles of the cut out. This is peculiar for in AutoCAD one would simply input the array parameters in both the x and y axis?

Can you help at all please?

I am most grateful.

cjj
 

RE: iRule Problem

Yes, if you select your edge it will use this for direction, as this is often the intended purpose for patterns along curves. Try using your origin axes or create a sketch if you need to pattern in a custom direction.

RE: iRule Problem

(OP)
Dear EngAddict,

Resolved the problem by referring to the Axis as suggested.

Thank you so much yet once again.

cjj

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources