7.获取实体对象的几何数据

  Options options = new Options();

            options.DetailLevel = ViewDetailLevel.Fine;

            options.ComputeReferences = true;

            options.IncludeNonVisibleObjects = true;

            options.View = exportedDocument.ActiveView;

 

            GeometryElement geometryElement = element.get_Geometry(options);

 

            if (geometryElement!=null) {

                IEnumerator<GeometryObject> gIter = geometryElement.GetEnumerator();

                gIter.Reset();

                while (gIter.MoveNext()) {

                    TaskDialog.Show("几何信息",gIter.Current.GetType().Name);

                }

            }

猜你喜欢

转载自blog.csdn.net/qq_25909453/article/details/81517507