Skip to Content
FASTSUITE E2API RéférencePython APIAPI DomainesAttributsAttrib Creator

Attrib Creator

Faits rapides

PropriétéValeur
ClasseCENPyOlpAttribCreator
Modulecenpylib.CENPyOlpAttribCreator
Paquetcenpylib
LibérationR2025.2.4
Méthodes9

Départ rapide

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

Index de la méthode

MéthodeRetoursRésumé
AddIntegerCENPyOlpAttributeIntCréez un nouvel attribut entier.
AddDoubleCENPyOlpAttributeDoubleCréez un nouvel attribut double.
AddStringCENPyOlpAttributeStringCréez un nouvel attribut de chaîne.
AddBoolCENPyOlpAttributeBoolCréez un nouvel attribut bool.
AddEnumCENPyOlpAttributeEnumCréez un nouvel attribut enum.
AddTableCENPyOlpAttributeTableCréez un nouvel attribut de table.
GetSystemAttribCreatorCENPyOlpSystemAttribCreatorPrenez un opérateur qui crée des attributs système.
AddAttribGroupCENPyOlpAttribGroupCréez un nouveau groupe d’attributs.
GetAllAttribGroupslist[CENPyOlpAttribGroup]Ça obtient tous les groupes d’attributs.

Méthodes de requête

GetSystemAttribCreator

def GetSystemAttribCreator() -> CENPyOlpSystemAttribCreator

Prenez un opérateur qui crée des attributs système.

Retourne : CENPyOlpSystemAttribCreator — Objet créateur d’attributs système.

GetAllAttribGroups

def GetAllAttribGroups() -> list[CENPyOlpAttribGroup]

Ça obtient tous les groupes d’attributs.

Retourne : list[CENPyOlpAttribGroup] — Liste des objets CENPyOlpAttribGroup, groupes d’attributs trouvés.

Méthodes de mutation

AddInteger

def AddInteger(name: str, val: int, min: int, max: int, olpAttribType: int, nls: str) -> CENPyOlpAttributeInt

Créez un nouvel attribut entier.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
valintvaleur par défaut de l’attribut
minintvaleur minimale de l’attribut
maxintvaleur maximale de l’attribut
olpAttribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retour : CENPyOlpAttributeInt — Objet attribut créé.

AddDouble

def AddDouble(name: str, val: float, min: float, max: float, step: float, olpAttribType: int, attribType: int, nls: str) -> CENPyOlpAttributeDouble

Créez un nouvel attribut double.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
valfloatvaleur par défaut de l’attribut
minfloatvaleur minimale de l’attribut
maxfloatvaleur maximale de l’attribut
stepfloatTaille de la marche pour les flèches clavier
olpAttribTypeintPropriétés d’attribut
attribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retourne : CENPyOlpAttributeDouble — Objet attribut créé.

AddString

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

Créez un nouvel attribut de chaîne.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
valstrvaleur par défaut de l’attribut
olpAttribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retourne : CENPyOlpAttributeString — Objet attribut créé.

AddBool

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

Créez un nouvel attribut bool.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
valboolvaleur par défaut de l’attribut
olpAttribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retours : CENPyOlpAttributeBool — Objet attribut créé.

AddEnum

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

Créez un nouvel attribut enum.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
literalsAnyListe des éléments donnés
valuestrvaleur par défaut de l’attribut
olpAttribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retourne : CENPyOlpAttributeEnum — Objet attribut créé.

AddTable

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

Créez un nouvel attribut de table.

Paramètres :

NomTypeDescription
namestrNom de l’attribut
olpAttribTypeintPropriétés d’attribut
nlsstrChaîne NLS

Retourne : CENPyOlpAttributeTable — Objet attribut créé.

AddAttribGroup

def AddAttribGroup(name: str) -> CENPyOlpAttribGroup

Créez un nouveau groupe d’attributs.

Paramètres :

NomTypeDescription
namestrnom du groupe qui sera ajouté.

Retourne : CENPyOlpAttribGroup — Objet de groupe créé.

Types apparentés

Notes de la version

Cette classe est documentée à la version R2025.2.4.

Was this page helpful?