Part CoordinateSystem
|
|
| Menu location |
|---|
| None |
| Workbenches |
| All |
| Default shortcut |
| None |
| Introduced in version |
| 1.1 |
| See also |
| Part DatumPlane, Part DatumLine, Part DatumPoint |
Description[edit | edit source]
The Part CoordinateSystem command creates a local coordinate system, an LCS object, that can be attached to other objects. A coordinate system is one of several datum objects. A datum object is typically used to attach multiple other objects to. If the position or orientation of a datum object changes, all objects attached to it will follow.
A datum object can also provide a geometric reference for a feature or operation. Depending on its type it may for example be used as a direction vector, a rotation axis or a mirror plane.
Usage[edit | edit source]
- Optionally activate the correct container, for example a
PartDesign Body, a
Std Part or an
Assembly. If multiple containers are active, the datum object is added to the active container that was created first.
- Optionally select the geometry the datum object should be attached to.
- Press the
Coordinate System button.
- The Attachment task panel opens.
- If no geometry has been selected: optionally press the OK button to finish the command without attaching the datum object.
- For further steps see Part EditAttachment. Continue from step 7 on that page if geometry has been preselected.
Notes[edit | edit source]
- A datum object can also be put into a container by dropping it on the container in the Tree View.
- The attachment of a datum object can be changed by editing its DataMap Mode property. See Part EditAttachment.
- The Part DatumPlane and Part DatumLine objects, and the planes and axes of the Part CoordinateSystem object are infinite.
Properties[edit | edit source]
See also: Property View.
A Part LCS object, formally a Part::LocalCoordinateSystem object, is derived from an App::LocalCoordinateSystem object. All its properties are inherited except those listed under Attachment.
Data[edit | edit source]
Attachment
The object has the same attachment properties as a Part Part2DObject.
Base
- Data (hidden)Origin Features (
LinkList): The axes, planes and origin point controlled by the coordinate system. - DataPlacement (
Placement): See Part Feature. - DataLabel (
String): Idem. - Data (hidden)Label2 (
String): Idem. - Data (hidden)Expression Engine (
ExpressionEngine): Idem. - Data (hidden)Visibility (
Bool): Idem. - DataGroup (
LinkList): - Data (hidden)_ Group Touched (
Bool):
View[edit | edit source]
Display Options
- ViewDisplay Mode (
Enumeration): See Part Feature. - ViewShow In Tree (
Bool): Idem. - ViewVisibility (
Bool): Idem.
Selection
- ViewOn Top When Selected (
Enumeration): See Part Feature. - ViewSelection Style (
Enumeration): Idem.
Scripting[edit | edit source]
import FreeCAD as App
doc = App.newDocument()
body = doc.addObject("PartDesign::Body", "Body")
lcs = doc.addObject("Part::LocalCoordinateSystem", "LCS")
lcs.Visibility = True
body.addObjects([lcs])
orig = body.Origin
plane = next(f for f in orig.OriginFeatures if f.Role == "XZ_Plane")
lcs.AttachmentSupport = [(orig, (plane.Name + ".", ))]
lcs.AttachmentOffset = App.Placement(App.Vector(), App.Vector(1, 0, 0), 45)
lcs.MapMode = "FlatFace"
doc.recompute()
- File: New Document, Open, Open Recent, Close, Close All, Save, Save As, Save Copy, Save All, Revert, Import, Export,Merge Document, Document Information, Print, Print Preview, Export PDF, Exit
- Edit: Undo, Redo, Cut, Copy, Paste, Duplicate Object, Recompute, Box Selection, Box Element Selection, Select All, Delete, Send to Python Console, Placement, Transform, Align To, Toggle Edit Mode, Properties, Edit Mode, Preferences
- View:
- Miscellaneous: New 3D View, Orthographic View, Perspective View, Fullscreen, Bounding Box, Toggle Axis Cross, Clipping View, Texture Mapping, Toggle Navigation/Edit Mode, Material, Appearance, Random Color, Appearance per Face, Toggle Transparency, Workbench, Status Bar
- Standard Views: Fit All, Fit Selection, Align to Selection, Isometric, Dimetric, Trimetric, Home, Front, Top, Right, Rear, Bottom, Left, Rotate Left, Rotate Right, Store Working View, Recall Working View
- Freeze Display: Save Views, Load Views, Freeze View, Clear Views
- Draw Style: As Is, Points, Wireframe, Hidden Line, No Shading, Shaded, Flat Lines
- Stereo: Stereo Red/Cyan, Stereo Quad Buffer, Stereo Interleaved Rows, Stereo Interleaved Columns, Stereo Off, Issue Camera Position
- Zoom: Zoom In, Zoom Out, Box Zoom
- Document Window: Docked, Undocked, Fullscreen
- Visibility: Toggle Visibility, Show Selection, Hide Selection, Select Visible Objects, Toggle All Objects, Show All Objects, Hide All Objects, Toggle Selectability
- Toolbars: File, Edit, Clipboard, Workbench, Macro, View, Individual Views, Structure, Help, Lock Toolbars
- Panels: Tree View, Property View, Model, Selection View, Python Console, Report View, Tasks, DAG View
- Overlay Docked Panel: Toggle Overlay for All Panels, Toggle Transparent Panels, Toggle Overlay, Toggle Transparent Mode, Bypass Mouse Events in Overlay Panels, Toggle Left, Toggle Right, Toggle Top, Toggle Bottom
- Link Navigation: Go to Linked Object, Go to Deepest Linked Object, Select All Links
- Tree View Actions: Sync View, Sync Selection, Sync Placement, Preselection, Record Selection, Single Document, Multi Document, Collapse/Expand, Initiate Dragging, Go to Selection, Selection Back, Selection Forward
- Tools: Addon Manager, Measure, Clarify Selection, Quick Measure, Units Converter, Load Image, Save Image, Text Document, View Turntable, Scene Inspector, Dependency Graph, Export Dependency Graph, Document Utility, Edit Parameters, Customize
- Macro: Record Macro, Macros, Recent Macros, Execute Macro, Attach to Remote Debugger, Debug Macro, Stop Debugging, Step Over, Step Into, Toggle Breakpoint
- Help: What's This, Start Page, Users Documentation, FreeCAD Forum, Report an Issue, Restart in Safe Mode, Developers Handbook, Python Modules Documentation, FreeCAD Website, Donate to FreeCAD, About FreeCAD
- Additional:
- Miscellaneous: New Part, New Group, Variable Set, Link Group, Select All Instances, Toggle Freeze
- Datums: Coordinate System, Datum Plane, Datum Line, Datum Point
- Link Actions: Make Link, Make Sub-Link, Replace With Link, Unlink, Import Link, Import All Links
- Expression Actions: Copy Selected, Copy Active Document, Copy All Documents, Paste
- Selection Filter: Vertex Selection, Edge Selection, Face Selection, No Selection Filters
- 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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub