Attribut Double
Kurzinformationen
| Eigenschaft | Wert |
|---|---|
| Klasse | CENPyOlpAttributeDouble |
| Modul | cenpylib.CENPyOlpAttributeDouble |
| Paket | cenpylib |
| Freigabe | R2025.2.4 |
| Methoden | 8 |
| Erbt von | CENPyOlpAttribute |
Vererbung
Schnellstart
# Boilerplate Example
attributeDouble = ... # obtained from the runtime context
result = attributeDouble.GetValue()Methodenindex
| Methode | Gibt zurück | Zusammenfassung |
|---|---|---|
SetValue | — | Setzen Sie den Double-Wert des Attributs. |
GetValue | float | Doppelten Wert des Attributs abrufen. |
SetMinimum | — | Legen Sie den minimalen Bereichswert fest. |
GetMinimum | float | Gibt den minimalen Wert des Attributs zurück. |
SetMaximum | — | Legen Sie den maximalen Bereichswert fest. |
GetMaximum | float | Holen Sie den maximalen Attributwert ab |
SetStepSize | — | Legen Sie die Schrittweite des Attributs fest. |
GetStepSize | float | Gibt die Schrittweite des Attributs zurück. |
Abfragemethoden
GetValue
def GetValue() -> floatGibt den Double-Wert des Attributs zurück.
Gibt zurück: float — Wert des Attributs
GetMinimum
def GetMinimum() -> floatGibt den minimalen Wert des Attributs zurück.
Gibt zurück: float — Attribut-Mindestwert
GetMaximum
def GetMaximum() -> floatGibt den maximalen Attributwert zurück
Gibt zurück: float — Attribut-Maximalwert
GetStepSize
def GetStepSize() -> floatErmittelt die Attribut-Schrittweite.
Gibt zurück: float — Attribut-Schrittweite
Mutationsmethoden
SetValue
def SetValue(value: float)Doppeltwert des Attributs festlegen.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
value | float | neuer Wert |
SetMinimum
def SetMinimum(min: float)Legen Sie den minimalen Bereichswert fest. Darf nicht höher als der maximale Wert sein!
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
min | float | Minimaler Bereichswert |
SetMaximum
def SetMaximum(max: float)Legen Sie den maximalen Bereichswert fest. Darf nicht niedriger als der Mindestwert sein!
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
max | float | maximaler Bereichswert |
SetStepSize
def SetStepSize(step: float)Legen Sie die Schrittweite des Attributs fest.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
step | float | Attribut-Schrittweite |
Versionshinweise
Diese Klasse ist ab Version R2026.1.1 dokumentiert.
Was this page helpful?