0

I would like to execute the Curves And Lines add in from my Python script.

Is there any interface for working with add-in inside of a Python script?

  • 2
    It sounds like you want to use tools from the add-in inside your own script, rather than the entire add-in, is that correct? If you run each tool manually you should be able to get a Python Snippet from the geoprocessing history and use those as a basis for calling each tool from within your script. – Midavalo Nov 1 '18 at 21:52
  • Yes that is exactly what I want to do. I will try that when I'm back in the office. – Squanchy Nov 2 '18 at 14:29
3

You do not say where you wish to run your Python script but, in any event, since Python AddIns only work from within ArcMap I think the approach you should take is to absorb the code from that addin into your own addin.

From the help for the pythonaddins module:

The pythonaddins module can only be used within a Python add-in. It cannot be used in stand-alone scripts or geoprocessing script tools.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.