App Link/it: Difference between revisions

From FreeCAD Documentation
(Created page with "Un App Link è un oggetto interno, quindi è principalmente destinato all'uso da parte degli sviluppatori durante lo sviluppo di ambienti di lavoro di assembla...")
(Created page with "== Proprietà ==")
Line 15: Line 15:
Un [[App_Link/it|App Link]] è un oggetto interno, quindi è principalmente destinato all'uso da parte degli sviluppatori durante lo sviluppo di ambienti di lavoro di assemblaggio. Ad esempio, Assembly3 e Assembly4 utilizzano questo oggetto. Vedere [[External workbenches/it|Ambienti esterni]].
Un [[App_Link/it|App Link]] è un oggetto interno, quindi è principalmente destinato all'uso da parte degli sviluppatori durante lo sviluppo di ambienti di lavoro di assemblaggio. Ad esempio, Assembly3 e Assembly4 utilizzano questo oggetto. Vedere [[External workbenches/it|Ambienti esterni]].


==Properties==
== Proprietà ==


See [[Property|Property]] for all property types that scripted objects can have.
See [[Property|Property]] for all property types that scripted objects can have.

Revision as of 07:36, 27 November 2019

Introduzione

Un App Link, o formalmente un App::Link, è un elemento che restituisce un riferimento a un altro oggetto nel documento o in un documento esterno. Questo oggetto è stato introdotto in v0.19 per riutilizzare oggetti precedentemente creati, che è molto utile per creare assiemi.

Quando viene creata una copia regolare di un oggetto (ad esempio, con Crea una copia semplice di Part), viene duplicato un intero nuovo oggetto con la sua forma topologica, che consuma molta memoria. App Link viene utilizzato per riutilizzare i dati esistenti di un oggetto esistente, quindi non è necessario creare un intero nuovo oggetto; ciò migliora la gestione delle copie, in particolare nel contesto dell'assemblaggio meccanico in cui possono essere necessari molti duplicati o dove è richiesta l'importazione di assiemi più piccoli in assiemi più grandi.

Utilizzo

  • App Link può essere creato premendo Crea link.

Un App Link è un oggetto interno, quindi è principalmente destinato all'uso da parte degli sviluppatori durante lo sviluppo di ambienti di lavoro di assemblaggio. Ad esempio, Assembly3 e Assembly4 utilizzano questo oggetto. Vedere Ambienti esterni.

Proprietà

See Property for all property types that scripted objects can have.

An App::Link object is not derived from a Part Feature, however, if the Link has a reference to an external object, it will show the properties of the latter object.

These are the properties available in the property editor for an empty App::Link.

Data

Link

  • DatiLinked Object:
  • DatiLink Transform:
  • DatiPlacement:
  • DatiShow Element:
  • DatiElement Count:
  • DatiScale:

Base

  • DatiLabel:

View

Link

  • VistaDraw Style:
  • VistaLine Width:
  • VistaOverride Material:
  • VistaPoint Size:
  • VistaSelectable:
  • VistaShape Material:

Base

  • VistaOn Top When Selected:
  • VistaSelection Style:
  • VistaShow In Tree:
  • VistaVisibility:

Scripting

See also: FreeCAD Scripting Basics, and scripted objects.

See Part Feature for the general information.

An App Link is created with the addObject() method of the document.

import FreeCAD as App

doc = App.newDocument()
obj = App.ActiveDocument.addObject("App::Link", "Name")
obj.Label = "Custom label"

Further reading

The App Link object was introduced after 2 years of development and prototyping. This component was thought and developed almost single-handedly by user realthunder. The motivations and design implementations behind this project are described in his GitHub page, Link. In order to accomplish this feature, several core changes to FreeCAD were made; these were also extensively documented in Core-Changes.

The App Link project started after the redesign of the PartDesign Workbench was complete in v0.17. The history of App Link can be traced to some essential forum threads:

Finally, the pull request and merge happened: