gaglianobt

Adding Geodatabase Feature to Group Layer using VB (ArcGIS 9.3)

Discussion created by gaglianobt on Mar 8, 2013
I am trying to load data from a Geodatabase using UIButton Control, which I have set up.  I am having trouble because it places the layers at the top of the table of contents and not in the empty group layer I need it to.  I am able to do this with layer files using the lines below:
Dim pMxDoc As IMxDocument
Set pMxDoc = Application.Document

Dim pGroupLayer As IGroupLayer
Set pGroupLayer = GetLayerByName(pMxDoc, "D1 Layers")

How can I accomplish this for a Geodatabase?

Thanks,
Brad Gagliano

Outcomes