Message 1 of 7
iLogic rule to match parameters
Not applicable
01-31-2018
04:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm strugling with this what seems to appear a very simple case..
I have an iPart which is basicaly a box with its Width and Leangth defined in iPart tabe.
Than I inserted that iPart into iAssembly and made another table to do ipart table replace.
I want to write a simple iLogic rule that could grab active Width and Length parameters from ipart and store them as custom user parameters in assembly every time i change iasembly component.
I tried this rule, but it does not work. If first If turns out to be true it works, but if it returns false I get an error saying "Component: The component named "Glass-1476x3576:3" was not found."
If Component.IsActive("Glass-1476x3576:3") = True Then
Parameter("Width") = Parameter("Glass-1476x3576.ipt", "Width")
Parameter("Length") = Parameter("Glass-1476x3576.ipt", "Length")
ElseIf Component.IsActive("Glass-1191x3576:3") = True Then
Parameter("Width") = Parameter("Glass-1191x3576.ipt", "Width")
Parameter("Length") = Parameter("Glass-1191x3576.ipt", "Length")
ElseIf Component.iComponentIsActive("Glass-9761x3576:3") = True Then
Parameter("Width") = Parameter("Glass-1191x3576.ipt", "Width")
Parameter("Length") = Parameter("Glass-1191x3576.ipt", "Length")
End If