I have been looking at the labs for 2 days and have a few things working, but I must say the lack of practical examples in the ACAD help is really making this difficult. I am not a programmer by trade and there is still a whole world in VB6 I still do not understand. I have been able to code quite a bit by using other source code as an example and modifying it as needed.
After an hour or so I finally had it working in design time by loading the dll in the bin folder and setting the 2 dlls res in the ACAD dir to false. About an hour or so later I had the active document. After that it has been a stand still. I have tried a bunch of example code snippets and can never seem to get where I want.
In vb6 if I wanted to parse through every entity in modelspace I would:
Dim ent as acadentity
Dim thisdrawing as acaddocument
Set thsidrawing as acadactivedocument
for each ent in thissdrawing.modlespace
If ent.objectname = "AcDb3dSolid then
msgbox "I have a solid"
next
In vb.net I have gotten modelspace though the db, blah blah, from example code, but how to iterate through and look for what I want, I have no idea. I have even passed out the ids of the objects selected to a message box, but still cannot find a objectfromobjectid or objectfromhandleid method.
This is just one of about100 typical things that I would expect to have available in the help file.
Instead, it points you to the password protected ADN site of which I refuse to enroll in due to the nature of the licence agreement. The cost is not an issue at all.
Is anyone here game for creating a library of functions and methods for public use?
I am thinking about taking a day or two and creating 50 or so typical VB6 pieces of code that do things like set an object color, layer, linetype, etc., add layers, get the coords of pline, work with multiple documents and on and on and then sending it off to a programming company, each as its own project not to load down too much in each area, and have them convert it to vb.net.
What do you guys think?