Topic
adding coordinate values into text
Page d'accueil ' Communauté ' Généralités ' ajouter des valeurs de coordonnées dans le texte
- Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Dermot Cradden, le il y a 15 années et 2 mois.
-
AuteurMessages
-
10.03.2010 à 07:34 #33781Dermot CraddenParticipant
Is it possible to create a text object with the value of a cursor embedded? And have that value change when the cursor position changes.
10.03.2010 à 07:34 #33783Dermot CraddenParticipantIs it possible to create a text object with the value of a cursor embedded? And have that value change when the cursor position changes.
10.03.2010 à 18:05 #33782Bernhard KantzParticipantThat’s possible as long as the cursor is active. If you use a label in a 2D-diagram you can automatically update the content (cursor position). Activate the option [b]Update windows[/b] (Diagram Properties|Cursors). The Update windows specifies that the the window is to be refreshed after every cursor move. Select this option if you display data sets, which refer to the actual cursor positions, in the same window.
Example: Cursor position of the active cursor in the diagram ‘2DDiagram’
[code]
%{‘2DDiagram.2D’.Cursor(fpCursorActive, 1).PositionIndex}
[/code]
Example: Y-value of ‘Signal’ at the current cursor position
[code]
%{Signal[‘2DDiagram.2D’.Cursor(fpCursorActive, 1).PositionIndex]}
[/code] -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.