Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
    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.

type

description

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

Set / Update User Properties Value of IfcItems

...