Attribut-Ersteller
Kurzinformationen
| Eigenschaft | Wert |
|---|---|
| Klasse | CENPyOlpAttribCreator |
| Modul | cenpylib.CENPyOlpAttribCreator |
| Paket | cenpylib |
| Freigabe | R2025.2.4 |
| Methoden | 9 |
Schnellstart
# Boilerplate Example
attribCreator = ... # obtained from the runtime context
result = attribCreator.GetSystemAttribCreator()Methodenindex
| Methode | Gibt zurück | Zusammenfassung |
|---|---|---|
AddInteger | CENPyOlpAttributeInt | Erstellen Sie ein neues Integer-Attribut. |
AddDouble | CENPyOlpAttributeDouble | Erstellen Sie ein neues Double-Attribut. |
AddString | CENPyOlpAttributeString | Erstellen Sie ein neues String-Attribut. |
AddBool | CENPyOlpAttributeBool | Erstellen Sie ein neues boolesches Attribut. |
AddEnum | CENPyOlpAttributeEnum | Erstellen Sie ein neues Enum-Attribut. |
AddTable | CENPyOlpAttributeTable | Erstellen Sie ein neues Tabellenattribut. |
GetSystemAttribCreator | CENPyOlpSystemAttribCreator | Holt einen Operator, der Systemattribute erstellt. |
AddAttribGroup | CENPyOlpAttribGroup | Erstellt eine neue Attributgruppe. |
GetAllAttribGroups | list[CENPyOlpAttribGroup] | Ruft alle Attributgruppen ab. |
Abfragemethoden
GetSystemAttribCreator
def GetSystemAttribCreator() -> CENPyOlpSystemAttribCreatorErhalten Sie einen Operator, der Systemattribute erstellt.
Gibt zurück: CENPyOlpSystemAttribCreator — Objekt des Systemattribut-Erstellers.
GetAllAttribGroups
def GetAllAttribGroups() -> list[CENPyOlpAttribGroup]Ruft alle Attributgruppen ab.
Gibt zurück: list[CENPyOlpAttribGroup] — Liste von CENPyOlpAttribGroup-Objekten, gefundene Attributgruppen.
Mutationsmethoden
AddInteger
def AddInteger(name: str, val: int, min: int, max: int, olpAttribType: int, nls: str) -> CENPyOlpAttributeIntErstellen Sie ein neues Integer-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | int | Standardwert des Attributs |
min | int | Mindestwert des Attributs |
max | int | maximaler Wert des Attributs |
olpAttribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeInt — Erstelltes Attributobjekt.
AddDouble
def AddDouble(name: str, val: float, min: float, max: float, step: float, olpAttribType: int, attribType: int, nls: str) -> CENPyOlpAttributeDoubleErstellen Sie ein neues Double-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | float | Standardwert des Attributs |
min | float | Mindestwert des Attributs |
max | float | maximaler Wert des Attributs |
step | float | Schrittweite für die Pfeiltasten |
olpAttribType | int | Attribut-Eigenschaften |
attribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeDouble — Erstelltes Attributobjekt.
AddString
def AddString(name: str, val: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeStringErstellen Sie ein neues String-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | str | Standardwert des Attributs |
olpAttribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeString — Erstelltes Attributobjekt.
AddBool
def AddBool(name: str, val: bool, olpAttribType: int, nls: str) -> CENPyOlpAttributeBoolErstellen Sie ein neues boolesches Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | bool | Standardwert des Attributs |
olpAttribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeBool — Erstelltes Attributobjekt.
AddEnum
def AddEnum(name: str, literals: object, value: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeEnumErstellen Sie ein neues Enum-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
literals | Any | Liste der angegebenen Elemente |
value | str | Standardwert des Attributs |
olpAttribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeEnum — Erstelltes Attributobjekt.
AddTable
def AddTable(name: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeTableErstellen Sie ein neues Tabellenattribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
olpAttribType | int | Attribut-Eigenschaften |
nls | str | NLS-Zeichenfolge |
Gibt zurück: CENPyOlpAttributeTable — Erstelltes Attributobjekt.
AddAttribGroup
def AddAttribGroup(name: str) -> CENPyOlpAttribGroupErstellen Sie eine neue Attributgruppe.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name der Gruppe, die hinzugefügt wird. |
Gibt zurück: CENPyOlpAttribGroup — Erstelltes Gruppenobjekt.
Verwandte Typen
- Attribut Int
- Attribut Double
- Attribut Zeichenkette
- Attribut Bool
- Attribut Aufzählung
- Attributtabelle
- System Attrib Creator
- Attributgruppe
Versionshinweise
Diese Klasse ist ab Version R2026.1.1 dokumentiert.