Last year I wrote a tool which among other things exports junction and pipe data to shapefiles using the ShapeFileDataSourceWriter method. This worked fine in previous versions but using the Haestad.Shapefile.dll included in the latest version of WaterGEMS (10.03.03.72) this function throws an exception: "An unhandled exception of type 'System.EntryPointNotFoundException' occurred in Haestad.Shapefile.dll. Additional information: Unable to find an entry point named 'code4initVB' in DLL 'c4dll.dll'.
I'm using Visual Studio 2015 to debug/compile the code.
Question on hold for now, it appears our company antivirus/firewall/applicationcontrol package is blocking c4dll.dll from being executed/called.
Thanks, Joeri. Our developers also suggested that this is related to a build environment issue.
As a side note, is there a reason why you need a WO.NET tool to accomplish this? Model elements can be easily exported to SHP from the Flextables as described in this article: Exporting model elements to shapefiles
Regards,
Jesse DringoliTechnical Support Manager, OpenFlowsBentley Communities Site AdministratorBentley Systems, Inc.
The tool is designed to execute an entire workflow that would normally (manually) take about 30 to 45 minutes. The tool does this in about 2 minutes. At the end of the workflow, the results have to be exported as a shapefile so the data can to be appended to a filegeodatabase. Because this export is always needed, it made sense to automate this as well.
Ok, thanks for the details. Please let us know if you are able to get the tool working after adding an exception to your security software.
Hi Joeri,
ESRI has a file-geodatabase api that you may find interesting.
Rob.