Use-Case:
Model linking in architecture models with room elements and information, using the api to find the linked arch rooms that correspond with native points in my (host) model:
archDoc.IsPointInRoom(pt)
Issue:
The above works well when model origins and coordinate systems are the same. However, as with many point discrepancy issues, when model coordinate systems and origins do not match, the queried points will be different as well. I understand that and I understand there is a total transform involved. With that said, I am having trouble finding a way to transform my points (points in my model) to be aligned to the coordinate system of the linked model I am querying. For example, say the linked room point is (-500, 20, 100). A family I have centered in that room in my model has a location point of (-40, 20, 100). When I get the transform of the linked model and use Geometry.Transform on the room’s point, it returns a point that makes sense relative to my coordinate system. However, when I use Geometry.Transform on my family point with the link model transform, it doesn’t give me a point that makes sense in the linked model coordinate system. Any ideas how to make this work? Thanks.
I am basically trying to convert my native points to new points that work in the CS of the linked model so that I can place them in the code:
archDoc.IsPointInRoom(transformedpt)
so that they will now work for the archDoc to find rooms.