Thanks for this Jeff - I'll test it out later today
Only did a quick test but seems to work like a dream...
Was it an onerous task to update the code??
Great, glad it worked. I hate posting things I have't tested myself but I was pretty sure thise should work ok.
It wasn't too much trouble to update. I'll post the new VS2010 C# project later on for anyone wanting to see what is different.
Gave up on porting the vba code to vb.net as not enough hours in the day. Anyway I just updated my home laptop to 2013 and tried to load the C# assembly and got the attached error not sure what the issue is as loading from c drive. But first tried to loading from another drive maybe a restart and reload will get it working for me. Will try again tomorrow night.
>> and got the attached error
In that case you can modify the file acad.exe.config (placed in the installation folder) and modify it / add the orange marked line:
<configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> <!--All assemblies in AutoCAD are fully trusted so there's no point generating publisher evidence--> <runtime> <loadFromRemoteSources enabled="true"/> <generatePublisherEvidence enabled="false"/> </runtime> </configuration>
That's valid for all Framework 4 based applications.
- alfred -
Just playing around with the .dll build for 2013 and have found that if you do the WorkingPlane2point routine first and then do it again the code crashes out.
Jeff any chance you can post the 2013 project code or have a look into it.
I shall do both in the morning (just now midnight here). I never have tested this myself in 2013, other than making sure it ran.