Author Topic: Dynamic Intelligent Leader !  (Read 178212 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Dynamic Intelligent Leader !
« on: June 21, 2009, 09:27:43 PM »
Hi all..

I need beta-tester for my new routine..

DILEADER v.1.0
(Dynamic Intelligent Leader)

Allow user to quickly put/tag some object.

Need comments on the idea and concept.
thanks.

There is Some animation...





Easy to use...you can put any DIL you want on a simple object.
You can edit the Text leader, Move , stretch...
The Leader is intelligent and know what Object is tagged.
so if it was moved, stretched,rotated etc...DIL will know and will readjust the leader on it.

;-)

« Last Edit: June 21, 2009, 09:33:01 PM by Andrea »
Keep smile...

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #1 on: June 21, 2009, 09:57:48 PM »
Very Nice!   :kewl:

I could learn a great deal from this program, thanks for posting Andrea.  :-)


As an aside, may I ask what program you used to create the GIF images?

Thanks,

Lee

KewlToyZ

  • Guest
Re: Dynamic Intelligent Leader !
« Reply #2 on: June 21, 2009, 10:07:49 PM »
Fantastic tool sir! Thank you so much for sharing.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #3 on: June 21, 2009, 10:28:32 PM »
Thanks Guys....

LEE MAC.. 
I use THIS

;-)
Keep smile...

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Dynamic Intelligent Leader !
« Reply #4 on: June 21, 2009, 11:55:44 PM »
Nice work Andrea!

After the Leader is created, using ACAD2000 & moving the text the leader is not updated. I know this is a function of ACAD but thought
the routine would account for it.

Moving the associated object from left to right does not change Left / Right attachment point to the text.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

hermanm

  • Guest
Re: Dynamic Intelligent Leader !
« Reply #5 on: June 22, 2009, 12:42:06 AM »
Code: [Select]
(setq DL_textsize (getvar "textsize"))

results in very small text size :(

suggest:
Code: [Select]
(setq DL_textsize (* (getvar "DIMSCALE") (getvar "DIMTXT")))

unless current dimension style has fixed text height, yada yada

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #6 on: June 22, 2009, 07:06:31 AM »
Just a small one, but I would add a (princ) after (princ "\nDleader Finish."), to get rid of the "nil" return.

Oh, and it doesn't like Arcs too much :P

m4rdy

  • Newt
  • Posts: 62
Re: Dynamic Intelligent Leader !
« Reply #7 on: June 22, 2009, 09:10:51 AM »
That's amazing.
Its just my curiosity, how long do you spent your time to make this DLEADER V.1.0?  :-)

Autocad 2007, Windows XP

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #8 on: June 22, 2009, 11:01:53 AM »
around
2 days to think on how I want the program run...
2 day conception and bug fix.

 :roll:

Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #9 on: June 22, 2009, 11:07:33 AM »
DiLEADER 1.1
Dynamic Intelligent Leader

Update 1
I have replaced the DL_textsize variable to take the existing
DIMTXT when Updated and the DIMTXT against TEXTSIZE when created.

Code: [Select]
(setq DL_textsize (vla-get-Height (vlax-ename->vla-object TXTobj)))
(setq DL_textsize (getvar "DIMTXT"))

Update 2
I use vlax-curve-getClosestPointTo
against vla-intersectwith This modification show diffrent leader reaction...but work better.

Update 3
I also updated the code to put the Arrow size as per DIMASZ
Code: [Select]
(vla-put-ArrowheadSize (vlax-ename->vla-object Llead) (getvar "DIMASZ"))
Update 4
Left/Right justification text was improved when object as been updated.

Update 5
and finaly..
the "NOTE" in the Mtext still there when moving the mouse to show dinamicly a preview..
but it will be gone when picking the loccation text.

Code: [Select]
(entmod (subst (cons 1 "") (assoc 1 (entget Ltext)) (entget Ltext)))
Let me know if all work ok.
thanks.

CAB.
I need to install 2000 for test..



Keep smile...

KewlToyZ

  • Guest
Re: Dynamic Intelligent Leader !
« Reply #10 on: June 22, 2009, 11:17:56 AM »
Nice Andrea!
I was just reading through trying to find a way to set the Standard Dimstyle & text style to update key measurements according to dimscale from an autolisp function call. So far it is looking like an issue many have looked at with differing results.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #11 on: June 22, 2009, 11:42:41 AM »
Excellent Andrea - I thought you may opt for the vlax-curve-getClosestPointto... much better results with much less coding   :wink:

GDF

  • Water Moccasin
  • Posts: 2081
Re: Dynamic Intelligent Leader !
« Reply #12 on: June 22, 2009, 02:12:32 PM »
Using 2008 here, and I don't get the same results. When I move the circle the leader does not follow.
Also the word NOTE becomes part of the text. And I can not get the leader and text to move inside the circle.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #13 on: June 22, 2009, 02:20:09 PM »
DiLEADER 1.2
Dynamic Intelligent Leader

Little Bug Fix
as Gif below....extension entity was removed..  ;-)
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #14 on: June 22, 2009, 02:21:52 PM »
Using 2008 here, and I don't get the same results. When I move the circle the leader does not follow.
Also the word NOTE becomes part of the text. And I can not get the leader and text to move inside the circle.

Hi Gary.
eaven with 1.2 ?
Keep smile...