...
Code Block |
---|
var ifcItemUserPropertyService = new IfcItemUserPropertyService(serviceConfiguration, projectUrl);
// to get one user proper info knowing the key
var udp = await ifcItemUserPropertyService.GetAsync("up1");
//to create a new user property
var newUdp = new BpNewIfcItemUserProperty
{
Name = "Project Start Date",
Active = true,
Category = "global", // the default Category of user property; this value depends on your permissions; internal category name uses "a-z", "0-9", "-" symbols
SubCategory = "Dates", // free text
ValueType = "date",
Index = 10 // display order in UI
};
var createdUpd = await ifcItemUserPropertyService.CreateAsync(newUdp);
|
|
We support many value types. To determine tha value type on row 12, use the term from the following table in the first column. The second column contains a brief description of the value type on the same row.
typeValueType | descriptionDescription |
---|
string | any string |
number | any number. |
integer | only integer without decimal separator |
date | date (in format according to ISO 8601) |
url | it is a string which will be displayed in UI as link |
list | multiple value string |
bool | true/false |
email | an email value |
user | an id or url of a bimpoint user within your company |
...