Draft FlipDimension/cs: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
 
Line 11: Line 11:


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/cs|Name=Draft FlipDimension|Name/cs=Kreslení PřehoďKótu|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Draft → Utilities → Flip Dimension|SeeAlso=[[Draft Dimension/cs|Kóty]]}}
{{GuiCommand/cs|Name=Draft FlipDimension|Name/cs=Kreslení PřehoďKótu|Workbenches=[[Draft_Workbench/cs|Kreslení]], [[Arch_Workbench/cs|Architektura]]|MenuLocation=Draft → Utilities → Flip Dimension|SeeAlso=[[Draft Dimension/cs|Kóty]]}}
</div>
</div>



Latest revision as of 21:00, 29 August 2021

Kreslení PřehoďKótu

Umístění Menu
Draft → Utilities → Flip Dimension
Pracovní stoly
Kreslení, Architektura
Výchozí zástupce
Nikdo
Představen ve verzi
-
Viz také
Kóty

Description

Popis

Ve 2D módu je zobrazení textu Kóty zarovnáno ke kótovací čáře. Nástroj Kóta se snaží vždy zobrazit text na správné straně kótovací čáry v závislosti ze které strany má být viděna. V některých případech však směr pohledu nemusí vyjadřovat smysl pohledu a pak se může hodit změna orientace textu kóty. Tento nástroj obrací orientaci vybraného objektu kóty.

Usage

Použití

  1. Vyberte jeden nebo více objektů kóta
  2. Stiskněte tlačítko PřehoďKótu

Notes

  • Draft Dimensions also have a ÚdajeFlip Text property. When set to true the text is rotated 180° around the normal direction. This can be combined with the effect of this command.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To flip a Draft Dimension invert its Normal property.

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 0, 0)
p3 = App.Vector(500, 300, 0)
dimension = Draft.make_dimension(p1, p2, p3)
dimension.ViewObject.FontSize = 200

dimension.Normal = dimension.Normal.negative()
doc.recompute()