Community
Hi Guys ,
Is it possible to change the end point of a specific Curve,if it is what is the specific method ?
Solved! Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
Depends on the curve type:
Depends on the curve type:
Hi @ahmadkhalaf7892 ,
You can use SetGeometryCurve().
Here is the sample code
ModelLine modelLine1;
ModelLine modelLine2;
Line lineA = modelLine1.GeometryCurve as Line;
Line lineB = modelLine2.GeometryCurve as Line;
XYZ startPtA = lineA.GetEndPoint(0);
XYZ endPtA= lineA.GetEndPoint(1);
XYZ startPtB = lineB.GetEndPoint(0);
XYZ endPtB = lineB.GetEndPoint(1);
// Get Line A endPoint and set it to startpoint of line B
endPtA = startPtB;
Line newLine = Line.CreateBound(startPtA,endPtA);
modelLine1.SetGeometryCurve(newLine, true);
Can't find what you're looking for? Ask the community or share your knowledge.