VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

new 3D autocad 2007 properties

3 REPLIES 3
Reply
Message 1 of 4
smangelschots
342 Views, 3 Replies

new 3D autocad 2007 properties

hi

I got the new AutoCAD 2007 It looks great
But is there someone who can tell me how to get the geometric properties from a 3D box with the use of vba?

And why is it when you add a box in vba you and up getting a box with no geometric properties and no pulls?

Thanks

steve
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: smangelschots

Check out the BREP sample included with
the ARX sdk. The only way to to get the
data you need in vba is to explode the solid,
which you cannot do in vba. You can hack
around this but it's ugly.

Why autodesk will not provide this info to
all apis escapes me also.

--
gl - Paul
wrote in message news:5135120@discussion.autodesk.com...
hi

I got the new AutoCAD 2007 It looks great
But is there someone who can tell me how to get the geometric properties
from a 3D box with the use of vba?

And why is it when you add a box in vba you and up getting a box with no
geometric properties and no pulls?

Thanks

steve
Message 3 of 4

Hi Paul

Thanks for the help
I'd like to go deeper in programming AutoCAD you seem to no more about it.

I'm not sure what road to follow vba, vb.net or C++ can you help me in making this decision?


Thanks
Steve
Message 4 of 4
Anonymous
in reply to: smangelschots

Steve,

I headed down the VBA road from LISP a while back. Looking

back I should have gone with C++ and ARX, but needed to get

up and running fast and for me that meant VBA.



If you're C++ inclined go with native ARX for what you need, but it's

it not a simple matter of a month of power coding and you're up

and running. I've been at it over a year and still a novice at best, but

that's just me. For resources I bought the books "Object ARX Primer"

by Bill Kramer, "Programming AutoCAD2000 Using ObjectARX" by

Charles McAuley. I also got Ransen's ObjectARX Course which is

a video tutorial, I prefer the books. Once you get going it's not as bad

as it first seems, you just need to get over all the scary big names..:)

Start reading all the posts current and past in the ARX group and you'll

learn lots. Do not try use them as a C++ learning resource, there are

many other groups for that. Note - this is avialible for all versions of

AutoCAD, but is version dependent. You need the right compiler for

the version of AutoCad you're coding aganist.



Lastly is ARX dotnet has been available since 2005, which I did not use but

have read it was not very complete then. There is a pdf which will get you

up and running (much quicker than native ARX IMO but I'm a bit thick

at times) available on the dotNet group. I do not know what access to

Solid data is available and have not tired. Lot of brains over at both of
those

groups who willingly help those who help themselves..ie learn the language

before jumping into the API. I started backwards and quickly got slapped

back down to learning dotnet before I jumped back in, as I should have. This

language is not compiler version dependent. Notepad works fine if you don't

have any need for your sanity. You can use the Express versions available
from

MS to get started.



The gap is closing between between native and managed ARX but the pros

seem to say that native is still the way to go for full power and speed. As
for your

needs, it depends on the complexity of the app you're witting? I would

go to each of these groups and start reading. The native ARX group will keep
you

reading for a looooog time...The managed ARX group(dotnet) is newer so

there is not nearly the threads available.



Maybe the the experts will chime in. Good luck and be tenacious! It's just
code


--
gl - Paul
wrote in message news:5136316@discussion.autodesk.com...
Hi Paul

Thanks for the help
I'd like to go deeper in programming AutoCAD you seem to no more about it.

I'm not sure what road to follow vba, vb.net or C++ can you help me in
making this decision?


Thanks
Steve

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost