Hi,
We are making the transitioning to CONNECT Update 2.
I'm trying to get the scanner to function. With the former version this worked:
Bentley.Interop.MicroStationDGN.ElementScanCriteria msScan = new Bentley.Interop.MicroStationDGN.ElementScanCriteriaClass();
Now it doesn't. The compiler says:
"The type 'Bentley.Interop.MicroStationDGN.ElementScanCriteriaClass' has no constructors"
"Interop type 'Bentley.Interop.MicroStationDGN.ElementScanCriteriaClass' cannot be embedded. Use the applicable interface instead."
Does anybody have a solution to this problem?
Thanks!
Jan
Hi Jan,
Unknown said:Does anybody have a solution to this problem?
I don't recall such problem has been discussed yet. Maybe it's because Interop access it treated as obsolete and new DgnPlatformNET API should be used instead of it? And I guess people (try to) use it, so the described behaviour was not discovered.
Is there any block to use ScanCriteria from the new API?
On the other hand some functionality is missing in the new API so Interop cannot be removed fully yet.
With regards,
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
This article describe two ways to enumerate elements in a DGN model.
Regards, Jon Summers LA Solutions