vb(not VBA) and blocks

vb(not VBA) and blocks

Anonymous
Not applicable
379 Views
4 Replies
Message 1 of 5

vb(not VBA) and blocks

Anonymous
Not applicable
Hi, i need some help getting started with vb development for autocad 2007.
First I am fairly confused about objectARX, VB.net etc, but i think i understand it enough to know that I can use vb to write code that i can load with the NETLOAD command from AutoCAD and execute it providing the commands i defined. so far so good.
Problem is that I am now trying to access/retrieve the list of all blocks that are defined in a drawing and I can't figure out how.

this is how i open the file:

Dim file as autodesk,autocad.applicationservices.document
file = application.documentmanager.open("myfile.dwg",false)

now that i have that file open i need to figure out how to get the blocks, find the one i am looking for (title block) and insert a new title block with the same name as the existing one so that i can redefine it.

any help will be appreciated, since the api docs are not offering a lot of help at this point since they don't show any examples.

thank you
0 Likes
380 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Hi,

There is a newsgroup concentrating on .NET programming.

You are more likely to find help for VB.NET in that newsgroup than this one.


--

Laurie Comerford

wrote in message news:5790982@discussion.autodesk.com...
Hi, i need some help getting started with vb development for autocad 2007.
First I am fairly confused about objectARX, VB.net etc, but i think i
understand it enough to know that I can use vb to write code that i can load
with the NETLOAD command from AutoCAD and execute it providing the commands
i defined. so far so good.
Problem is that I am now trying to access/retrieve the list of all blocks
that are defined in a drawing and I can't figure out how.

this is how i open the file:

Dim file as autodesk,autocad.applicationservices.document
file = application.documentmanager.open("myfile.dwg",false)

now that i have that file open i need to figure out how to get the blocks,
find the one i am looking for (title block) and insert a new title block
with the same name as the existing one so that i can redefine it.

any help will be appreciated, since the api docs are not offering a lot of
help at this point since they don't show any examples.

thank you
0 Likes
Message 3 of 5

Anonymous
Not applicable
could you send me the link as i am not able to find it. thanks
0 Likes
Message 4 of 5

Anonymous
Not applicable
never mind. just saw it. thanx
0 Likes
Message 5 of 5

Anonymous
Not applicable
autodesk.autocad.customization.dotnet


"ronin2307" wrote in message news:5791119@discussion.autodesk.com...
could you send me the link as i am not able to find it. thanks
0 Likes