I would like to add a specific table or shape file to my TOC via the ArcMap python window from the SDE connection I'm currently connected to. Since I'm already connected to the SDE connection in ArcMap I'm assuming I don't have to restate the user name and password in the python script right? How would I going about doing this?
1 Answer
Welcome to the site! You should check out the faq for info on how to best get your questions answered. Searching for keywords related to your question before asking might point you to the answer you're looking for.
On to your question:
If you set your workspace to your SDE connection file you can access features within. This post covers the process well.
-
@user12325, can I ask you how did you solve? I was not able to find any answer to your question.. thanks.Annalisa Minelli– Annalisa Minelli2013-03-01 16:22:38 +00:00Commented Mar 1, 2013 at 16:22
-
@AnnalisaMinelli the feedback provided by mdenedetti helped me save my issue, pretty much just make a connection to your data source and then connect to the table or layer of interest.lemuel– lemuel2013-03-25 18:38:00 +00:00Commented Mar 25, 2013 at 18:38