NewReferencePoint creating with two referenceplane

NewReferencePoint creating with two referenceplane

1368026189
Enthusiast Enthusiast
938 Views
2 Replies
Message 1 of 3

NewReferencePoint creating with two referenceplane

1368026189
Enthusiast
Enthusiast

 

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!

 

 

 

 

0 Likes
Accepted solutions (1)
939 Views
2 Replies
Replies (2)
Message 2 of 3

FAIR59
Advisor
Advisor

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);

 

0 Likes
Message 3 of 3

1368026189
Enthusiast
Enthusiast
Accepted solution

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
)

 

 

0 Likes