用坐標系操作來繪制圓:
命令流:
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
詳細解釋:
查閱幫助得知:
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)).
*/ 可以知道第一句是定義了一個圓柱坐標系
第三四句就創建了橢圓的兩個端點.
第五句創建連接兩個點構成一條線(因為是圓柱坐標系,所以繪制的線不是直線了:)
csys,0切換到整體坐標系.
最后%26quot;LSYMM,Y,1,,,,0,0%26quot;一句進行對稱繪制.
然后lglue,all把兩條線連接起來,最后一句繪制橢圓面.
這個里面比較難以理解的是用l,1,2命令連接兩點得到的不是直線而是曲線.
命令流:
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
詳細解釋:
查閱幫助得知:
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)).
*/ 可以知道第一句是定義了一個圓柱坐標系
第三四句就創建了橢圓的兩個端點.
第五句創建連接兩個點構成一條線(因為是圓柱坐標系,所以繪制的線不是直線了:)
csys,0切換到整體坐標系.
最后%26quot;LSYMM,Y,1,,,,0,0%26quot;一句進行對稱繪制.
然后lglue,all把兩條線連接起來,最后一句繪制橢圓面.
這個里面比較難以理解的是用l,1,2命令連接兩點得到的不是直線而是曲線.
相關文章
- 2021-09-08BIM技術叢書Revit軟件應用系列Autodesk Revit族詳解 [
- 2021-09-08全國專業技術人員計算機應用能力考試用書 AutoCAD2004
- 2021-08-30從零開始AutoCAD 2014中文版機械制圖基礎培訓教程 [李
- 2021-08-30從零開始AutoCAD 2014中文版建筑制圖基礎培訓教程 [朱
- 2021-08-30電氣CAD實例教程AutoCAD 2010中文版 [左昉 等編著] 20
- 2021-08-30高等院校藝術設計案例教程中文版AutoCAD 建筑設計案例
- 2021-08-29環境藝術制圖AutoCAD [徐幼光 編著] 2013年PDF下載
- 2021-08-29機械AutoCAD 項目教程 第3版 [繆希偉 主編] 2012年PDF
- 2021-08-29機械制圖與AutoCAD [李志明 主編] 2014年PDF下載
- 2021-08-29機械制圖與AutoCAD [陶素連,周欽河 主編] 2013年PDF下