Arch Reference/es: Difference between revisions

From FreeCAD Documentation
(Created page with "Ejemplo:")
(Created page with "==Programación==")
Line 30: Line 30:
* {{PropertyView|Update Colors}}: If true, the colors from the linked file will be kept updated
* {{PropertyView|Update Colors}}: If true, the colors from the linked file will be kept updated


==Scripting==
==Programación==


The BuildingPart tool can by used in [[macros]] and from the python console by using the following function:
The BuildingPart tool can by used in [[macros]] and from the python console by using the following function:

Revision as of 19:24, 22 November 2018

Arch Reference

Menu location
Arch → Reference
Workbenches
Arch
Default shortcut
None
Introduced in version
-
See also
Arch BuildingPart

Descripción

La herramienta de referencia le permite colocar un objeto en el documento actual que copia su forma y los colores de un objeto basado en Part (incluido Arch BuildingPart) almacenado en otro archivo FreeCAD. Si ese archivo de FreeCAD cambia, el objeto de referencia se marca para ser recargado.

Utilización

  1. Press the Arch Reference button
  2. Press the "Choose file..." button and select an existing FreeCAD file
  3. Select one of the included Part-based objects from the drop-down list
  4. Press OK

Options

  • The reference object can be moved and rotated, the current position will be retained after reloading the object
  • If the original object gets moved in containing file, this movement will reflect in the reference object
  • By right-clicking a Reference object in the tree view, you have the options to reload the original object, or open the containing file
  • To reference several object at once, place them inside an Arch BuildingPart
  • When turning off the Update Colors view property of the Reference, it son't reload the original colors anymore, so you can safely change them

Properties

  • DatosFile: The base file this component is built upon
  • DatosPart: The part to use from the base file
  • VistaUpdate Colors: If true, the colors from the linked file will be kept updated

Programación

The BuildingPart tool can by used in macros and from the python console by using the following function:

makeReference ([file_path,object_name])

creates a Reference object from the given object in the given file.

Ejemplo:

import Arch
Arch.makeReference("/path/to/some/file.FSCtd","myPart")