Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NewReferencePoint creating with two referenceplane

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
1368026189
571 Views, 2 Replies

NewReferencePoint creating with two referenceplane

 

List<ReferencePlane> listBT = new List<ReferencePlane>();
List<ReferencePlane> listLR = new List<ReferencePlane>();

 

foreach (ReferencePlane refLR in listLR)
{

 

  Line lBT = getLineFromRPlan(refBT);

  foreach (ReferencePlane refLR in listLR)
  {
    Line lLR = getLineFromRPlan(refLR);
    XYZ intersectPt = getIntersectPt(lBT, lLR);
   listPts.Add(intersectPt);
   ReferencePoint refPtA = doc.FamilyCreate.NewReferencePoint(intersectPt);

}

 

if I create a NewReferencePoint like above,The refPoint won't move when my refPlane moves, there is no relationship between them.

 

 I figured out that the  NewReferencePoint method has a load ReferencePoint NewReferencePoint(PointElementReference ) and  the point will remain constrained to that reference. but I don't know how to construct a PointOnEdgeEdgeIntersection with my refPlane,

Please help me out ,Thanks!

 

 

 

 

2 REPLIES 2
Message 2 of 3
FAIR59
in reply to: 1368026189

it isn't clear to me what you are trying to achieve, but you make a PointOnEdgeEdgeIntersection like this:

 

document.Application.Create.NewPointOnEdgeEdgeIntersection(Curve1.Reference, Curve2.Reference);

 

Message 3 of 3
1368026189
in reply to: FAIR59

Thanks FAIR59

 

Sorry being so late to reply, I get an alternative way by 

 

doc.FamilyCreate.NewAlignment(viewLeveWMD, curve.GeometryCurve.GetEndPointReference(0), ref1a.Reference)

 

public Dimension NewAlignment(
View view,
Reference reference1,
Reference reference2
)

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community