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!
Solved! Go to Solution.
Solved by 1368026189. Go to Solution.
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);
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.