cad导入cass格式坐标生成三维多段线lsp程序
希望实现cad导入cass格式坐标生成三维多段线,并且显示点号文件格式如下:1,,0.000,0.000,0.0002,,0.000,10.000,10.0003,,0....
希望实现cad导入cass格式坐标生成三维多段线,并且显示点号
文件格式如下:
1,,0.000,0.000,0.000
2,,0.000,10.000,10.000
3,,0.000,20.000,0.000
修改下面的程序实现这个功能也行,谢谢【提示:下面程序可用格式格式为X,Y,Z,】
(defun c:ddr()
(setvar "cmdecho" 1)
(setvar "osmode" 0)
(setvar "modemacro" " YuCheng ")
(setq zb_file (getfiled "选择点坐标文件" "" "txt" 0))
(setq x (open zb_file "r"))
(prompt"\n.\n.\nwait...")
(princ)
(while (setq pt (read-line x))
(command "_.3DPOLY" pt)
(while (and (/= (setq pt (read-line x)) "END") (/= pt "end") (/= pt nil) (/= pt ""))
(command pt)
)
(command "c")
(command)
(command)
(setq ent (entlast))
(redraw ent 3)
)
(close x)
(setvar "cecolor" oldcolor)
(princ)
)
3,,0.000,20.000,0.000
修改下面的程序实现这个功能也行,谢谢【提示:下面程序可用格式格式为X,Y,Z,】
(defun c:ddr()
(setvar "cmdecho" 1)
(setvar "osmode" 0)
(setvar "modemacro" " YuCheng ")
(setq zb_file (getfiled "选择点坐标文件" "" "txt" 0))
(setq x (open zb_file "r"))
(prompt"\n.\n.\nwait...")
(princ)
(while (setq pt (read-line x))
(command "_.3DPOLY" pt)
(while (and (/= (setq pt (read-line x)) "END") (/= pt "end") (/= pt nil) (/= pt ""))
(command pt)
)
(command "c")
(command)
(command)
(setq ent (entlast))
(redraw ent 3)
)
(close x)
(setvar "cecolor" oldcolor)
(princ)
) 展开
文件格式如下:
1,,0.000,0.000,0.000
2,,0.000,10.000,10.000
3,,0.000,20.000,0.000
修改下面的程序实现这个功能也行,谢谢【提示:下面程序可用格式格式为X,Y,Z,】
(defun c:ddr()
(setvar "cmdecho" 1)
(setvar "osmode" 0)
(setvar "modemacro" " YuCheng ")
(setq zb_file (getfiled "选择点坐标文件" "" "txt" 0))
(setq x (open zb_file "r"))
(prompt"\n.\n.\nwait...")
(princ)
(while (setq pt (read-line x))
(command "_.3DPOLY" pt)
(while (and (/= (setq pt (read-line x)) "END") (/= pt "end") (/= pt nil) (/= pt ""))
(command pt)
)
(command "c")
(command)
(command)
(setq ent (entlast))
(redraw ent 3)
)
(close x)
(setvar "cecolor" oldcolor)
(princ)
)
3,,0.000,20.000,0.000
修改下面的程序实现这个功能也行,谢谢【提示:下面程序可用格式格式为X,Y,Z,】
(defun c:ddr()
(setvar "cmdecho" 1)
(setvar "osmode" 0)
(setvar "modemacro" " YuCheng ")
(setq zb_file (getfiled "选择点坐标文件" "" "txt" 0))
(setq x (open zb_file "r"))
(prompt"\n.\n.\nwait...")
(princ)
(while (setq pt (read-line x))
(command "_.3DPOLY" pt)
(while (and (/= (setq pt (read-line x)) "END") (/= pt "end") (/= pt nil) (/= pt ""))
(command pt)
)
(command "c")
(command)
(command)
(setq ent (entlast))
(redraw ent 3)
)
(close x)
(setvar "cecolor" oldcolor)
(princ)
) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询