How to Attach Instance data in OBD using VBA

Hi all!

We are working in a Railway project coming from OpenRail and we have to attach all IFC information using OpenBuilding Designer command Attach Instance Data using a specific Catalog we have developed.

Since this process is quite repetitive, tedious and may lead to errors I would like to automize the process using VBA. The process requires:

1.- Filter elements by type (we do it through level in our case)

2.- Identify Catalog Item and select it

3.- Attach the instance to the filter elements

I have managed step one, and I am assuming that the Catalog Items are considered ItemTypes but I am struggeling to identify these and assign them to the different elements.

Does anyone have any advice for this?

Thank you all in advance,

Victor