Hi all,
I am new to Microstation development, and recently i want to develop an extension which is to "read" DGN file data(geometry, properties, reference...), i am not familiar with the MDL development environment( especially about the make file, resource file..), and would like to start with an C# addin, this environment is familiar to me and i can quickly start and focus on my logic. but i am not sure whether i have the same level access to the APIs, i have read a lot threads, wikis, and seems the MDL application have more api access to the DGN file filed. what i need is just to read the DGN file information(geometry, properties, references..)
can any expert help me confirm whether i can get the same level api access if i start with an C# addin, from the DGN file "read" perspertive, access Bentley DGN files with full fidelity.
and by the way, the DGN file is generated by AECOsim.
thanks,
Rick
.
Unknown said: I am new to Microstation development
Which version (e.g. v10.x.y.z) of MicroStation? You have tagged .dgn V8, but the DGN file format is the same in V10 as in V8.
Regards, Jon Summers LA Solutions
I am using the V8 version of microstation. thanks,
Unknown said:I am using the V8 version of microstation
There is no native .NET API for MicroStation V8 (MicroStation CONNECT provides an extensive .NET API).
To write a C# AddIn, you can call the VBA API via an InterOp, or MDL functions using P/Invoke.
thanks Jon for your reply.
yes, i call the VBA API via an interop, my question is that whether the VBA API has full access to the DGN file(access Bentley DGN files with full fidelity), what i get from the sdk document is that the MDL api has the full access, so whether the MDL API always has an equivalent VBA API?
MDL and the MicroStationAPI are more complete than VBA.
Unknown said:My question is that whether the VBA API has full access to the DGN file
VBA is provided to automate user interaction. It does not provide in-depth functionality afforded by MDL (for example, the Dependency Manager). However, VBA does provide some functionality that is not available through MDL and the MicroStationAPI (for example, element properties using a PropertyManager).
So, depending on what you mean by 'full access', the answer is indeterminate.