DrawingSketch oDrawingSketch;
oDrawingSketch = viewExterior.Sketches.Add();
oDrawingSketch.Edit();
Point2d oPoint = _repositoryBase.ReturnTransientGeometry().CreatePoint2d(sp.SectionPlanPoint.X, sp.SectionPlanPoint.Y);
SketchLine oSketchLine = null;
foreach (var item in sp.SectionPlanPoints)
{
Point2d oPointOne = _repositoryBase.ReturnTransientGeometry().CreatePoint2d(item.SectionPlanSketchStartPoint.X, item.SectionPlanSketchStartPoint.Y);
Point2d oPointTwo = _repositoryBase.ReturnTransientGeometry().CreatePoint2d(item.SectionPlanSketchEndPoint.X, item.SectionPlanSketchEndPoint.Y);
if (oSketchLine == null)
{
oSketchLine = oDrawingSketch.SketchLines.AddByTwoPoints(oPointOne, oPointTwo);
}
else
{
oSketchLine.Parent.SketchLines.AddByTwoPoints(oPointOne, oPointTwo);
}
@Michael.Navara The method I use now is