用坐標(biāo)系操作來繪制圓:
命令流:
CSWPLA,11,1,0.5,1
/PREP7
K,1,-5
K,2,5
L,1,2
CSYS,0
LSYMM,Y,1,,,,0,0
lglue,all
al,1,3
詳細(xì)解釋:
查閱幫助得知:
1.CSWPLA:
/*
CSWPLA, KCN, KCS, PAR1, PAR2
Defines a local coordinate system at the origin of the working plane.
KCN
Arbitrary reference number assigned to this coordinate system. Must be greater than 10. A coordinate system previously defined with this number will be redefined.
KCS
Coordinate system type:
0 or CART --
Cartesian
1 or CYLIN --
Cylindrical (circular or elliptical)
2 or SPHE --
Spherical (or spheroidal)
3 or TORO --
Toroidal
PAR1
Used for elliptical, spheroidal, or toroidal systems. If KCS = 1 or 2, PAR1 is the ratio of the ellipse Y-axis radius to X-axis radius (defaults to 1.0 (circle)). If KCS = 3, PAR1 is the major radius of the torus.
PAR2
Used for spheroidal systems. If KCS = 2, PAR2 = ratio of ellipse Z-axis radius to X-axis radius (defaults to 1.0 (circle)).
*/ 可以知道第一句是定義了一個圓柱坐標(biāo)系
第三四句就創(chuàng)建了橢圓的兩個端點(diǎn).
第五句創(chuàng)建連接兩個點(diǎn)構(gòu)成一條線(因為是圓柱坐標(biāo)系,所以繪制的線不是直線了:)
csys,0切換到整體坐標(biāo)系.
最后%26quot;LSYMM,Y,1,,,,0,0%26quot;一句進(jìn)行對稱繪制.
然后lglue,all把兩條線連接起來,最后一句繪制橢圓面.
這個里面比較難以理解的是用l,1,2命令連接兩點(diǎn)得到的不是直線而是曲線.
命令流:
CSWPLA,11,1,0.5,1
/PREP7
K,1,-5
K,2,5
L,1,2
CSYS,0
LSYMM,Y,1,,,,0,0
lglue,all
al,1,3
詳細(xì)解釋:
查閱幫助得知:
1.CSWPLA:
/*
CSWPLA, KCN, KCS, PAR1, PAR2
Defines a local coordinate system at the origin of the working plane.
KCN
Arbitrary reference number assigned to this coordinate system. Must be greater than 10. A coordinate system previously defined with this number will be redefined.
KCS
Coordinate system type:
0 or CART --
Cartesian
1 or CYLIN --
Cylindrical (circular or elliptical)
2 or SPHE --
Spherical (or spheroidal)
3 or TORO --
Toroidal
PAR1
Used for elliptical, spheroidal, or toroidal systems. If KCS = 1 or 2, PAR1 is the ratio of the ellipse Y-axis radius to X-axis radius (defaults to 1.0 (circle)). If KCS = 3, PAR1 is the major radius of the torus.
PAR2
Used for spheroidal systems. If KCS = 2, PAR2 = ratio of ellipse Z-axis radius to X-axis radius (defaults to 1.0 (circle)).
*/ 可以知道第一句是定義了一個圓柱坐標(biāo)系
第三四句就創(chuàng)建了橢圓的兩個端點(diǎn).
第五句創(chuàng)建連接兩個點(diǎn)構(gòu)成一條線(因為是圓柱坐標(biāo)系,所以繪制的線不是直線了:)
csys,0切換到整體坐標(biāo)系.
最后%26quot;LSYMM,Y,1,,,,0,0%26quot;一句進(jìn)行對稱繪制.
然后lglue,all把兩條線連接起來,最后一句繪制橢圓面.
這個里面比較難以理解的是用l,1,2命令連接兩點(diǎn)得到的不是直線而是曲線.
相關(guān)文章
- 2021-09-08BIM技術(shù)叢書Revit軟件應(yīng)用系列Autodesk Revit族詳解 [
- 2021-09-08全國專業(yè)技術(shù)人員計算機(jī)應(yīng)用能力考試用書 AutoCAD2004
- 2021-08-30從零開始AutoCAD 2014中文版機(jī)械制圖基礎(chǔ)培訓(xùn)教程 [李
- 2021-08-30從零開始AutoCAD 2014中文版建筑制圖基礎(chǔ)培訓(xùn)教程 [朱
- 2021-08-30電氣CAD實例教程AutoCAD 2010中文版 [左昉 等編著] 20
- 2021-08-30高等院校藝術(shù)設(shè)計案例教程中文版AutoCAD 建筑設(shè)計案例
- 2021-08-29環(huán)境藝術(shù)制圖AutoCAD [徐幼光 編著] 2013年P(guān)DF下載
- 2021-08-29機(jī)械A(chǔ)utoCAD 項目教程 第3版 [繆希偉 主編] 2012年P(guān)DF
- 2021-08-29機(jī)械制圖與AutoCAD [李志明 主編] 2014年P(guān)DF下載
- 2021-08-29機(jī)械制圖與AutoCAD [陶素連,周欽河 主編] 2013年P(guān)DF下