Are MicroStation Connect "Item Types" able to be manipulated using MVBA?
I have been digging around and do not see any mention of "Items" in the object browser or the help. The word Item appears often but not with regard to MicroStation Items. I also attempted to record some "Item" edits and there was nothing in the recorded macro regarding "Items" and the macro does not do anything to the Items.
Unknown said:Are MicroStation Connect "Item Types" able to be manipulated using MVBA?
The APIs that handle Item Types are the C++ MicroStationAPI and the .NET DgnPlatformNet. Item Types haven't made it into VBA as far as I can see.
A related topic is EC Schemas. Item Types rely on a well-formed schema to operate, rather like a relational database. VBA has no mechanism for handling schemas.
Regards, Jon Summers LA Solutions
Answer Verified By: Mike Longstreet
Hi Mike,
As Jon wrote, there is no VBA API to access ItemTypes. On the other hand, if there is an element with attached ItemType, you should be able to access and edit the values using PropertyHandlers. There are some limitations (e.g. no solution if there is a conflict between the same names), but still pretty helpful in many situations.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi guys,
It seems that Item Types seem to have VBA support in MS Update 8 but I am finding most of it doesn't seem to work. The Item Type members are hidden in the Object Browser. Not sure when they added it and still nothing in vba documentation...
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.2 | ProjectWise 2023
Mark Shamoun said:It seems that Item Types seem to have VBA support in MS Update 8
Well spotted! Good news is always welcome.
Mark Shamoun said: still nothing in vba documentation...
The documentation often takes a while to catch up. Keep in mind that Item Type support in VBA could prove ephemeral, like Picklists that appeared in Update 7 and then vanished in subsequent Updates.
Hi all,
The VBA support for ItemTypes was originally intended to be introduced with CONNECT Edition update 8, but this had to be postponed.The documentation is missing in Update 8 and the new features should not be used yet.Most likely, the ItemType support will be officially released with Update 10, including documentation and examples.
Best regards,Artur
Did this ever make it into U10 and if so where would i find the documentation?
Hi Grant,
Grant Wood said:Did this ever make it into U10 and if so where would i find the documentation?
I am not sure about Update 10 (because have not installed), but it's in Update 11, both in MicroStation VBA documentation and in API.