-
Notifications
You must be signed in to change notification settings - Fork 69
Description
I see how to export DxfEntityType.Line but i do not know how to with DxfEntityType.LwPolyline
List dxfreturn = new List();
case DxfEntityType.Line:
DxfLine dxfLine = (DxfLine)entity;
dxfLine.P1 = RotateLocation(rotationAngle, dxfLine.P1);
dxfLine.P2 = RotateLocation(rotationAngle, dxfLine.P2);
dxfLine.P1 += offset;
dxfLine.P2 += offset;
dxfreturn.Add(dxfLine);
break;
case DxfEntityType.LwPolyline:
DxfLwPolyline dxfLwPolyline = (DxfLwPolyline)entity;
foreach (DxfLwPolylineVertex vrt in dxfLwPolyline.Vertices)
{
double x = vrt.X;
double y = vrt.Y;
double offx = offset.X;
double offy = offset.Y;
double sw = vrt.StartingWidth;
double ew = vrt.EndingWidth;
double b = vrt.Bulge;
//vrt.Location = RotateLocation(rotationAngle, vrt.Location);
//vrt.Location += offset;
}
dxfreturn.Add(dxfLwPolyline);
break;
Thank you