Skip to Content

Attribut-Ersteller

Kurzinformationen

EigenschaftWert
KlasseCENPyOlpAttribCreator
Modulcenpylib.CENPyOlpAttribCreator
Paketcenpylib
FreigabeR2025.2.4
Methoden9

Schnellstart

# Boilerplate Example attribCreator = ... # obtained from the runtime context result = attribCreator.GetSystemAttribCreator()

Methodenindex

MethodeGibt zurückZusammenfassung
AddIntegerCENPyOlpAttributeIntErstellen Sie ein neues Integer-Attribut.
AddDoubleCENPyOlpAttributeDoubleErstellen Sie ein neues Double-Attribut.
AddStringCENPyOlpAttributeStringErstellen Sie ein neues String-Attribut.
AddBoolCENPyOlpAttributeBoolErstellen Sie ein neues boolesches Attribut.
AddEnumCENPyOlpAttributeEnumErstellen Sie ein neues Enum-Attribut.
AddTableCENPyOlpAttributeTableErstellen Sie ein neues Tabellenattribut.
GetSystemAttribCreatorCENPyOlpSystemAttribCreatorHolt einen Operator, der Systemattribute erstellt.
AddAttribGroupCENPyOlpAttribGroupErstellt eine neue Attributgruppe.
GetAllAttribGroupslist[CENPyOlpAttribGroup]Ruft alle Attributgruppen ab.

Abfragemethoden

GetSystemAttribCreator

def GetSystemAttribCreator() -> CENPyOlpSystemAttribCreator

Erhalten 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) -> CENPyOlpAttributeInt

Erstellen Sie ein neues Integer-Attribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
valintStandardwert des Attributs
minintMindestwert des Attributs
maxintmaximaler Wert des Attributs
olpAttribTypeintAttribut-Eigenschaften
nlsstrNLS-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) -> CENPyOlpAttributeDouble

Erstellen Sie ein neues Double-Attribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
valfloatStandardwert des Attributs
minfloatMindestwert des Attributs
maxfloatmaximaler Wert des Attributs
stepfloatSchrittweite für die Pfeiltasten
olpAttribTypeintAttribut-Eigenschaften
attribTypeintAttribut-Eigenschaften
nlsstrNLS-Zeichenfolge

Gibt zurück: CENPyOlpAttributeDouble — Erstelltes Attributobjekt.

AddString

def AddString(name: str, val: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeString

Erstellen Sie ein neues String-Attribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
valstrStandardwert des Attributs
olpAttribTypeintAttribut-Eigenschaften
nlsstrNLS-Zeichenfolge

Gibt zurück: CENPyOlpAttributeString — Erstelltes Attributobjekt.

AddBool

def AddBool(name: str, val: bool, olpAttribType: int, nls: str) -> CENPyOlpAttributeBool

Erstellen Sie ein neues boolesches Attribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
valboolStandardwert des Attributs
olpAttribTypeintAttribut-Eigenschaften
nlsstrNLS-Zeichenfolge

Gibt zurück: CENPyOlpAttributeBool — Erstelltes Attributobjekt.

AddEnum

def AddEnum(name: str, literals: object, value: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeEnum

Erstellen Sie ein neues Enum-Attribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
literalsAnyListe der angegebenen Elemente
valuestrStandardwert des Attributs
olpAttribTypeintAttribut-Eigenschaften
nlsstrNLS-Zeichenfolge

Gibt zurück: CENPyOlpAttributeEnum — Erstelltes Attributobjekt.

AddTable

def AddTable(name: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeTable

Erstellen Sie ein neues Tabellenattribut.

Parameter:

NameTypBeschreibung
namestrName des Attributs
olpAttribTypeintAttribut-Eigenschaften
nlsstrNLS-Zeichenfolge

Gibt zurück: CENPyOlpAttributeTable — Erstelltes Attributobjekt.

AddAttribGroup

def AddAttribGroup(name: str) -> CENPyOlpAttribGroup

Erstellen Sie eine neue Attributgruppe.

Parameter:

NameTypBeschreibung
namestrName der Gruppe, die hinzugefügt wird.

Gibt zurück: CENPyOlpAttribGroup — Erstelltes Gruppenobjekt.

Verwandte Typen

Versionshinweise

Diese Klasse ist ab Version R2026.1.1 dokumentiert.

Was this page helpful?