I can't seem to access anything map related!The same scripts work perfectly in the Python window in ArcMap (an example below), but run as a py script = nothing.Code:import arcpyimport ctypesmxd = arcpy.mapping.MapDocument("CURRENT")nam = mxd.activeDataFrame.namectypes.windll.user32.MessageBoxA(0, nam, "Dialog Title", 1)Are there any limitations or approaches I should be aware of?
Hi Bjorn,Sadly that makes sense - I thought I was perhaps asking too much of it. Would you be able to point me in the right direction on what information I need to pass in about the environment to a script? I'm assuming I need to pass this information as parameters.Most (but not all) of our data is contained in an MPK file loaded into the application - could I somehow point the script to the same MPK file?Thanks for your help.Gary
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.