I connect the application using the following code.
Dim m_App As MicroStationDGN.ApplicationObjectConnector = GetObject(, "MicroStationDGN.ApplicationObjectConnector") ' Dim msDGNApp As MicroStationDGN.Application = m_App.Application Dim m_DF As MicroStationDGN.DesignFile = msDGNApp.ActiveDesignFile
This is how I get the DesignFile.
From here how will I get the FeatureMgr Class initialized.
Or Is there any othere method. Please help
Liju Mathew Varghese
What do you mean by the 'FeatureMgr Class'? I don't see that in MicroStation VBA.
Regards, Jon Summers LA Solutions
You will find this featureMgr class in V8i.
I want this FeatureMgr class in VB.NET not in VBA
Which assembly? Which namespace? Provide more info about, since I personaly have no idea where that class could be...
Please provide evidence (e.g. a screenshot) that shows FeatureMgr in MicroStation V8i.
Once Attaching the Reference Bentley GeoGraphics XFT Object Library I can do the following in VBA
Dim s As New xft.FeatureMgr
Dim en As xft.FeatureEnumerator
Dim el As Element
Set el = ActiveModelReference.GetElementByID(DLongFromLong(25715))
Dim ft As feature
Set ft = s.CreateFeature(el)
Dim pr As Property
While en1.MoveNext
Set pr = en1.Current
Debug.Print pr.Name & ":" & pr.Value & vbCrLf
Wend
I Get all the properties of that Particular Element. But this is not possible from VB.NET
You need to have Bentley Map loaded and to reference the assemblies in the /Mpa/Bin/assemblies folder to your project.. The feature manager is in the Bentley.Interop.XFT assembly.