Compile VBA?

Compile VBA?

Anonymous
Not applicable
1,081 Views
8 Replies
Message 1 of 9

Compile VBA?

Anonymous
Not applicable
Does anyone know why there is an option to compile an Autocad project. It actually acts like its doing something when you click on the button in the IDE. It greys out as if it did something. I can't find any references to this. VBA is macro oriented and not compileable to an EXE format - so what's it for? Is it for attaching references for distribution?

Any help would be appreciated!

Marc
0 Likes
1,082 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Hi Marc,

It's quite simple - you can't in any VBA environment.

You can transfer the code to VB 6, change the API references as shown in the
help files and then compile from there.


--
Regards

Laurie
CADApps
www.cadapps.com.au


"mrhan" wrote in message
news:f0908d7.-1@WebX.maYIadrTaRb...
Does anyone know why there is an option to compile an Autocad project. It
actually acts like its doing something when you click on the button in the
IDE. It greys out as if it did something. I can't find any references to
this. VBA is macro oriented and not compileable to an EXE format - so what's
it for? Is it for attaching references for distribution?
Any help would be appreciated!
Marc
0 Likes
Message 3 of 9

Anonymous
Not applicable
I do, I do!

 

It's because you have the Office Developer Tools
installed on your machine.

With these tools in AutoCAD 2000i and 2002 you can
create an ActiveX DLL

file, not a complete
.EXE however. But, an ActiveX DLL will get you a long way.

Especially if you are considering using Visual
LISP.

 

Joe


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Does
anyone know why there is an option to compile an Autocad project. It actually
acts like its doing something when you click on the button in the IDE. It
greys out as if it did something. I can't find any references to this. VBA is
macro oriented and not compileable to an EXE format - so what's it for? Is it
for attaching references for distribution?

Any help would be appreciated!

Marc

0 Likes
Message 4 of 9

Anonymous
Not applicable
On Mon, 29 Oct 2001 14:08:40 -0800, mrhan wrote:

» Does anyone know why there is an option to compile an Autocad project.
» It actually acts like its doing something when you click on the button
» in the IDE. It greys out as if it did something. I can't find any
» references to this. VBA is macro oriented and not compileable to an
» EXE format - so what's it for? Is it for attaching references for
» distribution?

Any help would be appreciated!

Marc

It 'compiles' your code in memory, just as would happen when the
code is run (provided that "Compile On Demand" is not checked),
without actually running it. It's basically just to check for
compile-time errors. Any further editing of the code should
cause the menu entry to become available again.


--
Paul Marshall
pmarshal@vulcraft-al.com

0 Likes
Message 5 of 9

Anonymous
Not applicable
Ok, I'm hooked, reel me in. How do you compile a dll from vba with the
office developer tools installed? Do I have to have a ref checked? How
come it doesn't spit an error message or ask for a location to save to,
but blazes through the progress bar and disables the option on the
pulldown? How? How? How?
:) Josh

Joe Sutphin wrote:

> I do, I do!
>
>
>
> It's because you have the Office Developer Tools installed on your machine.
>
> With these tools in AutoCAD 2000i and 2002 you can create an ActiveX DLL
>
> file, not a complete .EXE however. But, an ActiveX DLL will get you a
> long way.
>
> Especially if you are considering using Visual LISP.
>
>
>
> Joe
>
> "mrhan" > wrote in
> message news:f0908d7.-1@WebX.maYIadrTaRb...
>
> Does anyone know why there is an option to compile an Autocad
> project. It actually acts like its doing something when you click on
> the button in the IDE. It greys out as if it did something. I can't
> find any references to this. VBA is macro oriented and not
> compileable to an EXE format - so what's it for? Is it for attaching
> references for distribution?
>
> Any help would be appreciated!
>
> Marc
>
0 Likes
Message 6 of 9

Anonymous
Not applicable
Josh,

If you have the necessary components then goto
File|New Project

You should get a dialog box with two options
1. Empty Project
2. Add-In Project

Choose the Add-In project.

If you don't get these options then there could be
a couple of explanations for this. The obvious one
being you don't have the Developer tools installed
or the second. On my machine running Win2K and
AC2K there seems to be a strange thing happening.
With .Net installed it does not seem to recognize the
tools [even after reinstalling Office and trying to install
Developer]. So, there seems to be a bug there.

I do, however, have AC2K installed another machine
without .Net installed and it works just fine.

NOTE: these features will only be available in 2000i
and 2002.

Joe

"Minkwitz Design" wrote in message
news:3BDECA6F.70209@ameritech.net...
> Ok, I'm hooked, reel me in. How do you compile a dll from vba with the
> office developer tools installed? Do I have to have a ref checked? How
> come it doesn't spit an error message or ask for a location to save to,
> but blazes through the progress bar and disables the option on the
> pulldown? How? How? How?
> 🙂 Josh
>
> Joe Sutphin wrote:
>
> > I do, I do!
> >
> >
> >
> > It's because you have the Office Developer Tools installed on your
machine.
> >
> > With these tools in AutoCAD 2000i and 2002 you can create an ActiveX DLL
> >
> > file, not a complete .EXE however. But, an ActiveX DLL will get you a
> > long way.
> >
> > Especially if you are considering using Visual LISP.
> >
> >
> >
> > Joe
> >
> > "mrhan" > wrote in
> > message news:f0908d7.-1@WebX.maYIadrTaRb...
> >
> > Does anyone know why there is an option to compile an Autocad
> > project. It actually acts like its doing something when you click on
> > the button in the IDE. It greys out as if it did something. I can't
> > find any references to this. VBA is macro oriented and not
> > compileable to an EXE format - so what's it for? Is it for attaching
> > references for distribution?
> >
> > Any help would be appreciated!
> >
> > Marc
> >
>
0 Likes
Message 7 of 9

Anonymous
Not applicable
Hi Joe,
I don't get this dialogue from vba's ide and I'm running 2000i on nt4
with vis studio 6 pro installed as well as office 2000 pro. In addition,
the add-ins dialogue is empty. Hmmmmmm,,, no developer tools. After a
little research on line, I've come up with a host of references to
"office developer tools" and "office developer", but the only downloads
I see are add-ins for hebrew, ect. and I can't seem to find anything on
the office or studio disks. Is this an add-in from another package?
Where can I find them?
-Josh

Joe Sutphin wrote:

> Josh,
>
> If you have the necessary components then goto
> File|New Project
>
> You should get a dialog box with two options
> 1. Empty Project
> 2. Add-In Project
>
> Choose the Add-In project.
>
> If you don't get these options then there could be
> a couple of explanations for this. The obvious one
> being you don't have the Developer tools installed
> or the second. On my machine running Win2K and
> AC2K there seems to be a strange thing happening.
> With .Net installed it does not seem to recognize the
> tools [even after reinstalling Office and trying to install
> Developer]. So, there seems to be a bug there.
>
> I do, however, have AC2K installed another machine
> without .Net installed and it works just fine.
>
> NOTE: these features will only be available in 2000i
> and 2002.
>
> Joe
>
> "Minkwitz Design" wrote in message
> news:3BDECA6F.70209@ameritech.net...
>
>>Ok, I'm hooked, reel me in. How do you compile a dll from vba with the
>>office developer tools installed? Do I have to have a ref checked? How
>>come it doesn't spit an error message or ask for a location to save to,
>>but blazes through the progress bar and disables the option on the
>>pulldown? How? How? How?
>>:) Josh
>>
>>Joe Sutphin wrote:
>>
>>
>>>I do, I do!
>>>
>>>
>>>
>>>It's because you have the Office Developer Tools installed on your
>>>
> machine.
>
>>>With these tools in AutoCAD 2000i and 2002 you can create an ActiveX DLL
>>>
>>>file, not a complete .EXE however. But, an ActiveX DLL will get you a
>>>long way.
>>>
>>>Especially if you are considering using Visual LISP.
>>>
>>>
>>>
>>>Joe
>>>
>>> "mrhan" > wrote in
>>> message news:f0908d7.-1@WebX.maYIadrTaRb...
>>>
>>> Does anyone know why there is an option to compile an Autocad
>>> project. It actually acts like its doing something when you click on
>>> the button in the IDE. It greys out as if it did something. I can't
>>> find any references to this. VBA is macro oriented and not
>>> compileable to an EXE format - so what's it for? Is it for attaching
>>> references for distribution?
>>>
>>> Any help would be appreciated!
>>>
>>> Marc
>>>
>>>
>
>
0 Likes
Message 8 of 9

Anonymous
Not applicable
Office Developer is a separate package from Office Pro.

--
http://www.acadx.com

Good judgement comes from experience.
Experience comes from bad judgement.


"Minkwitz Design" wrote in message
news:3BDEE8EB.2030002@ameritech.net...
> Hi Joe,
> I don't get this dialogue from vba's ide and I'm running 2000i on nt4
> with vis studio 6 pro installed as well as office 2000 pro. In addition,
> the add-ins dialogue is empty. Hmmmmmm,,, no developer tools. After a
> little research on line, I've come up with a host of references to
> "office developer tools" and "office developer", but the only downloads
> I see are add-ins for hebrew, ect. and I can't seem to find anything on
> the office or studio disks. Is this an add-in from another package?
> Where can I find them?
> -Josh
0 Likes
Message 9 of 9

Anonymous
Not applicable
Most people only buy Office Pro. I think if you went
that route you can buy the Developer add-on. I bought
the Office Developer version of Office which comes
with Office Pro [kinda the reverse of what you did].
But it is there and I have played with it a bit, so I know
that it works just fine. I did ask Autodesk developer
help about it and and they do not document it because
it is a feature that will only be available if you have the
Office Developer tools installed.

Joe


"Minkwitz Design" wrote in message
news:3BDEE8EB.2030002@ameritech.net...
> Hi Joe,
> I don't get this dialogue from vba's ide and I'm running 2000i on nt4
> with vis studio 6 pro installed as well as office 2000 pro. In addition,
> the add-ins dialogue is empty. Hmmmmmm,,, no developer tools. After a
> little research on line, I've come up with a host of references to
> "office developer tools" and "office developer", but the only downloads
> I see are add-ins for hebrew, ect. and I can't seem to find anything on
> the office or studio disks. Is this an add-in from another package?
> Where can I find them?
> -Josh
>
> Joe Sutphin wrote:
>
> > Josh,
> >
> > If you have the necessary components then goto
> > File|New Project
> >
> > You should get a dialog box with two options
> > 1. Empty Project
> > 2. Add-In Project
> >
> > Choose the Add-In project.
> >
> > If you don't get these options then there could be
> > a couple of explanations for this. The obvious one
> > being you don't have the Developer tools installed
> > or the second. On my machine running Win2K and
> > AC2K there seems to be a strange thing happening.
> > With .Net installed it does not seem to recognize the
> > tools [even after reinstalling Office and trying to install
> > Developer]. So, there seems to be a bug there.
> >
> > I do, however, have AC2K installed another machine
> > without .Net installed and it works just fine.
> >
> > NOTE: these features will only be available in 2000i
> > and 2002.
> >
> > Joe
> >
> > "Minkwitz Design" wrote in message
> > news:3BDECA6F.70209@ameritech.net...
> >
> >>Ok, I'm hooked, reel me in. How do you compile a dll from vba with the
> >>office developer tools installed? Do I have to have a ref checked? How
> >>come it doesn't spit an error message or ask for a location to save to,
> >>but blazes through the progress bar and disables the option on the
> >>pulldown? How? How? How?
> >>:) Josh
> >>
> >>Joe Sutphin wrote:
> >>
> >>
> >>>I do, I do!
> >>>
> >>>
> >>>
> >>>It's because you have the Office Developer Tools installed on your
> >>>
> > machine.
> >
> >>>With these tools in AutoCAD 2000i and 2002 you can create an ActiveX
DLL
> >>>
> >>>file, not a complete .EXE however. But, an ActiveX DLL will get you a
> >>>long way.
> >>>
> >>>Especially if you are considering using Visual LISP.
> >>>
> >>>
> >>>
> >>>Joe
> >>>
> >>> "mrhan" > wrote in
> >>> message news:f0908d7.-1@WebX.maYIadrTaRb...
> >>>
> >>> Does anyone know why there is an option to compile an Autocad
> >>> project. It actually acts like its doing something when you click
on
> >>> the button in the IDE. It greys out as if it did something. I can't
> >>> find any references to this. VBA is macro oriented and not
> >>> compileable to an EXE format - so what's it for? Is it for
attaching
> >>> references for distribution?
> >>>
> >>> Any help would be appreciated!
> >>>
> >>> Marc
> >>>
> >>>
> >
> >
>
0 Likes