Attrib-Schöpfer
Schnelle Fakten
| Immobilien | Wert |
|---|---|
| Klasse | CENPyOlpAttribCreator |
| Modul | cenpylib.CENPyOlpAttribCreator |
| Paket | cenpylib |
| Veröffentlichung | R2025.2.4 |
| Methoden | 9 |
Schneller Start
# Boilerplate Example
attribCreator = ... # obtained from the runtime context
result = attribCreator.GetSystemAttribCreator()Methodenindex
| Methode | Rückgaben | Zusammenfassung |
|---|---|---|
AddInteger | CENPyOlpAttributeInt | Erstelle ein neues ganzzahliges Attribut. |
AddDouble | CENPyOlpAttributeDouble | Erstelle ein neues doppeltes Attribut. |
AddString | CENPyOlpAttributeString | Erstelle ein neues String-Attribut. |
AddBool | CENPyOlpAttributeBool | Erstelle ein neues Bool-Attribut. |
AddEnum | CENPyOlpAttributeEnum | Erstelle ein neues ENUM-Attribut. |
AddTable | CENPyOlpAttributeTable | Erstelle ein neues Tabellenattribut. |
GetSystemAttribCreator | CENPyOlpSystemAttribCreator | Holen Sie sich einen Operator, der Systemattribute erstellt. |
AddAttribGroup | CENPyOlpAttribGroup | Erstelle eine neue Attributgruppe. |
GetAllAttribGroups | list[CENPyOlpAttribGroup] | Erhält alle Attributgruppen. |
Abfragemethoden
GetSystemAttribCreator
def GetSystemAttribCreator() -> CENPyOlpSystemAttribCreatorHolen Sie sich einen Operator, der Systemattribute erstellt.
Returns: CENPyOlpSystemAttribCreator — Systemattribut-Erstellobjekt.
GetAllAttribGroups
def GetAllAttribGroups() -> list[CENPyOlpAttribGroup]Erhält alle Attributgruppen.
Returns: list[CENPyOlpAttribGroup] — Liste der CENPyOlpAttribGroup-Objekte, gefundene Attributgruppen.
Mutationsmethoden
AddInteger
def AddInteger(name: str, val: int, min: int, max: int, olpAttribType: int, nls: str) -> CENPyOlpAttributeIntErstelle ein neues ganzzahliges 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 | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeInt — Erstelltes Attributobjekt.
AddDouble
def AddDouble(name: str, val: float, min: float, max: float, step: float, olpAttribType: int, attribType: int, nls: str) -> CENPyOlpAttributeDoubleErstelle ein neues doppeltes 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 | Attributeigenschaften |
attribType | int | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeDouble — Erstelltes Attributobjekt.
AddString
def AddString(name: str, val: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeStringErstelle ein neues String-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | str | Standardwert des Attributs |
olpAttribType | int | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeString — Erstelltes Attributobjekt.
AddBool
def AddBool(name: str, val: bool, olpAttribType: int, nls: str) -> CENPyOlpAttributeBoolErstelle ein neues Bool-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
val | bool | Standardwert des Attributs |
olpAttribType | int | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeBool — Erstelltes Attributobjekt.
AddEnum
def AddEnum(name: str, literals: object, value: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeEnumErstelle ein neues ENUM-Attribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
literals | Any | Liste der gegebenen Elemente |
value | str | Standardwert des Attributs |
olpAttribType | int | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeEnum — Erstelltes Attributobjekt.
AddTable
def AddTable(name: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeTableErstelle ein neues Tabellenattribut.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name des Attributs |
olpAttribType | int | Attributeigenschaften |
nls | str | NLS-String |
Returns: CENPyOlpAttributeTable — Erstelltes Attributobjekt.
AddAttribGroup
def AddAttribGroup(name: str) -> CENPyOlpAttribGroupErstelle eine neue Attributgruppe.
Parameter:
| Name | Typ | Beschreibung |
|---|---|---|
name | str | Name der Gruppe, die hinzugefügt wird. |
Returns: CENPyOlpAttribGroup — Erstelltes Gruppenobjekt.
Verwandte Typen
- Attribute Int
- Attribute Double
- Attribute String
- Attribute Bool
- Attribute Enum
- Attribute Table
- System Attrib Creator
- Attrib Group
Versionsnotizen
Diese Klasse ist zum Zeitpunkt der Veröffentlichung R2025.2.4 dokumentiert.