I would like to use Item Types as a way to calculate quantities for transportation projects. I am using an "ItemNumber" field to lookup the item description as well as other information about the pay item. from a spreadsheet located in the workspace.
There are many instances when the same microstation element may have multiple pay items. For instance, a manhole we would pay for the manhole and the cover separately. I can make a property type called "Pay item" and use this to create an array of pay items on the microstation element. However, when I do this the lookup functionality fails. Anybody else try to do something like this with any success?
-Luke
Hi Luke,
Expression does not support array property type. Can you please explain your use case with examples how will you like value should appear for your array property?
Thanks,
Mangesh
Hi Mangesh,
I would like to create a property type called "Pay Item". This property type will have properties of item code, item description, and units of measure. Using ItemCode, I would like to look up item description and units of measure from a spreadsheet.
In our industry, multiple pay items can be represented by the same microstation element. For example, a manhole is a microstation cell, but the contractor will get paid for installing the manhole and installing the manhole cover separately. So I would like to assign an array of pay items where each unique ItemCode within the array will look up the subsequent item description and units of measure.
Thanks for following up on this!
Luke
What about following?
I have following excel table.
Dinar
I have property type, PayItems with following properties
Code
Description => LookUp.GetEntry("PayItem","Code",this.Code).Description
UnitOfMeasure => LookUp.GetEntry("PayItem","Code",this.Code).UnitOfMeasure
I have used it in my Door ItemType as:
Payments => property type is PayItems & IsArray = true.
I have attached *Door* to element. And added array entries with different Codes as available in my excel table.
*Description* and *UnitOfMeasure* values are fetched via LookUp expression and hence grayed-out.
Door item, attached to my Microstation element, in ElementInfo dialog can be seen as:
Same can be seen in Reports->Preview as:
Is this something satisfies your requirement?
Please confirm.
Yes! This is exactly what I am looking for.
Thanks!
Hi Luke, we are working to have this implemented in the next MicroStation CONNECT Edition release.
Marco Salino said:we are working to have this implemented in the next MicroStation CONNECT Edition release
'Next' means Update 14 or 15?
Regards, Jon Summers LA Solutions
'Next' means 14