iPart and iLogic Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys,
I am creating a axial fan assembly with a casing and 2 flanges on both sides. However, the casing and flange (diameter & length) will change depending what model I selected. Our company has over 50+ models so I thought using iParts was the best route to go. Here is what I have done so far:
1. I created an iPart for the fan casing (12 in) with the following members; 126, 124, 124V, 122 and 122V
* they vary in Diameter and length*
2. Created an Assembly and dropped the 1 X Casing iPart and 2 X Flange
3. Created a user parameter in the assembly called "Model". This would allow me to select one of my fan models.
4. Created an iLogic ruled named "Fan Size". What I want this to do is find the model I select in the iPart Table (for example 126) and grab the dimensions for it's given Diameter and Length.
I keep getting this error message:
Error in rule: Fan Size, in document: Master_Axial Fan_Template.iam
iPart.CurrentRowValue("Length"): This function was called without a previous call to iPart.ChangeRow or iPart.FindRow.
Is there a reason why my code isn't working?
SyntaxEditor Code Snippet
iPart.ChangeRow("Master_Axial Fan_Casing:1", Model) Length = iPart.CurrentRowValue("Length") Diameter = iPart.CurrentRowValue("Diameter") iLogicVb.UpdateWhenDone = True
Please see attached models for your reference.