Hi, I’m trying to get all of the reference points across a set of walls, intersected by a Ray, in order to create a dimension.
So far I’ve referenced the walls intersected by the ray:
refIntersector = ReferenceIntersector(wallFilter, FindReferenceTarget.Edge, view3D) referenceWithContext = refIntersector.Find( XYZ(-100,0,0) , XYZ(100,0,0)) refArray = ReferenceArray() for ref in referenceWithContext: refArray.Append(ref.GetReference())
The problem is I can’t figure out how to extract or delve deeper into the references themselves. I assume the References are Edges, but I get errors when trying to get their Endpoints, or the coordinates of the XYZ being returned, for example I can get the XYZ by using GlobalPoint, but I can’t get the coordinates or the XYZ object because it “is not callable”.
for r in refArray: p = r.GlobalPoint() print(p)
In the end my goal is to get the edge references in order to create dimensions. It seems simple enough but I think I made it more complex than it has to be.
Any ideas on how to tackle this?