Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

iRule Problem 1

Status
Not open for further replies.

cjjatpuresilica

Civil/Environmental
Oct 20, 2010
65
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
 
Replies continue below

Recommended for you

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.
 
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.
 
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.
 
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

 
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
 
 http://files.engineering.com/getfile.aspx?folder=1473fdd8-5adc-410f-8317-c1041865be52&file=array.jpg
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.
 
Dear EngAddict,

Resolved the problem by referring to the Axis as suggested.

Thank you so much yet once again.

cjj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor