Skip to content

How to export DxfEntityType.LwPolyline ? #211

@alexm199

Description

@alexm199

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions