TheSwamp
Code Red => VB(A) => Topic started by: solo on September 13, 2007, 12:51:38 PM
-
Hi everyone,
I have created a VBA procedure that does 'stuff' in Acad2000 just fine. The problem is that it doesn't do 'stuff' when executed in Acad2007 Mechanical. Does anyone know why this might be? Should the code execute exactly the same between versions? I can't debug the code with Acad2007 Mech because i don't have it. I wrote the code in Acad2000 and am distributing it remotely to a client who is using Acad2007 Mech.
The code analyzes polyline info. I know in Acad2000 the .objectname is 'AcDbPolyline' and in Acad2007 Mech it is 'AcDb2dPolyline'. Even if i account for this difference the code still does not do 'stuff'.
Any help will be greatly appreciated.
Thanks,
solo
-
I'm not surprised it doesn't work. 2000 to Mechanical 2007 is a BIG jump and quite a bit has changed.
-
Thanks Matt.
That's kind of what i was thinking. So i guess i have to keep up to date with Acad and create code that checks the version and responds accordingly. Seems like a pain in the butt.
Thanks again for the help,
Solo
-
It may be the type libraries are not being updated.
If you write code in 2000, and reference the AutoCAD 2000 type library, it might be looking for the AutoCAD 200o type library and not updating to the correct one. i.e. AutoCAD 2007.
I can check the code on AutoCAD 2007 if you like, but you will need to pm me for an email address to send it to.
-
Acad2000 the .objectname is 'AcDbPolyline' and in Acad2007 Mech it is 'AcDb2dPolyline'
no it's still 'AcDbPolyline'
ditto what Keith said.