Here we go Again! Insert Block ghost image of it while inserting!

Here we go Again! Insert Block ghost image of it while inserting!

Anonymous
Not applicable
381 Views
9 Replies
Message 1 of 10

Here we go Again! Insert Block ghost image of it while inserting!

Anonymous
Not applicable
I know this has been discussed before but my searches on this newgroup
for it yields no results. Has anyone figured out a way to display an outline
of your block as you are inserting it into your drawing using VBA?

thanks,
joseguia
janitor
0 Likes
382 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
that' what i am doing at the moment using AcadXDynamicGraphics, and.. it's
working fine for me
the only 'but' is I didn't test it on blocks.. just simple autocad objects
as lines, circles etc.

lukas

"Jose Guia" wrote in message
news:4A1F64408CB3B988C3C455572B7BA4F3@in.WebX.maYIadrTaRb...
> I know this has been discussed before but my searches on this newgroup
> for it yields no results. Has anyone figured out a way to display an
outline
> of your block as you are inserting it into your drawing using VBA?
>
> thanks,
> joseguia
> janitor
>
>
0 Likes
Message 3 of 10

Anonymous
Not applicable
Using VBA alone and nothing but VBA, there is no way to do it,
other than by sending a LISP function to the command line that
includes a PAUSE, but if I recall correctly, the LISP code does
not execute until the VBA program finishes.

You can use the DynamicGraphics class in AcadX (www.caddzone.com)
to drag anything you want.

"Jose Guia" wrote in message
news:4A1F64408CB3B988C3C455572B7BA4F3@in.WebX.maYIadrTaRb...
> I know this has been discussed before but my searches on this newgroup
> for it yields no results. Has anyone figured out a way to display an
outline
> of your block as you are inserting it into your drawing using VBA?
>
> thanks,
> joseguia
> janitor
>
>
0 Likes
Message 4 of 10

Anonymous
Not applicable
You are absolutely right. I canNOT send a pause statement into
a sendcommand using VBA, thus the SendCommand runs SUX.
Call me hardheaded but I am trying to keep from loading any
extra ARX or OCX or anything else. I want all my code contained
nice and neatly inside of my little DVB file. 🙂
Since we deal with contractors, the DVB solution is much more
approachable, I have to write code for workstations here at the office
and for our contractors computers at home as well! I can not run to
everybodys house and force the ARX or OCX onto their computers.
Again handing them a disk with a DVB file on it is DREAMY.
Asking them to download files and, god forbid, type regsvr is NOT an option.

But, thanks for your help.
joseguia
janitor



"Tony Tanzillo" wrote in message
news:ACA74A57A16E2AF7939E57C46180A2A6@in.WebX.maYIadrTaRb...
> Using VBA alone and nothing but VBA, there is no way to do it,
> other than by sending a LISP function to the command line that
> includes a PAUSE, but if I recall correctly, the LISP code does
> not execute until the VBA program finishes.
>
> You can use the DynamicGraphics class in AcadX (www.caddzone.com)
> to drag anything you want.
>
> "Jose Guia" wrote in message
> news:4A1F64408CB3B988C3C455572B7BA4F3@in.WebX.maYIadrTaRb...
> > I know this has been discussed before but my searches on this newgroup
> > for it yields no results. Has anyone figured out a way to display an
> outline
> > of your block as you are inserting it into your drawing using VBA?
> >
> > thanks,
> > joseguia
> > janitor
> >
> >
>
>
0 Likes
Message 5 of 10

Anonymous
Not applicable
"Jose Guia" wrote in message
news:866F52C0F237D4348B8D83F22BB7DB2D@in.WebX.maYIadrTaRb...

> Call me hardheaded but I am trying to keep from loading any
> extra ARX or OCX or anything else. I want all my code contained
> nice and neatly inside of my little DVB file. 🙂

Having a nice, neat, tidy, self-contained DVB file would be
nice, but unfortunately, the reality is that ActiveX/VBA is
limited in what it can do.

If you find the requirement of not being dependent on any
third-party/external components more important than delivering
robust, powerful, professional applications, you have several
options:

1. Develop in LISP.

2. Learn C++ or hire a C++ programmer; spend a whole lot of
time/money to develop, test and debug your own extensions,
and learn how to properly deploy them in a transparent way.

> Since we deal with contractors, the DVB solution is much more
> approachable, I have to write code for workstations here at the office
> and for our contractors computers at home as well! I can not run to
> everybodys house and force the ARX or OCX onto their computers.

Why would you need to do that?

Many AcadX licensees distribute it with their applications, and
the only thing they need to do is include a few lines of code
that registers the ARX file the first time the application runs
(in fact, I supply them with that code).

Contrary to what you seem to think, the entire process is
completely transparent to the end user, and nothing even
remotely similar to what you describe is needed.

> Again handing them a disk with a DVB file on it is DREAMY.
> Asking them to download files and, god forbid, type regsvr
> is NOT an option.

None of that is required, but if you are planning to distribute
the software, then a distribution license is required (which is
not free). You can't ask them to download the component separately
and use it with your software without purchasing a distribution
license.

So, if your issue is with having to pay for a solution, that's a
legitmate gripe. If your issue is with installation/deployment
of an external component, that's not an issue.
0 Likes
Message 6 of 10

Anonymous
Not applicable
Well put.

In the end I am trying to make things as transparent as I possibly
can for the end user, and with my limited knowledge on VBA I
can claim "Ignorance truly is bliss"

> So, if your issue is with having to pay for a solution, that's a
> legitmate gripe. If your issue is with installation/deployment
> of an external component, that's not an issue.

If I had to pay to use something it would NOT be an issue, I follow
all rules, all recognition is given to the appropriate authors, etc..
And the ISSUE IS a deployment issue. I don't want the extra work
of setting up everybody's workstation if I can keep from it. PERIOD.
Thats why I LOVE vbdesign.net so much, all of their code is copy
and paste, enough said! Moule here Module there Module everywhere.

I've written our entire package already, done, finished! Now I am trying to
add GOODIES, not really necessary to the functionality just plain eyecandy!

but I really do appreciate the help the newsgroup has given me from people
such as yourself,

> Many AcadX licensees distribute it with their applications, and
> the only thing they need to do is include a few lines of code
> that registers the ARX file the first time the application runs
> (in fact, I supply them with that code).

I did this with the dwgthumbnail viewer (vbdesign.net) and it was a cinch. I
just don't want
to do it anymore. seee.When I re-write the entire package again I may
reconsider, 'till then I am gonna copy-and-paste 'till I get carpaltunnel ..
.YeeeeeeHaaaaa

joseguia
janitor
0 Likes
Message 7 of 10

Anonymous
Not applicable
Jose Guia had this to say:

> Well put.
>
> In the end I am trying to make things as transparent as I possibly
> can for the end user, and with my limited knowledge on VBA I
> can claim "Ignorance truly is bliss"

Jose, Tony is absolutely correct in saying that VBA cannot do it all.
It seems you are taking him to task for pointing you to a solution to
your problem jsut because it's not VBA. If it *was* VBA it wouldn't be
a solution, would it?

As he pointed out distributing an ARX is a simple process; even as
simple as cut and paste. Don't be so quick to discount solutions just
because they come in a package you can't tinker with.

But if you simply must have source code, see if you can make heads or
tails of the source code that comes with my ARX files. *I* can barely
make sense of it and I wrote the stuff.

--
http://www.acadx.com
0 Likes
Message 8 of 10

Anonymous
Not applicable
Thanks FrankO,
I am finding out slowly but surely that VBA cannot do it all!
But it DOES A LOT! 🙂 I just learned VBA yesterday and am
already developing In-House Engineering Packages. This is great!
hmm .. maybe I should just sell corndogs on a street corner
in Mexico, I don't think they have corn dogs down there!

thanks for all y'alls help

joseguia
janitor




"Frank Oquendo" wrote in message
news:ECB21F7E981905BF2386EEE07E054D81@in.WebX.maYIadrTaRb...
> Jose Guia had this to say:
>
> > Well put.
> >
> > In the end I am trying to make things as transparent as I possibly
> > can for the end user, and with my limited knowledge on VBA I
> > can claim "Ignorance truly is bliss"
>
> Jose, Tony is absolutely correct in saying that VBA cannot do it all.
> It seems you are taking him to task for pointing you to a solution to
> your problem jsut because it's not VBA. If it *was* VBA it wouldn't be
> a solution, would it?
>
> As he pointed out distributing an ARX is a simple process; even as
> simple as cut and paste. Don't be so quick to discount solutions just
> because they come in a package you can't tinker with.
>
> But if you simply must have source code, see if you can make heads or
> tails of the source code that comes with my ARX files. *I* can barely
> make sense of it and I wrote the stuff.
>
> --
> http://www.acadx.com
>
>
>
>
0 Likes
Message 9 of 10

Anonymous
Not applicable
This doesn't do what you need ?

Public Sub test()
ThisDrawing.SendCommand "-insert blockname" & vbLf
MsgBox "I'm done"
End Sub

Brian D.


"Jose Guia" wrote in message
news:866F52C0F237D4348B8D83F22BB7DB2D@in.WebX.maYIadrTaRb...
> You are absolutely right. I canNOT send a pause statement into
> a sendcommand using VBA, thus the SendCommand runs SUX.
> Call me hardheaded but I am trying to keep from loading any
> extra ARX or OCX or anything else. I want all my code contained
> nice and neatly inside of my little DVB file. 🙂
> Since we deal with contractors, the DVB solution is much more
> approachable, I have to write code for workstations here at the office
> and for our contractors computers at home as well! I can not run to
> everybodys house and force the ARX or OCX onto their computers.
> Again handing them a disk with a DVB file on it is DREAMY.
> Asking them to download files and, god forbid, type regsvr is NOT an
option.
>
> But, thanks for your help.
> joseguia
> janitor
>
>
>
> "Tony Tanzillo" wrote in message
> news:ACA74A57A16E2AF7939E57C46180A2A6@in.WebX.maYIadrTaRb...
> > Using VBA alone and nothing but VBA, there is no way to do it,
> > other than by sending a LISP function to the command line that
> > includes a PAUSE, but if I recall correctly, the LISP code does
> > not execute until the VBA program finishes.
> >
> > You can use the DynamicGraphics class in AcadX (www.caddzone.com)
> > to drag anything you want.
> >
> > "Jose Guia" wrote in message
> > news:4A1F64408CB3B988C3C455572B7BA4F3@in.WebX.maYIadrTaRb...
> > > I know this has been discussed before but my searches on this newgroup
> > > for it yields no results. Has anyone figured out a way to display an
> > outline
> > > of your block as you are inserting it into your drawing using VBA?
> > >
> > > thanks,
> > > joseguia
> > > janitor
> > >
> > >
> >
> >
>
>
0 Likes
Message 10 of 10

Anonymous
Not applicable
Not if they want to get control back after
the block is inserted. Usually, that's what's
going on in this scenario.

"Brian D" wrote in message
news:AA20E23CD1629E4559EFC77EB76EBD87@in.WebX.maYIadrTaRb...
> This doesn't do what you need ?
>
> Public Sub test()
> ThisDrawing.SendCommand "-insert blockname" & vbLf
> MsgBox "I'm done"
> End Sub
>
> Brian D.
>
>
> "Jose Guia" wrote in message
> news:866F52C0F237D4348B8D83F22BB7DB2D@in.WebX.maYIadrTaRb...
> > You are absolutely right. I canNOT send a pause statement into
> > a sendcommand using VBA, thus the SendCommand runs SUX.
> > Call me hardheaded but I am trying to keep from loading any
> > extra ARX or OCX or anything else. I want all my code contained
> > nice and neatly inside of my little DVB file. 🙂
> > Since we deal with contractors, the DVB solution is much more
> > approachable, I have to write code for workstations here at the office
> > and for our contractors computers at home as well! I can not run to
> > everybodys house and force the ARX or OCX onto their computers.
> > Again handing them a disk with a DVB file on it is DREAMY.
> > Asking them to download files and, god forbid, type regsvr is NOT an
> option.
> >
> > But, thanks for your help.
> > joseguia
> > janitor
> >
> >
> >
> > "Tony Tanzillo" wrote in message
> > news:ACA74A57A16E2AF7939E57C46180A2A6@in.WebX.maYIadrTaRb...
> > > Using VBA alone and nothing but VBA, there is no way to do it,
> > > other than by sending a LISP function to the command line that
> > > includes a PAUSE, but if I recall correctly, the LISP code does
> > > not execute until the VBA program finishes.
> > >
> > > You can use the DynamicGraphics class in AcadX (www.caddzone.com)
> > > to drag anything you want.
> > >
> > > "Jose Guia" wrote in message
> > > news:4A1F64408CB3B988C3C455572B7BA4F3@in.WebX.maYIadrTaRb...
> > > > I know this has been discussed before but my searches on this
newgroup
> > > > for it yields no results. Has anyone figured out a way to display an
> > > outline
> > > > of your block as you are inserting it into your drawing using VBA?
> > > >
> > > > thanks,
> > > > joseguia
> > > > janitor
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes