I am trying to create feature in PowerMap V8i from VB.NET but obviously I dont know how. Below is part of code that breaks on second line ( nfeat.Name = "_Lin "). Code works normally in VBA.
...
Imports XFT = Bentley.Interop.Xft
Dim nfeat As New XFT.feature nfeat.Name = "_Lin " nfeat.Geometry = oLine nfeat.SetProperty("Tip", "Bran") nfeat.ApplyAttributeChanges() nfeat.Write(True)
....
error:
at Bentley.Interop.Xft.IFeature.set_Name(String pVal)
Feature is created with code below but the properties are missing when analyzing feature with analyze feature tool. But properties are visible in data browser and edit feature tool.
Dim nfeat As XFT.feature = FMGR.CreateFeature(oLine)
nfeat.Name = "_Lin"
nfeat.SetProperty("Tip", "Bran")
nfeat.ApplyAttributeChanges()
nfeat.Write(True)