AnsweredAssumed Answered

IWorkspaceFactory, IWorkspace  how to open feature class?

Question asked by jsn on Aug 17, 2018
Latest reply on Aug 20, 2018 by jsn

Hello everyone,


I  am currently opening an SDE feature class  using "OpenFeatureClassFromString"

pathOutput = "C:\\SDEConnections\\EditingDatabase.sde\\FeatureDataset\\FeatureClass"

Dim pFeatureClass As IFeatureClass

pFeatureClass = gputilities.OpenFeatureClassFromString(pathOutput)



I would like to open a IWorkspaceFactory and a IWorkSpace and then open the feature class from the workspace.


Dim WorkspaceFactory As IWorkspaceFactory = New WorkspaceFactory()

Dim Workspace As IWorkspace = WorkspaceFactory.OpenFromFile(pathWorkspaceOutput, 0)