Originally Posted by
newfoundfreedom
I dont even really know where to start....
Not sure how familiar you are with loading .NET Assemblies, so I thought I'd share some info to help along the way....
First, download the .ZIP file from my previous post, or click here (to download by direct link).
Next, you will want to Right Click the .ZIP you just downloaded, and select Properties. Hit the "Unblock" button (Windows 7), and then hit Ok.
Extract the .ZIP file, and move or copy the resultant .DLL to a directory on your PC that resides within your Support File Search Paths (SFSP).
... There are many ways to do this next part, so feel free to deviate as you see fit. It is important to note that .NET assemblies can only be loaded once per session; subsequent NETLOADs have no affect. It doesn't hurt anything (AFAIK), but it is not of any value.
To simply test the .DLL you've just placed within SFSP, start a new session of AutoCAD, and use the NETLOAD command to load the .NET assembly, and test the newly added vla-Get-ViewAnnoScale LispFunction Method.
If you choose to incorporate this .NET assembly into your deployment, and would like it to be loaded each time you open AutoCAD, simply add this to your Acad.lsp file (presuming that you have write-access to this file):
Code:
(foreach dll '("vla-Get-ViewAnnoScale.dll"
;; <- other net assemblies here
)
(if (findfile dll)
(progn
(terpri)
(command "netload" dll))))
... So long as the .DLL file resides within SFSP, it will be loaded each time AutoCAD starts. There are other ways of accomplishing this, via the Registry, or via my Netload LispFunction Method for example, but that is not always necessary.
** Edit - You can load .NET assemblies that are stored on a network location, but that is not always recommended, and requires some modification to acad.exe.Config, and .NET 4.0 framework AFAIK.
HTH