I have several VBA feature macros developed in InRoads SS4 based on the SmartObjects.mvba macros.
I would like to move these forward to ORD. I see the VBA Feature Macro configuration setting is still there in the Survey Properties, but when I open the VBA editor the reference to the Bentley.Civil.Applications.Survey.COM library (or replacement) is not there. I can find the Reference installed by InRoads, but was looking for one installed and compatible with ORD.
Is there a Survey COM library available for ORD?
Hi RodWing,
No, there is no Survey COM library available for ORD. Please see similar question
https://communities.bentley.com/products/programming/civil_programming/f/civil_programming_forum/168526/openroadsdesigner-sdk---vba-access-to-functionality.
You need to rewrite the mvba to C# or VB .NET for OpenRoads.
Best Regards,
Marty Robbins
Is there any VB.NET examples I can download for OpenRoads ?..
Hi Peter,
Peter Yi said:Is there any VB.NET examples I can download for OpenRoads ?
I recommend to respect the best practices and do not steal this 4 years old discussion with new question (because the original question was about VBA, whereas your new one is about VB.NET).
When you ask in new post, it receives bigger attention. Personally I do not know about any such examples (SDK contains C# and C++ code), but maybe somebody have some.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jan, Thanks for your response.
And I am actually interested in VBA (since I have been coding in VBA & VB.NET) for OpenRoads/Rail which was recently installed. I hope to provide the necessary custom functions for our designers as I have done with Civil 3D.
I have done some search and have not come across any MVBA scripts for creating/manipulating ORD objects/database.
A quick question, if you don't mind.. Does MVBA environment in ORD provide equivalent functionality as in C# ?..
Thanks in advance for your reply.
Peter,
Other than the Survey Feature Macros, there are no VBA extensions in ORD.
Marty Robbins said:No, there is no Survey COM library available for ORD. Please see similar question https://communities.bentley.com/products/programming/civil_programming/f/civil_programming_forum/168526/openroadsdesigner-sdk---vba-access-to-functionality.
You can still use VBA in ORD, but are limited to MicroStation graphics manipulations.
If you want to develop add-ins for ORD to work with Civil objects you will need to get the ORD SDK and develop it in .NET.
Rod WingSenior Systems Analyst