It is possible I am going about this the wrong way:
What I need: When I place a part in the assembly file, we use the X, Y, Z coordinates to locate the part on the BOM. Z is distance above a set level, Y is left or right of centerline. The X is distance along the frame supports (in feet). Currently we use an Excel table to convert the X to a Frame Number plus Inches past closest frame. I am trying to get iLogic to do it to create a User Parameter that I can link into my BOM.
The issue is the frame spacing changes depending on the build, so I wanted to be able to change those numbers easily at the assembly level (so I tried SharedVariables). Also, If an Item is located at a Negative X, the frame spacing is closer together than the frame spacing at a Positive X.
So I need an equation that checks if X>0 and finds the frame number at the short spacing or X<0 and it solves for the larger spacing. So a -4 X coordinate would be #-2 Frame. A 4 X coordinate would be #2 frame (or 2.3).
The frame spacing could be User Parameters, but I thought by making them SharedVariables it wouldn't require adding that info as parameters and would make changing the numbers in the Rule easier.
Thank you for giving this a look and trying to provide guidance!
Kenny