I would like to let users upload DGN/DWG file to GPService and return the view of CAD features in result map service.
My script worked as expected in ArcMap + ArcGIS Server: DGN/DWG was the file input (upload enable), and Feature Dataset was output, which was picked by result map service and showed all feature classes in it.
But in ArcGIS Pro Feature dataset is no supported output parameter. And for result map service in ArcGIS Pro it is not possible to use multivalue output - Feature Class output with multivalue is not supported.
Every DGN/DWG can have different numbers of layers (Annotation, Points, Polygon, Polylines) so it is not possible to fix the script to the exact number of them.
Thank you for your suggestions.
Hi, yes, we solve it with custom ExB widget and GP service like so:
- GP Service grabs/uploads a DWG file and converts it to SHP, to a prepared folder on the server disk, with custom unique name - for all layers in DWG. GP Service returns the array of all created unique names.
- There is a dynamic map service on the server, with Dynamic Layers enabled, and SHP workspace registered in the same directory where GP service created SHPs
- Custom ExB widget takes unique SHP names, SHP workspace ID and asks dynamic service for a map from this layers. Symbology of the layers is set in widget part.
This way you can get data from CAD to web application. If you find something easier, I would appreciate it.
Hi @ZdeněkJankovský I also want to do same task to upload the DWG/DXF/DGN files on server and pass the file name as input into geoprocessing service and want to write geoprocessing services to handle the input and share the output as geojson format ...returned features will be displayed on map. Also want to test this solution with different formats of DWG/DXF/DGN to check the compatibility. Pls share some steps in this regard.