查看单个帖子
旧 2009-04-21, 05:59 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】获取多段线的顶点坐标集合

获取多段线的顶点坐标集合
www.dimcax.com
获取多段线的顶点坐标集合
如此是不行的 polyline2d ent = trans.getobject(id, openmode.forwrite) as polyline2d; polyline2d pl2d=ent; vertex2d v2d; point3dcollection ptarr = new point3dcollection(); foreach (objectid polyid in pl2d) { v2d = (vertex2d)hostapplicationservices.workingdatabase.transactionmanager.getobject(id, openmode.forread);??这得转换失败,如果强制转换则v2d为空了 if (v2d != null) { ptarr.add(new point3d(v2d.position.x, v2d.position.y, 0)); } } 我是vs05+cad09 恳求指点
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)