Problem calling Data management Tools.tbx

812
2
05-07-2014 07:21 AM
MarcoRosa
New Contributor
Hi to all,
i have developed a python script who make this call

arcpy.AddToolbox("C:\\Program Files (x86)\\ArcGIS\\Engine10.2\\ArcToolbox\\Toolboxes\\Data Management Tools.tbx")

I have created then a ToolBox with this script. I have to call this toolbox from a Product developed with C# and ArcGIS Engine single use (no extensions) ver. 10.2.1
This product have toc , map control and toolbar AddData button

The toolbox works without problem but when, after running toolbox, i press the AddData Button the system crash and i have an error , see the attached image.

The toolbox works good for example in arcmap ( arcview version 😞 it can be a license problem adding Data Management Tools.tbx with ArcGIS Engine ?

Any suggestion to give me ?

Thank you

GP
Tags (2)
0 Kudos
2 Replies
curtvprice
MVP Esteemed Contributor
You should not have to add ArcGIS system toolboxes with AddToolbox, system tools should just be available as ...

arcpy.management.Clip()

or

arcpy.Clip_management()

That said, I don't think the toolbox call is the source of your problem.  It sure looks like something about how your forms and events are handled in your app.
0 Kudos
MarcoRosa
New Contributor
Hi Prince , you're right .... i rem the line code and works good .... thank you very much.
Giorgio
0 Kudos