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?
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.
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.
Regards, Jon Summers LA Solutions