I am trying to featurise a newly created corridor which I have created using code in c#. I want to featurise it however I am unsure how to do it. I have added
newCorridor.FeatureName = "Name";
but this still shows up as NotFeatured in the Open Roads dgn.
Any idea how can I acheive this?
What is the exact version no. (e.g. v10.x.y.z) of MicroStation, or other product, that you are using? Use key-in VERSION to see the version no. in the MicroStation Message Center, or Help→About MicroStation in the backstage.
See this blog that shows you how to obtain MicroStation's version number.
Rahul Vachhani said:I am trying to featurise a newly created corridor
What does that mean...
Regards, Jon Summers LA Solutions
Thanks Jon for the reply. I am using OpenRoades Designer CE - 2021 Release 1 - Version 10.16.00.80 Windows x64, using RealDWG 2021.
When I say I have created a corridor - I mean using c# I have used the sdk to create a new corridor and manually I can featurise it however I want to achieve this using the code in c#.
So basically I want to add a feature definition to a corridor via the code(using sdk methods).
In the image 1 it says Not Featurized however in image 2 I can go and select the feature which results in image 3.
Images attached for reference.
Rahul Vachhani said:I am using OpenRoads
Thanks for clarifying your platform is OpenRoads Designer (ORD), using the ORD SDK. There is a dedicated OpenRoads Forum. and a dedicated Civil Programming Forum.
You're dealing with objects that don't occur in the MicroStation SDK. I note that a moderator has moved your post to the Civil Programming Forum, where I hope you will get help.
Right so am I at the right place asking this question?
Also by the reply below am I correct in understanding that when you say
Jon Summers said:You're dealing with objects that don't occur in the MicroStation SDK
that I wont be able to have a feature definition on the corridor?
Thanks for your help though.
Rahul Vachhani said:I wont be able to have a feature definition on the corridor?
The Bentley Civil products use MicroStation as a platform. That is, anything you can do with MicroStation you can also do with, in your case, OpenRoads Designer (ORD).
I hope I'm correct in stating that the ORD SDK builds on top of MicroStation's SDK. However, only the ORD SDK comprehends the objects (corridor, feature definition) that interest you.
The MicroStation SDK will be useful when, for example, you want to enumerate a DGN model to find DGN elements. But only the ORD SDK can help you determine that a DGN element is an ORD corridor. Once you have an ORD corridor, then the ORD SDK should be able to help you attach an ORD feature defintion to that corridor.