几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(AutoLISP) (http://www.dimcax.com/hust/forumdisplay.php?f=178)
-   -   [求助] 怎样批量把三维面改为三维多段线 (http://www.dimcax.com/hust/showthread.php?t=10886)

yang686526 2009-04-25 10:39 PM

[求助] 怎样批量把三维面改为三维多段线
 
[求助] 怎样批量把三维面改为三维多段线
www.dimcax.com
[求助] 怎样批量把三维面改为三维多段线怎样批量把三维面改为三维多段线
d
这个问题好难啊,我也在关注中,请求高手帮忙解决。附图形。
该文件为 autocad
d
sub main()
dim t3dface as acad3dface
dim tobj as acadobject
dim tv(0 to 11) as double, n as integer
for each tobj in thisdrawing.modelspace
if typeof tobj is acad3dface then
set t3dface = tobj
for n = 0 to 8
tv(n) = t3dface.coordinates(n)
next
tv(9) = t3dface.coordinates(0)
tv(10) = t3dface.coordinates(1)
tv(11) = t3dface.coordinates(2)
thisdrawing.modelspace.add3dpoly tv
end if
next
for each tobj in thisdrawing.modelspace
if typeof tobj is acad3dface then
tobj.delete
end if
next
thisdrawing.regen acallviewports
end sub
个人文件空间


所有的时间均为北京时间。 现在的时间是 08:42 PM.