VBA or VB6

VBA or VB6

Anonymous
Not applicable
696 Views
9 Replies
Message 1 of 10

VBA or VB6

Anonymous
Not applicable
I want to use the VB editor in Autocad to write routine procedures and
subroutine procedures.

I have no programming experience.

Which training course am I best going on to learn what I need,
between,

VBA for Access 97 or,
Fundamentals of VB6.

Can you describe how VB6 relates to the Autocad Object model.

Thanks in Advance for the info

--
D.Dawson
0 Likes
697 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
"I want to use the VB editor in Autocad "... this is actually the VBA editor
you are talking about, right?

My guess would be that the fundamentals course would be better for you.

You'll probably have to invest in an autocad vba book for a better
understanding of autocad objects.

--
Kevin


"BDD" wrote in message
news:59CBB419EDD59D30B772DD3EE4A9FF4F@in.WebX.maYIadrTaRb...
> I want to use the VB editor in Autocad to write routine procedures and
> subroutine procedures.
>
> I have no programming experience.
>
> Which training course am I best going on to learn what I need,
> between,
>
> VBA for Access 97 or,
> Fundamentals of VB6.
>
> Can you describe how VB6 relates to the Autocad Object model.
>
> Thanks in Advance for the info
>
> --
> D.Dawson
>
>
>
0 Likes
Message 3 of 10

Anonymous
Not applicable
> "I want to use the VB editor in Autocad "... this is actually the VBA
editor
> you are talking about, right? YES

The problem is I cannot find any VBA courses specifically for AutoCAD.

Will I be able to create procedures for AutoCAD, if I learn Visual Basic and
then purchase a reference book on VBA or VB for AutoCAD?

I am assuming (please correct me if I am wrong) that the difference between
VB and VBA is that VB is based around the object model for a specific
application, whereas VB is the actual language, syntax, etc that is used in
VBA.

--

D.Dawson
0 Likes
Message 4 of 10

Anonymous
Not applicable
I can't remember ever seeing any autocad vba courses either, but I haven't
looked very hard. If you learn vb, you'll have no problem adapting to vba,
especially if you pick up a book or two on autocad vba. The differences
between vb & vba are subtle, mostly in how you access application objects.
In vba, you are inside an application already (example autocad or excel),
whereas vb you need to make references to applications before you can use
their objects. The forms object is where I've seen the most differences -
forms in vba use an entirely different object model than the ones in vb.
You're pretty much right on the money in your interpretation.

--
Kevin


"BDD" wrote in message
news:075E504C35B48B0F3D31849A05A4AB6F@in.WebX.maYIadrTaRb...
> > "I want to use the VB editor in Autocad "... this is actually the VBA
> editor
> > you are talking about, right? YES
>
> The problem is I cannot find any VBA courses specifically for AutoCAD.
>
> Will I be able to create procedures for AutoCAD, if I learn Visual Basic
and
> then purchase a reference book on VBA or VB for AutoCAD?
>
> I am assuming (please correct me if I am wrong) that the difference
between
> VB and VBA is that VB is based around the object model for a specific
> application, whereas VB is the actual language, syntax, etc that is used
in
> VBA.
>
> --
>
> D.Dawson
>
>
>
0 Likes
Message 5 of 10

Anonymous
Not applicable
In article <16CB6EEA957B19E33B3537D32EFBF8B0@in.WebX.maYIadrTaRb>,
kevint@jaypro.com says...
> I can't remember ever seeing any autocad vba courses either, but I haven't
> looked very hard.
Check www.imaginit-tech.com for AutoCAD VBA courses if we have an office
near you. We offer them in both public and private forums. Any specific
q's, email me directly.

Mike

ps. Sorry for the plug, but I couldn't pass on it:)

===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com
0 Likes
Message 6 of 10

Anonymous
Not applicable
Mike,
Were you at AU this year? I saw the big booth and looked for your
name...obviously I didn't see you 🙂
--
Bobby C. Jones
www.AcadX.com
0 Likes
Message 7 of 10

Anonymous
Not applicable
Hi,

The question "Should I be programming in VB or AutoCAD VBA" still remains
unanswered. I was wondering the same myself, with the extension of "should I
be programming in C++"?

Would I be correct in saying that if you are programming in AutoCAD only
then you are best to do it in AutoCAD VBA?

I am writing a program that uses both Excel and AutoCAD. I have elected to
write the program in AutoCAD VBA. In a situation like this would I not be
better off in VB?

What are the advantages and disadvantages of VB over VBA? Am I correct in
stating that you can compile a VB program? If so does it become a .exe and
if so how do you run it from AutoCAD (or don't I), or can you compile it
into some other form so that you can appload it into AutoCAD? I know that
you can access .DLL's from VBA, how do these tie in to VB or are they the
domain of C++? Can you compile VB procedures into DLL's and then access the
procedures using simple VBA methods?

I understand that .arx files are made using ObjectARX which I think is a
interface between C++ and AutoCAD. Could I be programming all my little
shortcuts and applications in C++ using ObjectARX? Or do you really need to
learn (and buy) all three?

I guess that it depends on what you want to do, I am just wondering where I
should be expending my energy. Please someone correct me if my
interpretations are incorrect.

Oops, I think that I have exceeded the maximum number of questions allowed
in one message.

Thanks

Sean Bartleet
0 Likes
Message 8 of 10

Anonymous
Not applicable
That's a lot of questions - I can't answer all of them for you,

> I am writing a program that uses both Excel and AutoCAD. I have elected to
> write the program in AutoCAD VBA. In a situation like this would I not be
> better off in VB?
You would be fine using VBA, I do this all the time.

> I understand that .arx files are made using ObjectARX which I think is a
> interface between C++ and AutoCAD. Could I be programming all my little
> shortcuts and applications in C++ using ObjectARX? Or do you really need
to
> learn (and buy) all three?
Using ARX, now you have to invest in visual studio, or at least C++

--
Kevin


"Sean Bartleet" wrote in message
news:743E3C4DF8C8382AB29FBBD384F970F3@in.WebX.maYIadrTaRb...
> Hi,
>
> The question "Should I be programming in VB or AutoCAD VBA" still remains
> unanswered. I was wondering the same myself, with the extension of "should
I
> be programming in C++"?
>
> Would I be correct in saying that if you are programming in AutoCAD only
> then you are best to do it in AutoCAD VBA?
>
> I am writing a program that uses both Excel and AutoCAD. I have elected to
> write the program in AutoCAD VBA. In a situation like this would I not be
> better off in VB?
>
> What are the advantages and disadvantages of VB over VBA? Am I correct in
> stating that you can compile a VB program? If so does it become a .exe and
> if so how do you run it from AutoCAD (or don't I), or can you compile it
> into some other form so that you can appload it into AutoCAD? I know that
> you can access .DLL's from VBA, how do these tie in to VB or are they the
> domain of C++? Can you compile VB procedures into DLL's and then access
the
> procedures using simple VBA methods?
>
> I understand that .arx files are made using ObjectARX which I think is a
> interface between C++ and AutoCAD. Could I be programming all my little
> shortcuts and applications in C++ using ObjectARX? Or do you really need
to
> learn (and buy) all three?
>
> I guess that it depends on what you want to do, I am just wondering where
I
> should be expending my energy. Please someone correct me if my
> interpretations are incorrect.
>
> Oops, I think that I have exceeded the maximum number of questions allowed
> in one message.
>
> Thanks
>
> Sean Bartleet
>
>
0 Likes
Message 9 of 10

Anonymous
Not applicable
"Autocad VBA Programming" by Bill Kramer and John Gibb (Cadence) may be a
place to start. It is not a general VB/VBA programming guide, but how to
use VBA inside of Acad. BTW, if you buy the book and the included CD will
not load, call Cadence and tell them you need the PC format, not Apple!

Tom Craft

BDD wrote:

> I want to use the VB editor in Autocad to write routine procedures and
> subroutine procedures.
>
> I have no programming experience.
>
> Which training course am I best going on to learn what I need,
> between,
>
> VBA for Access 97 or,
> Fundamentals of VB6.
>
> Can you describe how VB6 relates to the Autocad Object model.
>
> Thanks in Advance for the info
>
> --
> D.Dawson
0 Likes
Message 10 of 10

Anonymous
Not applicable
Hi Bobby,

Unfortunately, I was out on assignment. Will be there next year for
sure!

Have a great holiday,

Mike
===============================
Mike Tuersley
PhD @ CADalyst's AutoCAD Clinic
http://www.cadonline.com
0 Likes