Skip to main content
Version: 2023.3

Add an Attribute to a Model

Description: Attach an existing attribute to a specific model.

Signature: attach_attribute_to_model(model_name, attribute_name, user_input, allowed_values)

Parameters:

NameDirectionRequiredDescription
model_nameInYesThe name of the model
attribute_nameInYesThe name of the attribute
user_inputInYesIn case of service family, specify if this attribute should be presented to the user who using the service
allowed_valuesInNoSpecify the list of allowed values for this attribute

Sample:

`packageEditor.attach_attribute_to_model('Generic Chassis Model','attribute1',False,'')`