Accessing current workspace using an ArcObjects add-in for ArcMap

Discussion created by livingpj on Jul 31, 2011
Latest reply on Dec 13, 2019 by lpeckman
I am trying to create a point feature in ArcObjects for an ArcMap add-in in c#. To do this I need to get the feature class. To get the feature class I need to know the current workspace.

How do I find the current workspace opened from ArcMap from within the dockable window c# code?

Any help would be appreciated.