开发者

ArcObjects: Why is my StandaloneTableCount 0? (IStandaloneTableCollection)

开发者 https://www.devze.com 2022-12-31 12:42 出处:网络
When I do: IStandaloneTableCollection collection = (IStandaloneTableCollection)MxDoc.FocusMap Then collection.StandaloneTableCount returns 0.

When I do:

IStandaloneTableCollection collection = (IStandaloneTableCollection)MxDoc.FocusMap

Then collection.StandaloneTableCount returns 0.

I have created the new table via ArcCatalog and registered i开发者_C百科t as versioned. What am I missing?


OK, what I was missing was that the newly created table also needs to be added into the workspace for it to be available on the FocusMap. So easy, yet no search yielded any help. So I hope this helps some other ArcObjects newbies out into the future. :)

0

精彩评论

暂无评论...
验证码 换一张
取 消