Reading and Writing from VB2010 to AutoCAD 2010/11 LT text Attribute Field

Reading and Writing from VB2010 to AutoCAD 2010/11 LT text Attribute Field

Anonymous
Not applicable
454 Views
3 Replies
Message 1 of 4

Reading and Writing from VB2010 to AutoCAD 2010/11 LT text Attribute Field

Anonymous
Not applicable

Hi there,

 

I am looking to first write from a VIsual Basic 2010 Express form to my AutoCAD drawing. I have set up some attributes to act as border information.

 

I have had a look at various posts on this site and others and I'm getting quite confused to be honest, so if you could bear with me please.

 

As with Microsoft Office products I see you need to reference in some files and then import them at the top of the code.

 

I would be grateful to anyone who could tell me which files or COM reference to add in to my project, and then also the exact text I need to write as my import.

 

I have tried:

Imports Autodesk.AutoCAD.Interop

 But I'm not sure if this is correct.

 

And now I just don't really know where to start with the coding. So if anyone can point me to some example or even post some code it would be much appreciated.

 

Thanks in advance,

 

 

squat

0 Likes
455 Views
3 Replies
Replies (3)
Message 2 of 4

norman.yuan
Mentor
Mentor

If your target is AutoCAD LT, then you can forget about writing program to control it dto do something. AutoCAD LT does not support/expose API to be programmed,

 

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

norman, thanks for your response.

 

I have a full copy of AutoCAD 2011 on the machine i'm writing the program. Is it possible to create the program here, and it jsut work on the others..?

 

Or can I copy across some DLL files... or install the ObjectARX SDK on the other machines...

 

I apologise if this still doesn't meet the requirement, but thought it was worth asking.

 

Thanks.

0 Likes
Message 4 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I am looking to first write from a VIsual Basic 2010 Express form to my AutoCAD drawing

Look at these >>>8 lessons<<< for the first steps working with vb.net (also Express-version) and AutoCAD.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes