Draft FlipDimension/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav|[[Draft_Heal|Heal]]|[[Draft_VisGroup|VisGroup]]|[[Draft_Module|Draft]]|IconL=Draft_Heal.svg|IconC=Workbench_Draft.svg|IconR=Draft_VisGroup.svg}}
{{Docnav
|[[Draft_Slope|Slope]]
|[[Draft_Shape2DView|Shape2DView]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Slope.svg
|IconR=Draft_Shape2DView.svg
|IconC=Workbench_Draft.svg
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/es
{{GuiCommand/es|Name=Draft FlipDimension|Workbenches=[[Draft Module/es|Draft]], [[Arch Module/es|Arch]]|MenuLocation=Draft → Utilities → Flip Dimension|SeeAlso=[[Draft Dimension/es|Dimension]]}}
|Name=Draft FlipDimension
|Name/es=Draft FlipDimension
|MenuLocation=Draft → Utilities → Flip Dimension
|Workbenches=[[Draft_Workbench/es|Draft]], [[Arch_Workbench/es|Arch]]
|SeeAlso=[[Draft Dimension/es|Dimension]]
}}
</div>
</div>


Line 21: Line 35:
</div>
</div>


==Notes==
<div class="mw-translate-fuzzy">

Lo que hace esta herramienta, internamente, es invertir la dirección '''Normal''' de la dimensión, que es la dirección utilizada para dibujar el texto con la orientación correcta. Las dimensiones también tienen una propiedad '''Flip Text''', que gira el texto 180 grados alrededor de la dirección normal. Al combinar estas dos características, la dirección normal y el texto volteado, puede hacer que el texto aparezca correctamente en todas las situaciones posibles.
* [[Draft_Dimension|Draft Dimensions]] also have a {{PropertyData|Flip 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.
</div>

==Scripting==

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

To flip a [[Draft_Dimension|Draft Dimension]] invert its {{incode|Normal}} property.

Example:

{{Code|code=
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()
}}


[[Draft Dimension]]s also have a {{PropertyData|Flip Text}} property which, when it is {{TRUE}}, rotates the text by 180 degrees around the normal direction. By combining these two features, flipping the normal direction and flipping the text, you are able to make the text appear correctly in all possible situations.


{{Docnav
{{Docnav|[[Draft_Heal|Heal]]|[[Draft_VisGroup|VisGroup]]|[[Draft_Module|Draft]]|IconL=Draft_Heal.svg|IconC=Workbench_Draft.svg|IconR=Draft_VisGroup.svg}}
|[[Draft_Slope|Slope]]
|[[Draft_Shape2DView|Shape2DView]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Slope.svg
|IconR=Draft_Shape2DView.svg
|IconC=Workbench_Draft.svg
}}


{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 11:04, 4 September 2021

Draft FlipDimension

Ubicación en el Menú
Draft → Utilities → Flip Dimension
Entornos de trabajo
Draft, Arch
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Dimension

Description

Descripción

Cuando está en modo 2D, el texto de Dimensiones de borrador se muestra alineado con la línea de dimensión. La herramienta Dimensión siempre intenta mostrarle el texto de la dimensión en el lado correcto de la línea de dimensión, dependiendo de dónde lo esté viendo. En algunos casos, sin embargo, la dirección de visualización puede no reflejar la intención del espectador, y la orientación del texto de cota puede invertirse. Esta herramienta invierte esa orientación en los objetos dimensión seleccionados.

Usage

Utilización

  1. Seleccione uno o más objetos dimension
  2. Presione el botón Flip Dimension

Notes

  • Draft Dimensions also have a DatosFlip 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()