I'm sure the answer is no, but is there anyway to have a PIO get the hanging position name that it is placed on?
Exactly how Spotlight Instruments detect the Hanging Position they're attached to? My exact application is when a custom Truss Tag PIO is placed on a piece of truss I want it to auto fill its Position field.
Very yes. I've attached a short PIO showing this. It's a Point Object with a single parameter, a static text parameter called linkedPos. The PIO is set to Reset on Move (this is very important).
The code looks like this:
PROCEDURE PickTest;
VAR
linkedPos,objName:STRING;
objHd,recHd,wallHd,pickHd:HANDLE;
origin:POINT;
BEGIN
linkedPos:=PlinkedPos;
IF GetCustomObjectInfo(objName,objHd,recHd,wallHd) THEN GetSymLoc(objHd,origin.x,origin.y);
pickHd:=PickObject(origin.x,ori