So I started Autodesk tutorial "My First Plugin" - http://usa.autodesk.com/adsk/servlet...12&id=18162797
I entered and compiled the code as directed. Upon loading it in AutoCAD I get the following error:
"Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///P:\Projects\KeepAttributesHorizontal\KeepAttributesHorizontal\bin\Release\KeepAttributesHorizontal.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///P:\Projects\KeepAttributesHorizontal\KeepAttributesHorizontal\bin\Release\KeepAttributesHorizontal.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()
So, in case I just typed something wrong, I copied and pasted the code from the tutorial and recompiled it. Same error.
My system specs are as follows:
MS Windows 7 64-bit SP1
AutoCAD 2013 64-bit
Any suggestions?