Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Die folgenden Videos geben einen Einblick in das Bearbeiten von Auswahlprofilen (erstellt mit englischsprachiger TurboCAD-Version):

...

Profile können eine beliebige Anzahl (ungleich Null) an Ziehpunkten haben, die alle verfügbaren Umwandlungen erlauben, inklusive nicht-interaktiver Umwandlungen (z. B. Koordinatenachsen).   Die Ziehpunkte im aktuellen Profil lassen sich anhand des Umwandlungstyps in den Eigenschaften für das konzeptionelle Auswahlwerkzeug filtern.


         Filtering handles of the current profile by type of transformationA user can create his own profiles or modify existing ones. There are, however, certain specific characteristics of profile loading that need to be observed. To save time on reading the TCW file, profiles are unloaded only when the application is closed. Otherwise they would have to be opened/closed upon each activation of the corresponding tool. This would have slowed down the work significantly. So if a profile is already uploaded to memory, reloading it (for instance, after editing) is possible only after restarting the application. A new profile can be set up without an application restart.

Samples

The Samples folder contains several examples of different profiles. It makes sense to start all new templates by using the template.tcw, which contains the minimum set of handles and also includes all required variables (graphic`s custom properties   Filtern von Ziehpunkten des aktuellen Profils nach Umwandlungstyp


Es lassen sich ebenfalls eigene Profile erstellen und verändern. Beim Laden von Profilen gibt es jedoch einige bestimmte Merkmale, die beachtet werden sollten. Um ein schnelleres Lesen der TCW-Datei zu gewährleisten, werden Profile nur entladen, wenn die Anwendung geschlossen wird. Andernfalls müssten sie bei jeder Aktivierung des entsprechenden Werkzeugs geöffnet/geschlossen werden. Dies würde die Arbeit erheblich verlangsamen. Falls ein Profil bereits in den Speicher geladen wurde, ist das erneute Laden (z. B. nach dem Bearbeiten) nur nach Neustart der Anwendung möglich. Ein neues Profil kann ohne Anwendungsneustart eingerichtet werden.

Beispiele

Der Ordner Samples enthält verschiedene Beispiele unterschiedlicher Profile. Es macht Sinn, neue Vorlagen auf Basis der Vorlage template.tcw zu erstellen. Diese Vorlage enthält den Mindestsatz an Ziehpunkten und alle benötigten Variablen (grafische benutzerdefinierte Eigenschaften).

                     Template   Profil Template.TCW profile

Defined custom properties in the Database Define Fields dialogVordefinierte benutzerdefinierte Eigenschaften im Dialogfeld Felddefinition


The MoveRotate2D.TCW sample demonstrates the possibility of creating a selector in a "protractor" style. It contains 12 handles for movement along axis, positioned at every 30 degrees, and a handle for rotating around the Z axis.

                      MoveRotate2D.TCW profile

 
The FlatGrid3x3.TCW example demonstrates the possibility to create a flat 5x5 grid from handles for accurate movement in the XY plane (reference point). Grid spacing is 1 in. A specific feature of this grid is that the distance between handles (1 in) does not change when zooming in/out. Ability to set fixed values of coordinates (in a selector coordinate system) allows for placing selector handles at critical points for drawing objects (for example, focal plane of the lens or focuses of an ellipse).

                       FlatGrid3x3.TCW profile  



Layers

All profiles that are distributed with TurboCAD have a certain system of layers. Each handle has its own layer. This provides a way to hide unnecessary handles.
Layers whose names have the "handle_" prefix are used for handles. For example, the "handle_MoveX" layer contains the handle for movement along the X axis.
Layers whose names have the "part_" prefix are used for parts of handles. For example, the "part_MouseIn" layer contains the geometry that becomes visible when the cursor hovers over the handle.

Fragment of layer table from a profile.

It should be noted that this system of layers exists only as an added convenience for profile development. When a profile is uploaded into the application, layer 0 is assigned to all handles.

...

In addition to mandatory custom properties, there are optional properties. These properties are used by the program to determine the purpose, behavior, appearance of the handle, and its response to mouse movement. A user can set other admissible values and change the handle behavior that way.

                         Set of variables for the Boundary Box handle.

                              Set of variables for MoveX handle.


The current set of variables is not final as of this writing, it may be changed and expanded.
A handle has to include a certain set of subgroups.

...

The type of the subgroup is set by the handle_part variable:

                                     'handle_part variable'

This variable can have one of the following values:

...

  • visibility_area - reserved (optional)



                             Parts of MoveX handle