TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on January 03, 2009, 01:48:02 PM

Title: Darray - another Dynamic tool !!
Post by: Andrea on January 03, 2009, 01:48:02 PM
Hi all..

Since I'm on the GRREAD function...
many idea comes in my head.

I have created this New Dynamic Array function.

Darray v.1


The only thing I don't like...is the way i've made it by using block..
but it work great. so if some one have any suggestions to doing this without creating block
I will be happy to see it.

thanks .  :roll:
Title: Re: Darray - another Dynamic tool !!
Post by: MP on January 03, 2009, 01:59:31 PM
The only thing I don't like...is the way i've made it by using block.

Haven't looked at your code but you could analyze the initial selected entities, especially the boundary elements, and grdraw a ghosted symbolic representation. Would be fast and no temp block def/instancing required, assuming that's what you did.
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 03, 2009, 06:15:02 PM
thanks Michael,..

i'll take a look on how I can modify this.  :wink:
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 03, 2009, 11:44:42 PM
Update:
- OrthoMode Added.
- User can specify the Angle Value by pressing "V"
- English/French Detection

   8-)


Darray v.1.2


Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 05, 2009, 08:56:00 AM
Update:
- Polar Object Array added.
- Fix stopping routine by pressing any key

   8-)


Darray v.1.3


New Fix for AutoCAD 2008..



Title: Re: Darray - another Dynamic tool !!
Post by: GDF on January 05, 2009, 10:09:12 AM
Not quite a perfect array...
Title: Re: Darray - another Dynamic tool !!
Post by: MP on January 05, 2009, 10:11:41 AM
Guessing the proggy needs to consider the state of osmode.
Title: Re: Darray - another Dynamic tool !!
Post by: GDF on January 05, 2009, 10:14:53 AM
Guessing the proggy needs to consider the state of osmode.


Ah hah...that was it.
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 05, 2009, 11:01:57 AM
Oops..!

can be perfect ! :wink:

Fixed. !  thanks.

( i don't use Osnap )
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 23, 2009, 03:18:48 PM
New Release...


Darray v.1.4


This release is more complete..

Note:
By creating the Mtext BEFORE the entity....this will result transparency effect  ;-)

any comment or suggestion will be appreciated.
thanks.

enjoy !

Title: Re: Darray - another Dynamic tool !!
Post by: psuchewinner on January 26, 2009, 08:18:28 AM
Very cool stuff!  I will be dissecting it later to add some of your ides to my routines.

I wish my employer allowed me the resources to write programs like this.  Thats my dream job!

Keep the cool stuff coming!  I am envious!
Title: Re: Darray - another Dynamic tool !!
Post by: GDF on January 26, 2009, 10:23:33 AM
Very kool, but I could not get the arc to work properly.
Title: Re: Darray - another Dynamic tool !!
Post by: GDF on January 26, 2009, 10:27:29 AM
Very kool, but I could not get the arc to work properly.

Wait...now it's working. Way kool. keep up the good work.
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 26, 2009, 12:20:32 PM
thanks.. 8-)

note:..
i'm not paid to do this kind of stuff..
i do it at home.. :evil:
Title: Re: Darray - another Dynamic tool !!
Post by: psuchewinner on January 26, 2009, 03:53:59 PM
Now thats a hobby!
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 27, 2009, 12:46:49 PM
yep,..
 :angel:

You can't imagine all the idea i have in my head..
the only restriction is the knowledge.

...and time.   :lol:
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 28, 2009, 02:54:07 PM
Thanks...

New Addition and modification....

Darray v. 1.5

RECTANGULAR option was replaced with LINEAR...
New RECTANGULAR options added.

- Allow Row and Column input
- Allow Entity rotation as polar or Rectangle Center by pressing SHIFT.
- New Mtext information for Rectangle option.

enjoy !
Title: Re: Darray - another Dynamic tool !!
Post by: M-dub on January 28, 2009, 02:56:30 PM
Again!
Great sutff, Andrea!
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 28, 2009, 10:44:34 PM
Thanks !  :-)
Title: Re: Darray - another Dynamic tool !!
Post by: alisafei on January 31, 2009, 07:52:04 AM
hi, when i use the "darray" commanf after loading your lisp file, why not working..the command history like this one..

Command: darray

(L)inear/(R)ectangular/(P)olar/(A)rc ?: l

No unreferenced visual styles found.

Select objects: 1 found

Select objects:

Number of CopyArray: 5

Attach point...Regenerating model.  (WHY THIS ONE NEEDED?)
Base point...
Press (A)ngle/(Q)uantity : Deleting block "_{DarrayBlock}_".
1 block deleted.

no function definition: ACET-SYS-SHIFT-DOWN

i tried it in autocad2004 n 2009.
is the object must be a block or..?
Title: Re: Darray - another Dynamic tool !!
Post by: Serge J. Gianolla on January 31, 2009, 03:20:31 PM

no function definition: ACET-SYS-SHIFT-DOWN

i tried it in autocad2004 n 2009.
is the object must be a block or..?

Ali, it is needing a function from ExpressTools. ET should be installed.
Andrea, j'espere que tu m'en veux pas de repondre a ta place  :oops:
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on January 31, 2009, 04:21:48 PM
Attach point...Regenerating model.  (WHY THIS ONE NEEDED?)
Base point...

This is where the selected entity is reffered absolutely needed..


ACET-SYS-SHIFT-DOWN function come with expresstools and is part of the acetutil4.fas file.
but you'r right. i'll modify the code to detect if some express function is available. thanks.

Serge...
très heureux d'avoir de tes nouvelles et que tu ai répondu.  ;-)
Title: Re: Darray - another Dynamic tool !!
Post by: alisafei on January 31, 2009, 11:10:20 PM
thanks for your reply.
i know the problem, i am using toolpac so i didn't installed "Express Tool" in my autocad.

can you modify it without expresstool?
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on February 01, 2009, 11:09:38 PM
I would like to help....

but don't realy know how to use shift without using any arx or dvb file.
maybe in vbs ??  I need to check that..

or ...If some one have any idea..... :|
Title: Re: Darray - another Dynamic tool !!
Post by: Crank on February 02, 2009, 02:13:05 AM
Not in lisp, but I'm using the arx of Luis (http://www.theswamp.org/index.php?topic=19644.msg239517#msg239517).
Title: Re: Darray - another Dynamic tool !!
Post by: Gilles on June 02, 2010, 12:56:22 PM
Cool, Andrea.
Beautiful lisp.
I see a lot of aplications in what I do. cheesy
But one thing bothers me, I have not found how to impose a distance between objects created!
Is it possible and how should I do?

Thank you for your explanations.

Postscript: I am really no English
Title: Re: Darray - another Dynamic tool !!
Post by: Aerdvark on June 03, 2010, 03:06:27 PM
Hi Andrea,

I can only say OMG  :lol:

Very nice program!

Aerdvark
Title: Re: Darray - another Dynamic tool !!
Post by: Andrea on June 04, 2010, 09:59:36 AM
thanks Guys..


Gilles,..
j'vais ajouter ça à la prochaine version.
(it will be added on next release)

thanks.
Title: Re: Darray - another Dynamic tool !!
Post by: Gilles on June 04, 2010, 12:51:49 PM
Cool, je surveille......