OPPID - access to properties from VBA

Good afternoon,

I  have a drawing in PowerPid with components who have properties assigned to them.

I would like to have access to these properties from within a VBA routine, is that possible?

Kind regards.

Parents Reply Children
  • Good morning,

    I have been looking around in the programming sections and I found some suggestions.
    The problem is that the OPPID is a complex environment with a lot of ECXML files.
    This is the procedure I followed so far:
    - MDL LOAD Bentley.ECXAttributesAddin.dll
    - ECX Schema Import <PATH>\OpenPlant_PID.01.04.ecschema.xml
    But there I get an error message "Failed to read ECSchema from '<PATH>\OpenPlant_PID.01.04.ecschema.xml'.
    I think the entire OPPID environment is too complex to load or I am doing something wrong.
    is there anyone with some experience on this subject?
    Kind regards.

    Wim Aerts

    4D select nv

  • Good morning,

    I am feeling a bit like an idiot right now. I did my testing with standard Microstation in stead of PowerPid.
    After I used the propertyhandler API in PowerPid I could see all the properties I need.
    So this solves my problem!
    Thanks for the suggestion Jojje!
    Kind regards.

    Wim Aerts

    4D select nv