Message 1 of 7
Select Active iPart Using Assembly User Parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am struggling to figure out what should be a simple "lookup" command from the assembly environment. I am trying to rely on a user parameter (ANGLE_DROP) in the assembly HS-03-XX.iam to determine which derivation of an angle iPart (iLogic Angle.ipt) to use. Based on this youtube tutorial I had come across - I thought the solution would be to use the following code:
i = iPart.FindRow("ANGLE:1", "ANGLE_LENGTH", "<=", ANGLE_DROP)
This should find and activate the corresponding row based on a match in the "ANGLE_LENGTH" column, correct? For some reason, it is not working correctly. Any thoughts?