Part Point/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{UnfinishedDocu}}


{{Docnav/ru
{{Docnav/ru
Line 11: Line 10:
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name=Part Point
|Name=Part Point
Line 18: Line 18:
|SeeAlso=[[Part_Primitives/ru|Примитивы]]
|SeeAlso=[[Part_Primitives/ru|Примитивы]]
}}
}}
</div>


== Описание ==
== Описание ==

Точка (вершина) - это геометрический примитив.
[[Image:Part_Point.svg|24px]] '''Точка''' — это параметрический примитив, который можно создать с помощью команды [[Image:Part_Primitives.svg|24px]] [[Part_Primitives/ru|Примитивы...]]. Её координаты относительны к системе координат, определенным в её свойстве {{PropertyData|Placement}}.


==Применение==
==Применение==


See [[Part_Primitives#Usage|Part Primitives]].
# Переключитесь на верстак [[Image:Workbench_Part.svg|24px]] [[Part_Workbench/ru|Part (Деталь)]]
# Диалог Создания Примитивов можно открыть несколькими способами:
#* Нажатием на кнопку [[Image:Part_Primitives.svg|24px]] [[Part_Primitives/ru|Создать Примитивы...]] на панели верстака Part(Деталь)
#* Используя меню {{MenuCommand|Деталь → [[Part_Primitives/ru|Создать Примитивы...]] → Точка}}


== Свойства ==
===Геометрические примитивы===
{|
| [[File:PartVertexPrimitivesOptions_ru.png]]
|
Точка
====Параметр====
* {{Parameter|X}}
* {{Parameter|Y}}
* {{Parameter|Z}}
====Расположение====
*
*
*
|}
===Свойства===
{|
| [[File:PartVertexProperty_ru.png|left]]
|
==== Вид ====


See also: [[Property_editor|Property editor]].
==== Данные ====

{{KEY|Данные}}
A Part Point object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:
* {{PropertyData/ru|Label}}:

* {{PropertyData/ru|Placement}}: [[Placement/ru|размещение]]
=== Данные ===
* {{PropertyData/ru|X}} :

* {{PropertyData/ru|Y}} :
{{TitleProperty|Attachment}}
* {{PropertyData/ru|Z}} :

|}
The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]].

{{TitleProperty|Base}}

* {{PropertyData|X|Distance}}: The X coordinate of the point. The default is {{Value|0mm}}.
* {{PropertyData|Y|Distance}}: The Y coordinate of the point. The default is {{Value|0mm}}.
* {{PropertyData|Z|Distance}}: The Z coordinate of the point. The default is {{Value|0mm}}.

== Программирование ==

See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

A Part Point can be created with the {{Incode|addObject()}} method of the document:

{{Code|code=
point = FreeCAD.ActiveDocument.addObject("Part::Vertex", "myPoint")
}}

* Where {{Incode|"myPoint"}} is the name for the object.
* The function returns the newly created object.

Example:

{{Code|code=
import FreeCAD as App

doc = App.activeDocument()

point = doc.addObject("Part::Vertex", "myPoint")
point.X = 1
point.Y = 2
point.Z = 3

doc.recompute()
}}





Latest revision as of 06:06, 15 November 2022

Точка(Вершина)

Системное название
Part Point
Расположение в меню
Деталь → Создать примитивы... → Точка
Верстаки
Part(Деталь)
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Примитивы

Описание

Точка — это параметрический примитив, который можно создать с помощью команды Примитивы.... Её координаты относительны к системе координат, определенным в её свойстве ДанныеPlacement.

Применение

See Part Primitives.

Свойства

See also: Property editor.

A Part Point object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Данные

Attachment

The object has the same attachment properties as a Part Part2DObject.

Base

  • ДанныеX (Distance): The X coordinate of the point. The default is 0mm.
  • ДанныеY (Distance): The Y coordinate of the point. The default is 0mm.
  • ДанныеZ (Distance): The Z coordinate of the point. The default is 0mm.

Программирование

See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.

A Part Point can be created with the addObject() method of the document:

point = FreeCAD.ActiveDocument.addObject("Part::Vertex", "myPoint")
  • Where "myPoint" is the name for the object.
  • The function returns the newly created object.

Example:

import FreeCAD as App

doc = App.activeDocument()

point = doc.addObject("Part::Vertex", "myPoint")
point.X = 1
point.Y = 2
point.Z = 3

doc.recompute()