ilogic to change factory part - syntax error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all, I'm learning how to use ilogic for inventor.
My current issue that I can't seem to get around is a syntax error.
I have obtained the correct syntax from the Autodesk website I need to use but I can't see where I am entering it incorrectly.
I am using assembly, with various iparts
I have a user parameter I named "Tank_Type_STANDARD" which I want to control the factory ipart that is loaded to the assembly. the goal is to create a form that can produce different variations of an assembly through basic changes made to the form.
my failing rule is as follows:
If Tank_Type_STANDARD = 1
Then iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_01")
ElseIf Tank_Type_STANDARD = 2
Then iPart.ChangeRow("Tank_wall_base", "Tank_Lower_Section_02")
End If
Have I approached this problem incorrectly? can my goal be achieved? I will continue to try and solve this problem in the meantime. Any and all assistance is greatly appreciated.
regards,
Chris