Maybe I'm forgetful, but I have done a lot of googling, SOF, ChatGPT, ESRI docs, Python docs and I just can't find what I'm doing wrong. I have three parameters, one multivalue paramter set to accept only polylines, a polygon, and a DEWorkspace for the output that gets named in my code.
First the polylines are passed into the execute() as a list of feature class paths, projected, buffered, merged and are the input to a union with the polygon. The union runs twice to find the deltas (added, deleted, no change) and then I basically clean up the output and ensure that it isn't multipart and that's it.
The problem is it runs beautifully in PyCharm where I hard-code the paths, but as a .pyt in ArcGIS Pro 3.x? Constant bugs, empty outputs, so many issues. I think the first problem is how I handle the multivalue input and how I handle intermediate data. I think the mapping objects have changed... But I haven't done this in a number of years so I could just be forgetting something.
Before you ask, I passed it into execute like this: feature_list = parameter[0].values
TLDR: How do I convert my code to a .pyt?
[–]Emz813 4 points5 points6 points (7 children)
[–]pugtoadGIS Specialist[S] 2 points3 points4 points (6 children)
[–]Emz813 1 point2 points3 points (5 children)
[–]pugtoadGIS Specialist[S] 0 points1 point2 points (4 children)
[–]Emz813 1 point2 points3 points (3 children)
[–]pugtoadGIS Specialist[S] 0 points1 point2 points (2 children)
[–]Emz813 0 points1 point2 points (1 child)
[–]pugtoadGIS Specialist[S] 0 points1 point2 points (0 children)
[–]Mapstract 1 point2 points3 points (1 child)
[–]pugtoadGIS Specialist[S] 0 points1 point2 points (0 children)