DgnECExample demonstrates EC and DGNEC APIs and provides the following functionality.
-
Finding EC Schemas in a DGN file.
-
Creating and Importing EC Schemas in a DGN file.
-
Writing instance of some EC Class on some element.
-
Finding EC Class instances on some element.
-
Finding EC Class instances on all elements.
Notes
-
Finding EC Schemas in a DGN file will find all schemas imported in the DGN file.
-
The other four features are limited to schemas the user will create and import graphically using this sample.
-
This sample allows crating of simple schemas and then importing them into the file.
-
One can create schemas with only top level classes and properties only of type String, Boolean, int and double.
-
Instances can only be created and found of the classes of the above mentioned schemas.