Obtain InsertionPoint (same as in FamilyEditor) from CurtainPanel

Obtain InsertionPoint (same as in FamilyEditor) from CurtainPanel

lwlXUTTT
Advocate Advocate
192 Views
2 Replies
Message 1 of 3

Obtain InsertionPoint (same as in FamilyEditor) from CurtainPanel

lwlXUTTT
Advocate
Advocate

Dear Community,

 

as in the Title,

CurtainPanel does not have LocationPoint, when placed in the Project
is there a way to obtain XYZ (in project coordinates), which would correspond to insertion point (which is visible in Family Editor) of CurtainPanel family instance?
Thank you in advance...

0 Likes
193 Views
2 Replies
Replies (2)
Message 2 of 3

acrisanY67H6
Explorer
Explorer

Use LocationCurve to extract the information you need for your CurtainPanel element(s):

// el - your CurtainPanel element
Autodesk.Revit.DB.Location position = el.Location;
Autodesk.Revit.DB.LocationCurve positionCurve = position as Autodesk.Revit.DB.LocationCurve;
XYZ startPoint = positionCurve.Curve.GetEndPoint(0);
XYZ endPoint = positionCurve.Curve.GetEndPoint(1);
// etc.

0 Likes
Message 3 of 3

lwlXUTTT
Advocate
Advocate

Hello,

 

Unfortunately this is not the answer to the question...
I can easily get the startPoint and endPoint of LocationCurve of Host Curtain Wall...

But how can I get the insertion point of the CurtainPanel (as it is in Family Editor)?

0 Likes