Part Cylinder/zh-cn: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 50: | Line 50: | ||
* {{PropertyData|First Angle}}: Angle in first direction. {{Version|0.20}} |
* {{PropertyData|First Angle}}: Angle in first direction. {{Version|0.20}} |
||
* {{PropertyData|Second Angle}}: Angle in second direction. {{Version|0.20}} |
* {{PropertyData|Second Angle}}: Angle in second direction. {{Version|0.20}} |
||
== Scripting == |
|||
A Part Cylinder can be created using the following function: |
|||
{{Code|code= |
|||
cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder") |
|||
}} |
|||
* Where {{Incode|"myCylinder"}} is the name for the object. |
|||
* The function returns the newly created object. |
|||
Revision as of 14:03, 8 January 2022
Part Cylinder |
Menu location |
---|
Part → Primitives → Cylinder |
Workbenches |
Part |
Default shortcut |
None |
Introduced in version |
- |
See also |
Part Primitives |
Description
描述
利用位置、角度、半径与高度参数创建一个简单的参数化圆柱体。
如何使用
在零件工作台中点击此图标。默认情况下,此工具会创建一个对齐于坐标轴的半径为2mm且高度为10mm的完整圆柱体,并令其中心与全局原点(point 0,0,0)重合。
- Switch to the Part Workbench
- There are several ways to invoke the command:
Result: The default result is a full cylinder with a radius of 2 mm and height of 10 mm, centered along the global z-axis and attached to the global xy-plane.
The cylinder properties can later be edited, either in the Property editor or by double-clicking the cylinder in the Tree view.
选项
创建圆柱体后,用户可编辑其数据选项卡中的各属性:
- 数据Angle: This is the rotation angle that permits the creation of a portion of cylinder (it is set to 360° by default)
- 数据Height: The height is the distance in the z-axis
- 数据Radius: The radius defines a plane in x-y.
- 数据First Angle: Angle in first direction. introduced in version 0.20
- 数据Second Angle: Angle in second direction. introduced in version 0.20
Scripting
A Part Cylinder can be created using the following function:
cylinder = FreeCAD.ActiveDocument.addObject("Part::Cylinder", "myCylinder")
- Where
"myCylinder"
is the name for the object. - The function returns the newly created object.
Part
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub