A DGN File is a Container
sagar:
I want to get the total count/number of ... in the dgn file
A DGN file is a container. It contains one or more models. The only thing you can count in a DGN file is the number of models.
Linear Elements have End Points
sagar:
I want to get the total count/number of the end and start point available in the dgn model
Each line has a start and end point: two points per line. To count the number of points therefore count the number of lines in a model.
The MicroStation programmer's idiom for finding things in a model is the scanner. Here are the APIs for some MicroStation development languages...
- VBA: use ModelReference.Scan
- MDL: use mdlScanCriteria_api
- MicroStationAPI: use DgnElmListIterator (MicroStation XM and later)