Hi,
I am trying to create attributes with the Python Api. At the moment I am failing because the required inputs are not documented.
This is my code:

attr_list.append(attr_service.AddUserAttribute(
doc,
attributeType= attr_type,
attributeName= attributeName,
attributeDefaultValue= "",
attributeMinValue= "0",
attributeMaxValue= 255,
attributeDimension= "",
attributeCtrlType= attr_control_type,
attributeListValues= attr_value
))

This works for a string attribute.
However, it does not work as desired for integers or doubles. I want to achieve that there is no preset for the min and max value and no default value is set.
For a string attribute, no default value is set for attributeDefaultValue= “”. For an integer or double, the value is 1.
Does anyone have a suggestion on how to create the attributes cleanly?

Greetings
Jan

Brücken und Ingenieurbau
VIC Planen und Beraten GmbH

https://www.vic-gmbh.de/