本帖最后由 yanasdf789 于 2017-8-1 09:08 编辑
我想获取一个二维多段线(Acad2dpolyline)的坐标,用的是C#+COM组件方式开发- foreach (AcadObject acadObj in mySelectionSet)
- {
- if (acadObj.ObjectName == "AcDbPolyline")
- {
- AcadLWPolyline polyline = (AcadLWPolyline)acadObj;
- double[] polylineCoords = (double[])polyline.Coordinates;
-
- }
- else if (acadObj.ObjectName == "AcDb2dPolyline")
- {
- //**********怎么获取 二维多段线类型的坐标啊
- }
- }
|