AutoCAD® Civil 3D® Survey Fix 2013 Update

William Forty
William Forty

Hello everyone!

I know that many of you have been eagerly (and patiently) awaiting an updated version of my survey fix tool. Sorry it took so long, but here it is! :-)

AutoCAD® 2013 has moved on to the .NET framework 4.0, which means this project needed to be recompiled under the new framework. Autodesk have also spent some time re-engineering their products, and have spread many of the required references to a new file. This means that when developing you'll be mainly juggling references to the files AcMgd.dll, AcDbMgd.dll, and now the new file AcCoreMgd.dll, which I have had to make reference to in this project.

Here's the new version of the survey fix:

AutoCAD_Project_SurveyFix_2013

Don't forget the command is cunningly named "SURVEYFIX", so just pop that into the command line to run the tool.

If you want a more detailed explanation of this tool, read my previous article which introduces it to you.

These things have a tendency to need the odd crease ironed out, so if you have any problems let me know, and I'll see what I can do.

That's all for now,

Will

P.S., as always I'd like to encourage you to subscribe if you haven't already. And if you're feeling particularly helpful, tell a friend about my website... I'm determined to break 500 subscribers before the year is out! :-)


Comments

neil jones
2012-10-09 06:57:15

Thanks for the update for this Will, it's very useful..

Paul Chance
2013-01-23 12:45:39

I used to use this tool in the 2012 version of Civils 3D and it was great. Using your new tool for 2013 I can't seem to get it to load as have the following message:

'Command: NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files (x86)\Autodesk\AutoCAD_Project_SurveyFix_2013\AutoCAD_Project_SurveyFix.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Program Files (x86)\Autodesk\AutoCAD_Project_SurveyFix_2013\AutoCAD_Project_SurveyFix.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly.\_nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Autodesk.AutoCAD®.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()

What is strange is that I have saved the file on my C:\ Is there a problem with the tool or am I doing something wrong?

Thanks

Owen
2013-02-06 16:24:03

I'm sorry Will, but I'm using Civil 3D® 2013 and AutoCAD_Project_SurveyFix.dll isn't loading. No error message or any response when I use netload, but then I get "Unknown command SURVEYFIX" when I try to run it.

I used to use your old version using VBA, which has saved me on many occasions, but am struggling with this upgrade.

Owen
2013-02-06 17:07:45

Ignore my last comment! I fixed it, I had to install the .NET framework 4.0 seperately, which was not obvious but now your tool works brilliantly. I look forward to using the improved interface, and would like to take this opertunity to say that in my opinion this tool is one of the most powerful tools I've ever come across. Well done.

Will
2013-02-12 12:59:41

No problem, I should probably make that clearer on the post...

Dieter
2013-09-11 08:58:45

Hey Will, thanks for the update and the work you put in. It's a great tool and helped me many times. All the best from Germany

Gary
2014-02-10 12:10:12

I have either same of higher version of .net framework 4 and still can't load the surveyfix tool. Any help would be much appreciated.

Gary
2014-02-10 12:12:37

I have .net framework 4 (or higher) installed and still can't load the surveyfix tool. Any ideas would be much appreciated.

Harold
2014-04-16 13:14:11

Hi Will

Thanks for this update.

A colleague has downloaded this update for Civil 3D® 2013 but wouldn't work. He's got .NET Framework 4.5.1 installed.

It does however work on C3D 2011 on the same machine.

Any advice on this.

TIA

Chris Dolecki
2015-06-01 10:57:08

Hi Will,

We are having some problems trying to get the 2013 survey fix to work. We think the issue is to do with sandboxing - see error message output from AutoCAD® Civils 3D 2013 (UKIE):

Command: NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files\Autodesk\AutoCAD® Civil 3D® 2013\AutoCAD_Project_SurveyFix.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Program Files\Autodesk\AutoCAD® Civil 3D® 2013\AutoCAD_Project_SurveyFix.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly.\_nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Autodesk.AutoCAD®.Runtime.ExtensionLoader.Load(String fileName)
at loadmgd()

Your advice on how to resolve this issue would be much appreciated.

Kind regards,

Chris