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
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
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
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
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
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
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
RE: iRule Problem
Resolved the problem by referring to the Axis as suggested.
Thank you so much yet once again.
cjj