第一种是为不熟悉命令的用户准备的,根据提示输入数据即可。
而且这样做还有一个重要的理由,就是看上去好像挺有学问。
/prep7
multipro,'start',3 !椭圆中心位置输入
*cset,1,3,x0,'X-coordinate of ellipse center',0
*cset,4,6,y0,'Y-coordinate of ellipse center',0
*cset,7,9,z0,'Z-coordinate of ellipse center',0
multipro,'end'
multipro,'start',4 !椭圆长轴
*cset,1,3,xmcomp,'Major axis X-component vector',1
*cset,4,6,ymcomp,'Major axis Y-component vector',0
*cset,7,9,zmcomp,'Major axis Z-component vector',0
*cset,10,12,major,'Major axis length',24
multipro,'end'
multipro,'start',4 !椭圆短轴
*cset,1,3,xncomp,'Minor axis X-component vector',0
*cset,4,6,yncomp,'Minor axis Y-component vector',1
*cset,7,9,zncomp,'Minor axis Z-component vector',0
*cset,10,12,minor,'Minor axis length',12
multipro,'end'
ratio=minor/major !根据输入绘制椭圆
csys,0
wplane,,x0,y0,z0,x0 xmcomp*major,y0 ymcomp*major,z0 zmcomp*major,x0 xncomp*minor,y0 yncomp*minor,z0 zncomp*minor cswpla,11,1,ratio,1
而且这样做还有一个重要的理由,就是看上去好像挺有学问。
/prep7
multipro,'start',3 !椭圆中心位置输入
*cset,1,3,x0,'X-coordinate of ellipse center',0
*cset,4,6,y0,'Y-coordinate of ellipse center',0
*cset,7,9,z0,'Z-coordinate of ellipse center',0
multipro,'end'
multipro,'start',4 !椭圆长轴
*cset,1,3,xmcomp,'Major axis X-component vector',1
*cset,4,6,ymcomp,'Major axis Y-component vector',0
*cset,7,9,zmcomp,'Major axis Z-component vector',0
*cset,10,12,major,'Major axis length',24
multipro,'end'
multipro,'start',4 !椭圆短轴
*cset,1,3,xncomp,'Minor axis X-component vector',0
*cset,4,6,yncomp,'Minor axis Y-component vector',1
*cset,7,9,zncomp,'Minor axis Z-component vector',0
*cset,10,12,minor,'Minor axis length',12
multipro,'end'
ratio=minor/major !根据输入绘制椭圆
csys,0
wplane,,x0,y0,z0,x0 xmcomp*major,y0 ymcomp*major,z0 zmcomp*major,x0 xncomp*minor,y0 yncomp*minor,z0 zncomp*minor cswpla,11,1,ratio,1
k,,major,,,
k,,major,90,,
k,,major,180,,
k,,major,270,,
l,kp(major,0,0),kp(major,90,0)
l,kp(major,90,0),kp(major,180,0)
l,kp(major,180,0),kp(major,270,0)
l,kp(major,270,0),kp(major,0,0)
csys,0
第二种是为了奖励有耐心看下来的同志,省事省时又好用。
/prep7
pcirc,10, ,
adele,1
lsscale,all, , , ,ratio
k,,major,90,,
k,,major,180,,
k,,major,270,,
l,kp(major,0,0),kp(major,90,0)
l,kp(major,90,0),kp(major,180,0)
l,kp(major,180,0),kp(major,270,0)
l,kp(major,270,0),kp(major,0,0)
csys,0
第二种是为了奖励有耐心看下来的同志,省事省时又好用。
/prep7
pcirc,10, ,
adele,1
lsscale,all, , , ,ratio
我转载这篇文章的另外一个目的是第一种方法里面的用multipro和*cset命令编写输入框。
相关文章
- 2014-09-06后勤部机关经济适用住房总平面位置图
- 2014-07-23工业厂房门式架布置图CAD施工图下载
- 2014-07-22带天车多层厂房建筑施工图CAD图纸下载
- 2013-06-17临湖独栋精品双层别墅室内装修施工图
- 2012-03-03AutoCAD2010注册机下载(含激活图文教程)
- 2011-08-24PKPM广厦天正探索者等常用字体下载
- 2011-08-24PKPM 理正 天正 钢筋字库,万能字体库下载
- 2011-07-28CAD万能字体可以解决最新PKPM、理正、天正等多种软件
- 2011-03-10KP1015.2-2TkLPC20.22E单段锤式破碎机总图
- 2011-01-08任意角弯头展开放样软件