Créateur d’Attrib
Faits rapides
| Propriété | Valeur |
|---|---|
| Classe | CENPyOlpAttribCreator |
| Module | cenpylib.CENPyOlpAttribCreator |
| Paquet | cenpylib |
| Sortie | R2025.2.4 |
| Méthodes | 9 |
Démarrage rapide
# Boilerplate Example
attribCreator = ... # obtained from the runtime context
result = attribCreator.GetSystemAttribCreator()Indice de la méthode
| Méthode | Résultats | Résumé |
|---|---|---|
AddInteger | CENPyOlpAttributeInt | Créez un nouvel attribut entier. |
AddDouble | CENPyOlpAttributeDouble | Créez un nouvel attribut double. |
AddString | CENPyOlpAttributeString | Créez un nouvel attribut de chaîne. |
AddBool | CENPyOlpAttributeBool | Créez un nouvel attribut bool. |
AddEnum | CENPyOlpAttributeEnum | Créez un nouvel attribut enum. |
AddTable | CENPyOlpAttributeTable | Créez un nouvel attribut de table. |
GetSystemAttribCreator | CENPyOlpSystemAttribCreator | Prenez un opérateur qui crée des attributs système. |
AddAttribGroup | CENPyOlpAttribGroup | Créez un nouveau groupe d’attributs. |
GetAllAttribGroups | list[CENPyOlpAttribGroup] | Ça obtient tous les groupes d’attributs. |
Méthodes de requête
GetSystemAttribCreator
def GetSystemAttribCreator() -> CENPyOlpSystemAttribCreatorPrenez un opérateur qui crée des attributs système.
Retours : CENPyOlpSystemAttribCreator — Objet créateur d’attribut système.
GetAllAttribGroups
def GetAllAttribGroups() -> list[CENPyOlpAttribGroup]Ça obtient tous les groupes d’attributs.
Retours : 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) -> CENPyOlpAttributeIntCréez un nouvel attribut entier.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
val | int | Valeur par défaut de l’attribut |
min | int | Valeur minimale de l’attribut |
max | int | Valeur maximale de l’attribut |
olpAttribType | int | Propriétés d’attribut |
nls | str | Chaî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) -> CENPyOlpAttributeDoubleCréez un nouvel attribut double.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
val | float | Valeur par défaut de l’attribut |
min | float | Valeur minimale de l’attribut |
max | float | Valeur maximale de l’attribut |
step | float | Taille de pas pour les touches flèches |
olpAttribType | int | Propriétés d’attribut |
attribType | int | Propriétés d’attribut |
nls | str | Chaîne NLS |
Retour : CENPyOlpAttributeDouble — Objet attribut créé.
AddString
def AddString(name: str, val: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeStringCréez un nouvel attribut de chaîne.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
val | str | Valeur par défaut de l’attribut |
olpAttribType | int | Propriétés d’attribut |
nls | str | Chaîne NLS |
Retour : CENPyOlpAttributeString — Objet attribut créé.
AddBool
def AddBool(name: str, val: bool, olpAttribType: int, nls: str) -> CENPyOlpAttributeBoolCréez un nouvel attribut bool.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
val | bool | Valeur par défaut de l’attribut |
olpAttribType | int | Propriétés d’attribut |
nls | str | Chaîne NLS |
Retour : CENPyOlpAttributeBool — Objet attribut créé.
AddEnum
def AddEnum(name: str, literals: object, value: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeEnumCréez un nouvel attribut enum.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
literals | Any | Liste des éléments donnés |
value | str | Valeur par défaut de l’attribut |
olpAttribType | int | Propriétés d’attribut |
nls | str | Chaîne NLS |
Retour : CENPyOlpAttributeEnum — Objet attribut créé.
AddTable
def AddTable(name: str, olpAttribType: int, nls: str) -> CENPyOlpAttributeTableCréez un nouvel attribut de table.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | Nom de l’attribut |
olpAttribType | int | Propriétés d’attribut |
nls | str | Chaîne NLS |
Retour : CENPyOlpAttributeTable — Objet attribut créé.
AddAttribGroup
def AddAttribGroup(name: str) -> CENPyOlpAttribGroupCréez un nouveau groupe d’attributs.
Paramètres :
| Nom | Type | Description |
|---|---|---|
name | str | nom du groupe qui sera ajouté. |
Returns : CENPyOlpAttribGroup — Objet de groupe créé.
Types apparentés
- Attribut Int
- Attribut Double
- Chaîne d’attributs
- Attribut Bool
- Attribut Enum
- Tableau des attributs
- System Attrib Creator
- Attrib Group
Version Notes
Cette classe est documentée à la version R2026.1.1.