The coordinates of the fixture insertion point for the Precast wall, which we read from NOI, are strange. For example, there was a wall with x-axis coordinates 3000-9600. The fixture insertion matrix (as I understand it is the insertion point) was equal 12367 – means not inside the wall, although the fixture is inside? I got this matrix using the Matrix method in the object CNOI_BIE_MacroPlacementStyle.
I made screenshots and an example of the code where I got the data about the insertion point.
The 1st screenshot is what we got through NOI - InsertionPoint, Placement Matrix, BoundingBox.
On the 2nd screenshot there are the real coordinates in Allplan.
In the file FixturePlacementProblemExample.txt:
I tried to get an Insertion Point – no success.
I tried to get the Placement Matrix - the offset had no sense.
Through GetBoundingBox() I managed to get the coordinates of the center of the fixture, but we need the insertion point and the measuring points, not the center.