TheSwamp

Code Red => VB(A) => Topic started by: Bob Wahr on June 01, 2006, 04:01:38 PM

Title: The ghost of versions past
Post by: Bob Wahr on June 01, 2006, 04:01:38 PM
I haven't installed it yet so does anyone know if 2007 VBA does object ghosting for manipultaing entities?
Title: Re: The ghost of versions past
Post by: Keith™ on June 01, 2006, 04:56:45 PM
I dunno ... whatever happened to the ghost jig from CV?
Title: Re: The ghost of versions past
Post by: Bob Wahr on June 01, 2006, 05:41:49 PM
I never tried it out and am not sure if it ever got finished.  Paul Marshall had his mousetracker dll for it but I'm not sure if I have that around either.  I should.  I was more just wondering if adesk had addressed it yet.
Title: Re: The ghost of versions past
Post by: Bobby C. Jones on June 01, 2006, 08:26:10 PM
I was more just wondering if adesk had addressed it yet.
They haven't and with the focus on the .NET API, which does address it, I doubt the ActiveX API will ever see large additions to functionality.
Title: Re: The ghost of versions past
Post by: Keith™ on June 01, 2006, 10:02:32 PM
So Bobby .. if I port a VB appllication to .net, can I make use of the .net ghost jig and more importantly, will that application be backward compatable since it is a defacto compiled executable?
Title: Re: The ghost of versions past
Post by: Bobby C. Jones on June 02, 2006, 08:58:05 AM
So Bobby .. if I port a VB appllication to .net, can I make use of the .net ghost jig and more importantly, will that application be backward compatable since it is a defacto compiled executable?
Keith,
You can only derrive a jig class in 2006 and higher.
Title: Re: The ghost of versions past
Post by: Bob Wahr on June 02, 2006, 10:46:01 AM
Thanks tons Bobby.  I guess this is as good a reason as any to jump into .net
Title: Re: The ghost of versions past
Post by: Bobby C. Jones on June 02, 2006, 02:19:21 PM
Thanks tons Bobby.  I guess this is as good a reason as any to jump into .net
No prob. Bob :-)

I posted a couple of examples over in the .NET forum.  This first one will drag a simple circle around the crosshairs.
http://www.theswamp.org/index.php?topic=8195.0

This second one is a definite W.I.P., but likely closer to what you're looking for.  It works well, in my limited testing, until your mouse goes out of the acad window.  Then it can get a little funky.  I haven't worked on it since posting the code here...
http://www.theswamp.org/index.php?topic=8198.0
Title: Re: The ghost of versions past
Post by: Bob Wahr on June 02, 2006, 02:43:13 PM
Wow!  Thanks for that.  I am all of the sudden left with the slightly sickly feeling that I am on the brink of dropping into something that will be well over my head.  Should be fun.  Expect questions.  Lots of them.
Title: Re: The ghost of versions past
Post by: Bobby C. Jones on June 02, 2006, 03:22:02 PM
Wow!  Thanks for that.
De Nada!

I am all of the sudden left with the slightly sickly feeling that I am on the brink of dropping into something that will be well over my head.
I'll share some of the advice that I got when I first dipped my toes into .NET.  Don't try to do it all at once; just what you need, when you need it.

I didn't follow that advice in the beginning and almost choked on the very large bite that I took.  I came from a BASIC/LISP/VB background.  And I tried to learn a new language, C#, and a new way of programming, OOP, all in one fell swoop.  And now with the newer releases of acad you have to throw a new API into that mix  :-o

Just don't let it all overwhelm you. :-)  It's worth the time and effort.

Should be fun.  Expect questions.  Lots of them.
It will be fun, I promise.  And there are lots of very talented and informative people that are lurking over in the .NET forum just itching to answer questions.  And lots of them :-)