Hoppa till huvudinnehållet

calling external program or script from within a form /workflow

Kommentarer

3 kommentarer

  • Tom Neer
    You can call external VB and C# scripts in a workflow, which would act as a proxy to a Python script. It would be easier to publish a geoprocessor that does the same thing. Geoprocessors work on both spatial and non-spatial datasets. 

     

    However, if you are just formatting a date, why not just use format() or custom routine within a Workflow? 
    0
  • Permanently deleted user

    We're not sure how you mean to do this.

     

    To amplfiy my problem: My routine takes a date and returns a two other dates that are nonlinearly related.  I want to add a form to my workflow that collects a date selection and consumes the resulting calculated values.

    I'm visualizing this much like visualBasic formdesigner where you assign a function to a widget and can pass the value to another widget or to the control program. Can I use a geoprocess like this?

    0
  • Tom Neer
    Below is a simple python script that can be published as a GeoProcessor. It takes a string and reverses it. You can modify and publish your python script similarly. import arcpy # Get the input string from the Geoprocessor in_string = arcpy.GetParameter(0) # Reverse the string out_string = in_string[::-1] # Return the output string to the Geoprocessor arcpy.SetParameter(1, out_string)
    0

Du måste logga in om du vill lämna en kommentar.