TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on June 21, 2009, 09:27:43 PM

Title: Dynamic Intelligent Leader !
Post by: Andrea 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...
(http://www.theswamp.org/screens/Andrea/DiLeader.gif)

(http://www.theswamp.org/screens/Andrea/DiLeader2.gif)

(http://www.theswamp.org/screens/Andrea/DiLeader3.gif)
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.

;-)

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac 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
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on June 21, 2009, 10:07:49 PM
Fantastic tool sir! Thank you so much for sharing.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 21, 2009, 10:28:32 PM
Thanks Guys....

LEE MAC.. 
I use THIS (http://www.theswamp.org/index.php?topic=27479.msg332078#msg332078)

;-)
Title: Re: Dynamic Intelligent Leader !
Post by: CAB 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.
Title: Re: Dynamic Intelligent Leader !
Post by: hermanm 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
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac 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
Title: Re: Dynamic Intelligent Leader !
Post by: m4rdy 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?  :-)

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea 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:

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea 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..

(http://www.theswamp.org/screens/Andrea/DiLeader4.gif)

Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ 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.
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac 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:
Title: Re: Dynamic Intelligent Leader !
Post by: GDF 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.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 22, 2009, 02:20:09 PM
DiLEADER 1.2
Dynamic Intelligent Leader

Little Bug Fix
as Gif below....extension entity was removed..  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea 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 ?
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on June 22, 2009, 02:33:38 PM
oops, I didn't try that one. Yes it works. Thanks for sharing it.
However I have to move the circle using the circle's grip and not the move command for it to work dynamically.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 22, 2009, 03:01:14 PM
Yes...I use only "GRIPS_xxx" reactor to allow user to move object and/or leader without remaking the leaders..
Title: Re: Dynamic Intelligent Leader !
Post by: Serge J. Gianolla on June 22, 2009, 10:30:11 PM
Ciao Andrea,

1st thing 1st, bravo, bravissimo. Very clever tool

Quote
Need comments on the idea and concept.
thanks.
One little issue though! When deleting the object the leader still exists, on other hand if deleting and undoing later on the connectivity is still established.

Pour ce qui est du nom, faudrait que tu saches qu'en anglais DIL ca veut dire qlq chose d'autre aussi :evil: :lmao:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 22, 2009, 11:09:27 PM
Ciao Andrea,

1st thing 1st, bravo, bravissimo. Very clever tool

Quote
Need comments on the idea and concept.
thanks.
One little issue though! When deleting the object the leader still exists, on other hand if deleting and undoing later on the connectivity is still established.

Pour ce qui est du nom, faudrait que tu saches qu'en anglais DIL ca veut dire qlq chose d'autre aussi :evil: :lmao:


Hey Serge.. Thanks for your comments..

First..I have think about that "On ERASE" and remove the leader..but that need to detect leader and Mtext attached on it and delete it also...
so if user do UNDO...this need to create reactor to detect if ERASE is the last command, filter if it was an object attached by a DILEADER, Retreive all DiLeader associated with all coordinates, and undo all leader and MTEXT entity for this object..
at the end.....have an head hake.  No thanks. ;-)

So leaving like this, allow user to draw Leader attached to an object and erase the object without remaking the leader if he need to keep it.
and like you have said....doing an Undo after deleting the object....the association still remain.

Pour le nom.. j'y avais aussi pensé....mais bon...ca fait jaser !  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Krushert on June 23, 2009, 11:07:04 AM
Downloaded and played with it.  I am probably doing something wrong so keep that in mind.

Also I am played with it on ACA 2010.


This will be really cool if you can get it to work



Title: Re: Dynamic Intelligent Leader !
Post by: T.Willey on June 23, 2009, 11:13:29 AM
Just use an object modified reactor, and an object erased reactor, in conjuncture with a command ended reactor.  That way you will update on any change.  You can see how I did it in the post, and one a few posts down for the updated code.

[ http://www.theswamp.org/index.php?topic=8710.msg111442#msg111442 ]

If you want, you can read through the whole thread as Luis helped me a lot to understand reactors.  Thanks again Luis.  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on June 23, 2009, 11:32:24 AM
Just use an object modified reactor, and an object erased reactor, in conjuncture with a command ended reactor.  That way you will update on any change.  You can see how I did it in the post, and one a few posts down for the updated code.

[ http://www.theswamp.org/index.php?topic=8710.msg111442#msg111442 ]

If you want, you can read through the whole thread as Luis helped me a lot to understand reactors.  Thanks again Luis.  :-)

Yes, I would second this, to make the reactor a presistant reactor.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 24, 2009, 01:08:20 PM
Hi krushert ..

thanks for your testing results.  ;-)

Ok..after many test..
First thing I notice is that the leader does not want to bend if stretched far frorm the object.
Strange...I have no bug with that..How far you stretch it ?


Second thing was text style did not change when I change the text style.
Same thing....No problem changing the Textstyle....how did you change it ?

Third was when toggling ortho and polar on and off it left little droppings of "notes" at whatever the location it happen to be when toggled
??  I can't reproduce the problem..

Fourth, when console break happen it left the leader and the note instead of deleting it
OK..I'll fix that. thanks.  ;-)

Fifth, was when a Dymanick block was slected the leader snap way off to the left.
Yep..I know...all block do same thing dynamic or not...I need to fix that also.  thanks  ;-)

and Sixth, it messing with the settings of my quick view drawings pane.  close the drawing and reopen and settings reset to as desired.
I personally have many many Bug with this news AutoCAD feature....event WITHOUT using Dileader (simple AutoCAD Vanilla)
Sometime You will have same result when drawing a simple line.


This will be really cool if you can get it to work
...thanks. but need to have more info about your testing bugs.

Can you provide animated GIF or send me a drawing wo you have these bugs ?
Something who can Help me to resolve the problem ?..

Also,...It will be useful if some other tester have same problem please let me know.

This is the first release of DiLeader to know user's pulse...and it will be improved shortly.

thanks for all your comments, suggestions and bug reports.  ;-)

Title: Re: Dynamic Intelligent Leader !
Post by: Chris on June 25, 2009, 08:22:24 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

does dimscale do you any good when using annotative text?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 25, 2009, 09:21:14 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

does dimscale do you any good when using annotative text?

Chris..

maybe you need to test the last Last release (http://www.theswamp.org/index.php?topic=29245.msg347882#msg347882)
 ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on June 25, 2009, 09:41:14 AM
You may want to check the annotation scale variable settings in 2010, they may be messing with the dileader setup.

(command "ANNOTATIVEDWG" 0)   ; Specifies whether or not the drawing will behave as an annotative block when inserted into another drawing - 0 = False
; 0    Nonannotative
; 1    Annotative
; Note   The ANNOTATIVEDWG system variable becomes read-only if the drawing contains annotative objects.

;  (princ "\n")
(command "ANNOAUTOSCALE" -4)
;   Updates annotative objects to support the annotation scale when the annotation scale is changed.
;   When the value is negative, the autoscale functionality is turned off, but the settings are maintained:
; 1   Adds the newly set annotation scale to annotative objects that support the current scale except for those on layers that are turned off, frozen, locked or that are set to Viewport > Freeze.
; -1    ANNOAUTOSCALE is turned off, but when turned back on is set to 1.
; 2   Adds the newly set annotation scale to annotative objects that support the current scale except for those on layers that are turned off, frozen, or that are set to Viewport > Freeze.
; -2    ANNOAUTOSCALE is turned off, but when turned back on is set to 2.
; 3   Adds the newly set annotation scale to annotative objects that support the current scale except for those on layers that are locked.
; -3   ANNOAUTOSCALE is turned off, but when turned back on is set to 3.
; 4   Adds the newly set annotation scale to all annotative objects that support the current scale.
; -4    ANNOAUTOSCALE is turned off, but when turned back on is set to 4.


(command "ANNOALLVISIBLE" 1)   ;   Hides or displays annotative objects that do not support the current annotation scale.
;   The ANNOALLVISIBLE setting is saved individually for model space and each layout.
;   Note   When ANNOALLVISIBLE is set to 1, annotative objects that support more than one scale will only display one scale representation.
;   0   Only annotative objects that support the current annotation scale are displayed
;   1    All annotative objects are displayed
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 25, 2009, 09:48:15 AM
You.r right !! i'll do it..

thanks   :wink:

(I don't use annotative)
Title: Re: Dynamic Intelligent Leader !
Post by: Krushert on June 30, 2009, 12:49:57 PM
...thanks. but need to have more info about your testing bugs.

Can you provide animated GIF or send me a drawing wo you have these bugs ?
Something who can Help me to resolve the problem ?..

Also,...It will be useful if some other tester have same problem please let me know.

This is the first release of DiLeader to know user's pulse...and it will be improved shortly.

thanks for all your comments, suggestions and bug reports.  ;-)
Just getting back from Vacation.  I will post something in a day or two.
Title: Re: Dynamic Intelligent Leader !
Post by: andrew_nao on July 09, 2009, 10:22:44 AM
i havent downloaded or tested this
but looking at the animations this looks to be a very cool program

and i have 1 question, is there any chance that you could have some type of option for working with dtext instead of mtext?

maybe place some type of "switch" in the code itself for the user to change to get it to use dtext in place of mtext?

regardless if you can or not, i still think this is a nifty program
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on July 09, 2009, 10:31:20 AM
i havent downloaded or tested this
but looking at the animations this looks to be a very cool program

and i have 1 question, is there any chance that you could have some type of option for working with dtext instead of mtext?

maybe place some type of "switch" in the code itself for the user to change to get it to use dtext in place of mtext?

regardless if you can or not, i still think this is a nifty program

I will second that request also, only use dtext here.
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on July 09, 2009, 11:01:09 AM
Request for  text height change: 8-)
Code: [Select]
(setq DL_textsize (* (getvar "DIMTXT") (getvar "DIMSCALE"))) ; CAB
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on July 11, 2009, 10:34:41 PM
Thanks Guys...

I'm a little busy right now....
But i've read all your comments and i'll be back soon.

Andrew and Gary...
Yes this can be done.

CAB
Thanks for the suggestion....i'll take it.  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 05, 2009, 03:20:17 PM
Hi all..

Sorry for the delay.....to much work here.. :wink:
Well,..there we go...

DILEADER v.1.4
(Dynamic Intelligent Leader)

what's new on this release:
- Work with Block entities.
- Dimscale & Textsize readjusted.
- Multiple selection allowed.
- Text color adjusted with DIMCLRT variable.
- Leader position readjusted when Moved or stretched.
- MOVE,STRETCH,ROTATE,SCALE are now added to reactor.
- Reactor now work for block entities and/with multiple selection.
- DILEDIT remake to allow block recongnition.
- TEXT & MTEXT choice option addded.

As you can see below, you can now use multiple object selection, DiLeader will readjust all the thing.
Feel free to add your comments.

Enjoy !

(next step: annotative detection)
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on August 05, 2009, 04:47:14 PM
Very nice Andrea. The only comment I have is for it to use the current text style, and the arrow head did not show up.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 05, 2009, 04:50:29 PM
Very nice Andrea. The only comment I have is for it to use the current text style.

thanks.
maybe it will be better if DiLeader use DIMTXSTY variable ?
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 05, 2009, 07:02:11 PM
Impressive Andrea.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 06, 2009, 09:14:55 AM
Impressive Andrea.

thanks.  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 06, 2009, 01:16:28 PM
Many people ask me..
"what is the difference between Mleader and DiLeader ?"

Mleader have some options who DiLeader don't have
but there is what I know.....

-Mleader do allow only Mtext entity
-Mleader do no tag an object but a point.
-Mleader can not tag any unproportionaly scaled Blocks.
-Mleader remove the connection between block object if it is unproportionaly scaled. (see gif)
-Mleader available from 2008 -> 2010 only vs DiLEADER tested on 2004 -> 2010.

Do I miss something ?

By the way....why we can't use any snap mode on unproportionaly scaled blocks ?

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 06, 2009, 04:28:46 PM
New Feature...

Block arrow Switch by pressing TAB key.
 ;-)



Title: Re: Dynamic Intelligent Leader !
Post by: ArgV on August 08, 2009, 10:42:12 PM
Just FYI, this thing is AWESOME! I tried to break it, but by version 1.4, every bug I'd found from version 1.0 was corrected. (as you know)

(autocad 2008)

Sweet!

Title: Re: Dynamic Intelligent Leader !
Post by: Pad on August 10, 2009, 11:27:35 AM
hello I have a slight problem with 1.4 and 1.5:

Code: [Select]
Command: dil

(T)ext/(M)text ?<M>: M

Invalid option keyword.

(T)ext/(M)text ?<M>: T

Invalid option keyword.

(T)ext/(M)text ?<M>:

Select Object...
Pick Text location...
Dileader Finish.

also the leader is not associated with the text.
Could this be because I am using 2004?


Thanks
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 10, 2009, 01:19:56 PM
Hi...

can you give this a try ?

Code: [Select]
(initget 0 "TEXT MTEXT")
(setq DLtextMode1 (getkword (strcat "\n(T)ext/(M)text ?<?>: ")))
(princ (vl-princ-to-string (ascii DLtextMode1)))

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 10, 2009, 01:21:12 PM
Just FYI, this thing is AWESOME! I tried to break it, but by version 1.4, every bug I'd found from version 1.0 was corrected. (as you know)

(autocad 2008)

Sweet!



Thanks ArgV.. ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Pad on August 11, 2009, 05:41:00 AM
Hello Andrea

On further investigation if i enter 'text' or 'mtext' in full then it will work properly.
I suppose 'text' and 'mtext' are very similar.

The other problem with moving the leader note in one I haven't been able to resolve (acad 2004)

thank you
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 11, 2009, 08:37:34 AM
Hi PAD,

I'm working on it and be back with a new release.

(what is the bug on moving ?)

Title: Re: Dynamic Intelligent Leader !
Post by: Pad on August 11, 2009, 11:33:59 AM
Great

I can create the leader fine, but if I come to shift its position as in your example, the leader will move separately from the note, instead of as one.
It acts the same as a dissociated dimension or as if its been exploded.
Whether this is an incorrect setting within my acad 2005 (sorry previously I said 2004, its actually 2005) I wouldn't know.

Thanks
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 13, 2009, 02:35:34 PM
New release...

DILEADER v.1.6
(Dynamic Intelligent Leader)

what's new on this release ?

tested on AutoCAD 2005, 2006 2007 2008 2009 and 2010.

Enjoy !  :-)
      -
Title: Re: Dynamic Intelligent Leader !
Post by: Sebb77 on August 13, 2009, 02:48:56 PM
Awesome work !  I'll test it more down the road and get back to U  if i find any bug. Thks for sharing again Andrea.

Your app name could as well apply to you. Dynamic and Intelligent leader.  :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 14, 2009, 08:37:32 AM
Awesome work !  I'll test it more down the road and get back to U  if i find any bug. Thks for sharing again Andrea.

Your app name could as well apply to you. Dynamic and Intelligent leader.  :wink:

LOL ! thanks.  :angel:
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on August 14, 2009, 02:26:49 PM
Andrea

I still can not move the leader without breaking the link as per your illustration.
Also when I move the text, this link is also broken.
Only moving the object taged seems to keep the reactor link.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 14, 2009, 02:46:37 PM
Andrea

I still can not move the leader without breaking the link as per your illustration.
Also when I move the text, this link is also broken.
Only moving the object taged seems to keep the reactor link.

do you use DILEDIT command ?
Title: Re: Dynamic Intelligent Leader !
Post by: DEVITG on August 15, 2009, 09:34:25 PM
Nice and awesome.

Thanks for your effort.
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on August 17, 2009, 02:54:17 PM
Andrea

I still can not move the leader without breaking the link as per your illustration.
Also when I move the text, this link is also broken.
Only moving the object taged seems to keep the reactor link.

do you use DILEDIT command ?

No. I didn't. That's pretty slick.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 17, 2009, 06:01:22 PM
Thanks...

there is the last release..

DiLEADER v.1.7
Dynamic Intelligent Leader

Some bug fixes and icon added when mouse cross over text entity.

 :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 19, 2009, 02:47:35 PM
There it is....like promised..

Another LAST release..  ;-)

DiLEADER v.1.8
Dynamic Intelligent Leader

New:
- DILA and DiLEADERA command added for Quick annotative Leader
- Modification entity remake to allow Annotative Leader and Text.

 :roll:

Title: Re: Dynamic Intelligent Leader !
Post by: Xander on August 19, 2009, 10:16:22 PM
Andrea,

WOW.  Why is it that AutoDesk couldn't come up with this feature.

While playing around with it in a new template everything works perfectly.  However, if I jump into one of my companys' standard I get the error 'Automation Error. Key not found' right after selecting the object.

I've skimmed through the code looking for that clause to see if your code princ'ed me the error with no luck. 

Regards,
Xander
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 20, 2009, 09:52:50 AM
Thanks Xander...

Few Questions...
- What release of AutoCAD ?
- What Kind of object you have selected ?
- Do you run any other routine maybe have conflict with ?
- is that happend on each file ?

Please let me know.
thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Xander on August 20, 2009, 07:01:50 PM
Andrea,

-Currently Running AutoCAD 2010
-Just a rectangle.
-We have many routines, but none which should be conflicting.
-Only happens on our company templates.  Every other template works.

I have come to think it has something to do with text styles.  I have attached an example to this post for your viewing pleasure.

Regards,
Xander

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 20, 2009, 08:50:37 PM
Thank you....It is now fixed !  ;-)

it was the Arrow custom leader... ;-)

This fix will be add on the new release 1.9..(next week)
I've remake the reactor to allow user to edit object with the Propreties Panel.
and add some fix when copying Leader.

Thanks again.
Title: Re: Dynamic Intelligent Leader !
Post by: Xander on August 20, 2009, 09:09:06 PM
Thank you....It is now fixed !  ;-)

it was the Arrow custom leader... ;-)

This fix will be add on the new release 1.9..(next week)
I've remake the reactor to allow user to edit object with the Propreties Panel.
and add some fix when copying Leader.

Thanks again.


No, thank-you for the development.  This has been a much needed feature inside AutoCAD for a loooooonnnnnng time.  I'm only glad I could help.
 :-D
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on August 24, 2009, 08:24:35 AM
One of the best pieces of coding I ever found !! Thank you for sharing it on this forum.

I'd like to use it in combination with menu macro's (.mnu file), ie:

Code: [Select]
[Free Leader]^C^Cdila;m;That one works.

Code: [Select]
[Edit Leader]^C^Cdiledit;That works too, duh..

And this one doesn't work, I would like it to only prompt for "selecting object" and "text location"...:

Code: [Select]
[Leader 16mm]^C^Cdila;m;pause;pause;16mm;
I know it can be done within the coding but it can also be done in the .mnu file for other functions also work properly like "-insert":

Code: [Select]
[B1,Button 1]^C^C-insert;b1;s;$m=$(getvar,userr1)
Any help / solution is much appreciated.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 24, 2009, 08:48:49 AM
Aerdvark ...first...welcome to theswamp !

thanks for the comment....i'll try to do something for that..
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on August 24, 2009, 09:04:24 AM
Okay, thanks in advance !
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 24, 2009, 01:21:05 PM
Well...

there we go....


DILEADER v.1.9
(Dynamic Intelligent Leader)

This release have some bug fix and a new option.

- Reactor for GRIPS was remake with :vlr-objectmodified to allow
  DiLeader to readjust the Leader when the Object is modified via
  the Propreties ToolPalette (MLEADER do not allow that ;-) )
- New Text Prompt to allow user to custom cui or mnl/mnu
- Bug fix when copying object with leader even with grips command
- Bug Fix for Annotative Mtext with DILEDIT command
- Bug Fix when Arrow switched - multi-language compatible

example of script to custom menu
Code: [Select]
^c^c^pdila;t;[color=navy]My text here[/color];
Code: [Select]
^c^c^pdil;m;

enjoy !
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on August 24, 2009, 03:44:08 PM
Hello Andrea, where are you controlling the leader head & text size factors specifically?
I use my dimscale but I need a different factor for my scaling.

Edited, should have re-read the post first my apologies :)
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..

(http://www.theswamp.org/screens/Andrea/DiLeader4.gif)


Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 24, 2009, 06:25:26 PM
Hi KewlToyZ ...

All fix as been done few release ago... :wink:

your Update #3 have been done like this.
Code: [Select]
(vla-put-arrowheadsize
             (vlax-ename->vla-object llead)
             (* (getvar "DIMSCALE") (getvar "DIMASZ"))
           )

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 24, 2009, 06:57:20 PM
I admire your continued effort in this program... it must be getting close to perfect by now....   ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 24, 2009, 08:40:40 PM
I admire your continued effort in this program... it must be getting close to perfect by now....   ;-)

thanks...:)

I don't realy know when to considere a program is finished....anyone know ?  :lol:
I think that a program is finished when the owner decide that is finished..
it's like painting...

for my own....DiLeader is near the end.....but I have to many idea to improve this program.

- Multi-Leader (similar to this (http://www.theswamp.org/index.php?topic=25195.msg303213#msg303213))
- Switch Leader to another object simply on Stretch on it
- Text/Mtext conversion
- Use Field
- Keep Link on object Mirrored or Copied
- Text attachement location
- use RTEXT
- use blocks Identification with attributes (similar to this (http://www.theswamp.org/index.php?topic=28339.msg339237#msg339237))
- etc..... etc...

Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on August 25, 2009, 07:13:30 AM
Hi Andrea,

Thank you for this great miracle! It allready is in my menu :-)
There is one thing I changed: the line "(alert "item added") for it reacts on the usual copy command. I changed "alert" into "princ".

In this case the routine stays the same only the alertbox is changed into a message on the command line.

I'd rather not use alertboxes in commands for they are annoiing (sorry I'm dutch).

If you want to have some more "wishes" to modify the routine: how about a leader that points two objects?

See image below.

Kind regards,
Marco.

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 25, 2009, 08:17:55 AM
Lol !! Forgot to remove my test alert...
thanks.   :-)

Yes, this feature is one of the list...

version 9.1.1 below (alert box removed)
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 25, 2009, 08:26:05 AM
I've done that so many times...  :oops:
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on August 25, 2009, 10:32:23 AM
Andrea

Very nice.
Title: Re: Dynamic Intelligent Leader !
Post by: mdbdesign on August 25, 2009, 12:58:24 PM
Very nice, thank you.
Add it into my leader macro: ^C^C(LOAD "DILEADER") -la;set;text;;_dil \\\^C^C-la;set;text;;select;\tcircle;p;;0.25;S;V;
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 25, 2009, 02:03:01 PM
Thank you guys..

mdbdesign....I didn't test it...but did you tried to use *^c^c....  for repeat action ?

what's next !??...

MDiLEADER    
(Multiple Dynamic Intelligent Leader)

Coming soon....;-)

overview...
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on August 25, 2009, 02:11:17 PM
 :-o
Holy crap! lol
I got to see this.
Title: Re: Dynamic Intelligent Leader !
Post by: mdbdesign on August 25, 2009, 04:29:36 PM
Quote
mdbdesign....I didn't test it...but did you tried to use *^c^c....  for repeat action ?
Yes, :-( not working, sorry :-(
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on August 26, 2009, 05:32:14 AM
Well Andrea, it is still getting better!

Don't mind / bother the alert box message, it's solved now.
A question: is it possible for me to modify the routine (I mean it doensn't have to be in your for everyone has its own use for it) so it works "perpendicular" and with certain distances?

See the image I added: the above is how I would like to have it.
Always the same distance from the selected object (in this case 300mm) and always under 90 degrees corner, yous is 66 degrees.

I was looking for the "getpoint" function in the routine but since you use "vla-..." I am losing track.

Thank you for helping me out.
Title: Re: Dynamic Intelligent Leader !
Post by: Shade on August 26, 2009, 12:02:15 PM
Thanks Andrea, for what it looks like a lot of work.
This little programme is gonna be a killer when it is complete... :laugh:

I am having problems running it thou. :cry:
I receive the following error message.

Quote
Select Object...
Pick Text location...
bad argument value: AcDbCurve 2020830000
Command:

I am using AutoCAD 2010, and I have tried several different version of the programme. (ie 1.6 to 1.9.1) all with the same result.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 26, 2009, 12:22:26 PM
Thanks Shade..

What kind of object do you select ?

can you make (entget(car(ensel))) and select your object and post the result ?
or post the dwg of the selected object ?

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 26, 2009, 12:27:36 PM
Aerdvark...

Yes this can't be impossible..
but I think that modification require lot of work vs the utilisation..

we have to keep in mind that few years ago....we where on drafting table..
 :kewl:

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 26, 2009, 12:38:59 PM
Andrea,

Just a thought  :-)

You could add something similar to this into your GrRead loop to check for Orthomode and adjust the mouse point in relation to the point returned by GetClosestPointTo:

Code: [Select]
(if
           (not
             (zerop
               (logand 1 (getvar "ORTHOMODE"))))
           (if
             (<= (abs (- (car dat) (car iPt)))
                 (abs (- (cadr dat) (cadr iPt))))
             (setq dat
               (list (car ipt) (cadr dat) (caddr dat)))
             (setq dat
               (list (car dat) (cadr ipt) (caddr dat)))))

Where dat is your mouse point and iPt is the point returned by GetClosestPointto, in addition you could allow for the F8 key (chr 15) to switch ORTHO on and OFF  :-)

Just an idea  :wink:

Lee
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 26, 2009, 12:55:20 PM
Hi Lee...

thanks..

After testing your code...it seem to work...
but I have strange result because the intersection point is calculate from the cursor location point who is also the Text insertion point....so I need to modify the routine to allow that..

but your code is good....thanks to provide it. I'll try to add it on future release.
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 26, 2009, 01:06:26 PM
Not a problem - I use that and also some code to imitate OSnaps during GrRead loops.

You can see it in use here (http://www.theswamp.org/index.php?topic=29397.0) for more reference.

Hope this helps you improve an already superb program (http://www.theswamp.org/screens/leemac/Clapping.gif)

Good luck,

Lee



Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 26, 2009, 01:45:51 PM
Not a problem - I use that and also some code to imitate OSnaps during GrRead loops.

You can see it in use here (http://www.theswamp.org/index.php?topic=29397.0) for more reference.

Hope this helps you improve an already superb program (http://www.theswamp.org/screens/leemac/Clapping.gif)

Good luck,

Lee

LOL !!  I think we need to be coordonate...  ;-)

 Look Here !!  (http://www.theswamp.org/index.php?topic=26774.msg322539#msg322539)

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 26, 2009, 01:47:53 PM
haha -- Great minds think alike it seems    8-)
Title: Re: Dynamic Intelligent Leader !
Post by: Shade on August 26, 2009, 01:51:06 PM
Thanks Shade..

What kind of object do you select ?

can you make (entget(car(ensel))) and select your object and post the result ?
or post the dwg of the selected object ?

thanks.

I was trying to select various object types (ie. Circle, line, etc) at the time.
Since then I have rebooted my computer and tried again.
Now the lisp seems to work great.

Unfortunately the lisp does not work with Xrefs. Since our notation drawings are separate from our background or line work drawings, which are xref'd into the notation drawing,  i cannot integrate the lisp into my everyday work.  :cry:

keep up the great work Andrea...






Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 26, 2009, 04:49:48 PM
Finaly....



DILEADER v.2.0
(Dynamic Intelligent Leader)

Updates:
   - Reactor for Grips remake on release 1.9 was changed to prevent
     AutoCAD crash when trying to resize a viewport.This need to be rethink.
   - New Feature Multi Object Selection.
     Prompt user "Do you want Multiple Object Selectino ?(Y)es/(N)o"
   - DLEDIT entirely remake to allow Leader and Text Dynamic moving for
     the New Feature Multi Object Selection.
   - Work With XREF and Blocks


enjoy !
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 26, 2009, 06:49:37 PM
Superb   :lol:

I think you have outdone yourself again Andrea  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on August 27, 2009, 04:29:42 PM
Superb   :lol:

I think you have outdone yourself again Andrea  :-)

Thanks LeeMac.. ;-)

Want to see something cool ?

DiLeader will be "WIPEOUTED" !!     :)

Title: Re: Dynamic Intelligent Leader !
Post by: GDF on August 27, 2009, 04:47:11 PM
Superb   :lol:

I think you have outdone yourself again Andrea  :-)

Thanks LeeMac.. ;-)

Want to see something cool ?

DiLeader will be "WIPEOUTED" !!     :)




KOOL
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on August 27, 2009, 05:17:15 PM
Wow - that is cool!  :lol:
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on August 28, 2009, 01:36:42 AM
Quote
Thanks LeeMac..

Want to see something cool ?

DiLeader will be "WIPEOUTED" !!     


That definitely is cool !!
Title: Re: Dynamic Intelligent Leader !
Post by: New Shooz on September 01, 2009, 05:55:55 AM
This is a great bit of programming; however I wanted to make 2 comments:

1. I get an error when trying to point the DIL to a block (and even a viewport [not sure how often you would wish to point to a viewport, however] )

2. Like Lee Mac mentioned earlier in this thread - would it be possible to 'combine' this with the Multi-Leader wotsit ?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 01, 2009, 11:25:59 AM
Unfortunetly...I think that I can't..
because Mleader use his own xdata on pickpoint that can interfere with DiLEADER Object association.

see This (http://www.theswamp.org/index.php?topic=29245.msg353155#msg353155) post

can I ask you why you want to use Mleader ? (just curious)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 02, 2009, 04:07:56 PM
Finaly..  8-)

New Release..

DiLEADER v.2.2.2
Dynamic Intelligent Leader

Fixes:
   V.2.0.1 - 26-08-09   
   - DiLEDIT fix for Arrow switching with TAB key in Multi Object Selection
   - nil message removed in AutoCAD prompt line
   - Annotative Leader in Multi Object Selection Fixed

   V.2.1.1 - 30-08-09   
   - New Feature DiLEADER Auto-wipeout

   V.2.2.2 - 01-09-09   
   - Bug fix with text alignement on reactor object edition
   - Bug fix on WipeOUT multiple Leader Edition
   - Reactor OnDelete delete Wipeout if leader is deleted


On this release you will have some NEW options !


   - New command "DLMASK" allow user to mask Leader

   - New command "DLCUSTOMARROW" allow user to browse to a specific folder
     containing all custom arrow in dwg format and add to the existing   
     AutoCAD arrow block list.

DiLEADER allow you to Auto-Mask the Object under the Leader entity. (wipeout)
(http://www.theswamp.org/screens/Andrea/WipeoutCircle.gif)


DiLEADER allow you to add all Custom DWG Arrow Blocks. (pressing the TAB key)
(http://www.theswamp.org/screens/Andrea/arrowstyles.gif)


DiLEADER allow you to Multiple-Stretch with LeaderMask type
and switch all Mutiple arrow block by pressing TAB key.
(http://www.theswamp.org/screens/Andrea/MultiDemo.gif)



I hope you will like it.  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: MP on September 02, 2009, 04:11:18 PM
THAT'S SICK!!

English translation: good work Andrea. (http://www.theswamp.org/screens/mp/thumbsup.gif)
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 02, 2009, 04:38:05 PM
How do i get the leader arrow options? When do I use the tab key?
Title: Re: Dynamic Intelligent Leader !
Post by: Serge J. Gianolla on September 02, 2009, 06:16:11 PM
Putain, la vache c'est genial  :-o
Oops excuse my french  :evil:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 02, 2009, 11:19:24 PM
How do i get the leader arrow options? When do I use the tab key?

Gary,..
Yes, TAB key allow user to switch between all available Arrow Blocks.
If it don't work... let me know please. Maybe is a diffrent code depending the Keyboard.

Michael and Serge...
Thanks for showing your "emotivity"   :-D

I think now I've done with this program...
i'll fix reported bug if found.

Time to get a little break before picking another idea in the basket.  :whistle:
Title: Re: Dynamic Intelligent Leader !
Post by: alanjt on September 02, 2009, 11:33:42 PM
forget Mleaders, DiLEADER is the new ticket!
this is incredible Andrea!!!
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 03, 2009, 05:37:03 AM
Absolutely brilliant Andrea  :lol:
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 03, 2009, 08:31:50 AM
Hi Andrea,

Thanks again for sharing and spending time on this one! I believe this is the best lisp code I've ever came across !! Reason why?

1. The ideas are very good, it goes beyond standard autocad (or at least I think of it that way)
2. The variety inside (multiple styles, wipe outs, use of the TAB key etc.)
3. The use of it: this will be used by many

I can imagine you are done with this one now. You've got all the right to.
Just a little hint: inside the lisp you princ out :

Code: [Select]
(princ
"\n
DILEADER v.2.1.2   by Andrea Andreetti        -Loaded-
command list = DILEADER/DIL   : Create Dynamic Intelligent Leader.
               DILEADERA/DILA : Create dynamic Intelligent Annotative Leader.               
               DLCUSTOMARROW  : Select a Folder to add More DWG arrow type.
               DILEDIT : Edit Leader created by DiLEADER.
               [color=red]DLMAK   [/color] : Allow user to Draw Leader Over a Mask Wipeout.
       ")

Where the red part should be "dlmask". But don't consider this as a comment,  :realmad: ...

I think I will start a topic called "Tell us your best routine".... so there is gonna be a collection of this kinda great stuff. Anyone agree..?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 03, 2009, 09:04:36 AM
Aerdvark ..

Thanks for all your comment...
I realy appreciate.

The idea to have this new topic will be nice.
but theswamp have a topic named "Show your Stuff" (http://www.theswamp.org/index.php?board=11.0)
maybe user can put it there.?

Also,...I have made many hot routine that I can't share for legacy restriction.
but I can explain what it does and show some screenShot ?.. :kewl:

Anyway,....Nice to see that DiLeader is appreciated from many.  :roll:
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 03, 2009, 11:21:28 AM
Andrea

The promblems I am having is with the dimstyle and dimstyle overrides. If I use the standard style everything works fine, tab key and all.
When I use anyother dimstyle it creates an override and doesnot work (not arrows show up) and of course the tab key will not display the other options.
 
I think the problem is here on my end. I will get back to you when I figure it out.
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 03, 2009, 11:35:19 AM
Andrea

The promblems I am having is with the dimstyle and dimstyle overrides. If I use the standard style everything works fine, tab key and all.
When I use anyother dimstyle it creates an override and doesnot work (not arrows show up) and of course the tab key will not display the other options.
 
I think the problem is here on my end. I will get back to you when I figure it out.

I think it has to do with where I chose to place the DLCUSTOMARROW folder containing your arrow blocks.
When I use the DLCUSTOMARROW command, how do I chose a different folder using the browser?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 03, 2009, 02:48:23 PM
Hi Gary.. you'r right.  sorry for that..

Please replace the DLCUSTOMARROW  function by this one..

Code: [Select]
(defun c:DLCUSTOMARROW (/ DLCA)
(if (setq DLCA (getenv "DiLEADERcustomArrow"))
  (setq DLCA (strcat DLCA "\\"))
 )
(setq sh (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application"))
(setq folder (vlax-invoke sh 'browseforfolder 0 (strcat "Custom Arrow Folder...\nCurrent = " DLCA) 0 ))
(vlax-release-object sh)
(if folder
  (progn
    (setq Dir (vlax-get-property (vlax-get-property folder 'Self) 'Path))
    (setenv "DiLEADERcustomArrow" Dir)
  )
)
)

This will be added on the revised code with other fixes..


thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 03, 2009, 02:50:22 PM
Ok, I got it working. I had a broken custom dimstyle routine that needed fixen that was causing the trouble.

Works great now. And I had to modify my path:
(setenv "DiLEADERcustomArrow" "V:\\ARCH\\Custom_Architettura\\Dims\\")

Thanks Andrea for a great routine. Love it!!!
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 03, 2009, 02:52:59 PM
Hi Gary.. you'r right.  sorry for that..

Please replace the DLCUSTOMARROW  function by this one..

Code: [Select]
(defun c:DLCUSTOMARROW (/ DLCA)
(if (setq DLCA (getenv "DiLEADERcustomArrow"))
  (setq DLCA (strcat DLCA "\\"))
 )
(setq sh (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application"))
(setq folder (vlax-invoke sh 'browseforfolder 0 (strcat "Custom Arrow Folder...\nCurrent = " DLCA) 0 ))
(vlax-release-object sh)
(if folder
  (progn
    (setq Dir (vlax-get-property (vlax-get-property folder 'Self) 'Path))
    (setenv "DiLEADERcustomArrow" Dir)
  )
)
)

This will be added on the revised code with other fixes..


thanks.


Much better!!! Thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 03, 2009, 02:58:03 PM
i'm glad you like it !  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: GDF on September 03, 2009, 03:20:09 PM
Andrea

Your routine will not accept another textstyle other than "standard". I am pretty sure it is something that I am doing wrong...

Enclosed is how I set up my dim and text styles from the "FILE" dialog box:

These are old clunky routines from version 12, that someday I will have to clean up.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 03, 2009, 04:02:06 PM
Nice Catch....I didn't test with other dimstyles.. :evil:

But it is now fixed !  thanks !

Any other bug before I post 2.2.3 ?
Title: Re: Dynamic Intelligent Leader !
Post by: mdbdesign on September 03, 2009, 04:38:35 PM
Dialog box... :angel:
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 04, 2009, 12:47:37 AM
Hallo Andrea

Ich glaube die Pfeilgröße wird falsch berechnet.

Title: Re: Dynamic Intelligent Leader !
Post by: zanze02 on September 04, 2009, 06:15:47 AM
My compliments for your work Andrea!
I found a problem when I use a new UCS.
If not set as current WCS, at the prompt "Pick Text location..." text is positioned away from the cursor.

I have not found where to enter the function
(trans pt from 0 1)
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on September 04, 2009, 08:42:17 AM
Welcome to the Swamp Hugo and zanze02. 8-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 10:31:54 AM
Hi Hugo and zanze02...

First,...thank you taking time to register to theswamp and welcome.!

Second..Thank you for your bug report,...I didn't check the ucs....
...Take a look on this post i'll be back with the fix shortly.



Hugo:
Danke werde ich überprüfen und kehren mit einer neuen Version zurück
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 11:14:02 AM
Dialog box... :angel:

Yes,..this can be done.. thanks.   :kewl:

But,..maybe I can ask..?

Dialog DiLEADER contest ?

something like....:
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 04, 2009, 12:17:52 PM
Hallo CAB & Andrea

Ich kann aber leider kein Englisch, und muss alles auf Deutsch schreiben, hoffe das ist ok.

 :-( :-(
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 12:25:14 PM
Hugo ist kein Problem, gibt es Seiten .. Online-Übersetzung mach dir keine Sorgen, dass vor allem für

 :wink:

For who want to know...
He say that he is sorry,...cause he don't know any word in english..
I have answered that it is not a problem because there is many online website traductor..

I use : http://translate.google.fr/# (http://translate.google.fr/#)

:)
Title: Re: Dynamic Intelligent Leader !
Post by: Chris on September 04, 2009, 12:32:00 PM
Hallo CAB & Andrea

Ich kann aber leider kein Englisch, und muss alles auf Deutsch schreiben, hoffe das ist ok.

 :-( :-(

Diese Seite scheint gut für mich arbeiten : http://www.google.com/ig?hl=en&referrer=ign_n
This site seems to work fine for me: http://www.google.com/ig?hl=en&referrer=ign_n
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 12:56:58 PM
My compliments for your work Andrea!
I found a problem when I use a new UCS.
If not set as current WCS, at the prompt "Pick Text location..." text is positioned away from the cursor.

I have not found where to enter the function
(trans pt from 0 1)

FIXED !  thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 12:59:01 PM
Hallo Andrea

Ich glaube die Pfeilgröße wird falsch berechnet.



feste !   ( FIXED ! )
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 04, 2009, 01:40:36 PM
Dialog box... :angel:

Yes,..this can be done.. thanks.   :kewl:

But,..maybe I can ask..?

Dialog DiLEADER contest ?

something like....:


Andrea, is that OpenDCL?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 04, 2009, 02:05:19 PM
Dialog box... :angel:

Yes,..this can be done.. thanks.   :kewl:

But,..maybe I can ask..?

Dialog DiLEADER contest ?

something like....:


Andrea, is that OpenDCL?

Was made with QuickPreview Button from..
www.ObjectDCL.com (http://www.ObjectDCL.com)

...sorry.  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 07, 2009, 11:44:22 PM
New Release..

DiLEADER v.2.2.3
Dynamic Intelligent Leader

Fixes and novelties:

   - Bug Fix with DiLCUSTOMARROW allowing user to browse folder
   - Some Princ message fixed
   - Bug Fix with diffrent Dimstyle than "Standard"
   - Bug Fix if Dimasz and Dimtxt is set to 0 (default = dimscale)
   - Bug Fix with UCS WCS conversion.
   - By pressing CANCEL on DLCUSTOMARROW function this will allow user
     to remove the DiLEADER Custom Arrow Path.
   - New command: DiLCONFIG allow user to set DiLEADER via Dialog Box.
   - DLMASK renamed to DiLMASK and DLCUSTOMARROW renamed to DiLCUSTOMARROW
     To respect DiL name standard.
   - New command DiLATTACH allow to created DiLEADER with exiting TEXT.

 :roll:
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 08, 2009, 01:49:08 AM
Hi Andrea,

Looks great to me, might want to share the code with us?
You did not post the lisp routine itself.

Very well done!
Regards,
Marco
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on September 08, 2009, 09:05:46 AM
Great Job Andrea!
How many man hours do you have in the now? 8-)
Title: Re: Dynamic Intelligent Leader !
Post by: MP on September 08, 2009, 09:53:57 AM
How many man hours do you have in the now? 8-)

is that a zen question? (http://www.theswamp.org/screens/mp/poke.gif)
Title: Re: Dynamic Intelligent Leader !
Post by: alanjt on September 08, 2009, 11:41:02 AM
this thing is out of control. i can't compliment you enough on this Andrea.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 08, 2009, 11:55:56 AM
Oops !... :lmao:

sorry guys..

Well,...thanks for all your comments suggestions and compliments..
For me...It is not important how many hours, day or month I spent to make a program..
I always learn.  :kewl:
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 08, 2009, 11:58:31 AM
Hallo Andrea

Wo kann man die neue Version Uploaden.
Danke
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on September 08, 2009, 12:14:38 PM
How many man hours do you have in the now? 8-)

is that a zen question? (http://www.theswamp.org/screens/mp/poke.gif)
No zen intended. :-)
Was genuinely interested in the count. Reflecting to past projects I know the hours just pile up.
Some roads I would not have gone down had I known. 8-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 08, 2009, 12:16:47 PM
Hallo Andrea

Wo kann man die neue Version Uploaden.
Danke

hier (http://www.theswamp.org/index.php?action=dlattach;topic=29245.0;attach=13496), lade ich Sie auch Ihren Text mit diesem (http://translate.google.fr/translate_t?prev=hp&hl=fr&js=y&text=Wo+kann+man+die+neue+Version+Uploaden&file=&sl=de&tl=fr&history_state0=#fr|de|ici%2C%20Je%20t'invite%20aussi%20a%20traduite%20tes%20textes%20avec%20ceci%20avant%20de%20les%20diffuser) vor der Ausstrahlung übersetzt
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 08, 2009, 02:48:22 PM
Danke Andrea

Echt ein Super Lisp.
Danke Danke
Title: Re: Dynamic Intelligent Leader !
Post by: architecture68-raff on September 08, 2009, 02:56:32 PM
Ich habe nicht gewusst, dass jemand hier spricht Deutsch   :-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 08, 2009, 02:59:51 PM
Ich habe nicht gewusst, dass jemand hier spricht Deutsch   :-)

Ich wusste nicht, gab es zwei  :wink:

Danke Marco.
Title: Re: Dynamic Intelligent Leader !
Post by: Sebb77 on September 08, 2009, 03:30:29 PM
 :-o   My goodness your creativity level is going through the roof !! Excellent as always...
You're making LISPER MAGASINE 's cover this month....again...  :-D

Seb
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 08, 2009, 03:36:03 PM
Andrea I get this with the latest version:

Quote
Command: dil

(T)ext/(M)text ?<M>: t

Do you want Multiple Object Selection ?(Y)es/(N)o ?<YES>: n

Text: Lee Mac

Select Object...
Pick Text location...
bad argument type: 2D/3D point: nil

Just tried clicking on a closed LWPolyline...
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 08, 2009, 03:54:01 PM
One thing I do notice, you write a lot of registry keys with the program, I count about 5... is this really necessary? I suppose it doesn't matter too much with todays machines, but I was always advised not to bloat the registry too much  :|
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 08, 2009, 04:51:40 PM
One thing I do notice, you write a lot of registry keys with the program, I count about 5... is this really necessary? I suppose it doesn't matter too much with todays machines, but I was always advised not to bloat the registry too much  :|

Lee,..you'r right,
this was just to keep the Config settings..

but maybe it will be better to write on a text file ?
I think that way will be useful to share config via network and user will not loose there settings each time they change the PC.
Is that make sence ?


Seb...Thanks ! I'm glad that you like the program.  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 08, 2009, 07:23:10 PM
Good idea with the Text File - or maybe just one registry key with the information in a list?

Title: Re: Dynamic Intelligent Leader !
Post by: alanjt on September 08, 2009, 10:09:50 PM
One thing I do notice, you write a lot of registry keys with the program, I count about 5... is this really necessary? I suppose it doesn't matter too much with todays machines, but I was always advised not to bloat the registry too much  :|

Lee,..you'r right,
this was just to keep the Config settings..

but maybe it will be better to write on a text file ?
I think that way will be useful to share config via network and user will not loose there settings each time they change the PC.
Is that make sence ?


Seb...Thanks ! I'm glad that you like the program.  ;-)

excellent idea with the text file.
being able to write out all settings to an ini, etc. that could be placed on the network would be the best option.
Title: Re: Dynamic Intelligent Leader !
Post by: alanjt on September 08, 2009, 10:12:44 PM
Good idea with the Text File - or maybe just one registry key with the information in a list?


i thought you could only write strings to the registry? then you would have to comma delineate it before writing to registry and converting to list for processing, or am i wrong about the registry?

great idea to combine everything.
Title: Re: Dynamic Intelligent Leader !
Post by: zanze02 on September 09, 2009, 03:52:15 AM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

  ;;Create leader point
(if (> (distance int urpoint) (distance int ulpoint))....
"urpoint" is nil and "ulpoint" is nil


into dilconfig function and createdildialog function
"(strcat (getvar "SAVEFILEPATH") "dlconfig.dcl")"
is "D:\\Tempdlconfig.dcl"
adding "\\" write the correct file name path
"(strcat (getvar "SAVEFILEPATH")"\\" "dlconfig.dcl")"
is "D:\\Temp\\dlconfig.dcl"

regards
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 09, 2009, 07:23:55 AM
Good idea with the Text File - or maybe just one registry key with the information in a list?


i thought you could only write strings to the registry? then you would have to comma delineate it before writing to registry and converting to list for processing, or am i wrong about the registry?

great idea to combine everything.

I would vl-princ-to-string a list and write it to the registry, then read it when retrieving - but the text file seems like the best option.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 09, 2009, 08:39:01 AM
Hi....

First,..welcome to theswamp !  :-)

Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ? 


  ;;Create leader point
(if (> (distance int urpoint) (distance int ulpoint))....
"urpoint" is nil and "ulpoint" is nil
some variable are local and will aways return nil at the end if they was nil


into dilconfig function and createdildialog function
"(strcat (getvar "SAVEFILEPATH") "dlconfig.dcl")"
is "D:\\Tempdlconfig.dcl"
adding "\\" write the correct file name path
"(strcat (getvar "SAVEFILEPATH")"\\" "dlconfig.dcl")"
is "D:\\Temp\\dlconfig.dcl"

I do not understand..why you don't have the "\\" at the end...
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 09, 2009, 08:44:04 AM
Good idea with the Text File - or maybe just one registry key with the information in a list?


i thought you could only write strings to the registry? then you would have to comma delineate it before writing to registry and converting to list for processing, or am i wrong about the registry?

great idea to combine everything.


I have think about it yesterday..
but I think that can't make big diffrence..
because I need to save the Path of the configuration text file (ini) in the registry...lol !
or maybe to another local text file who have information of the network path location...ah !
Title: Re: Dynamic Intelligent Leader !
Post by: alanjt on September 09, 2009, 08:51:07 AM
Good idea with the Text File - or maybe just one registry key with the information in a list?


i thought you could only write strings to the registry? then you would have to comma delineate it before writing to registry and converting to list for processing, or am i wrong about the registry?

great idea to combine everything.


I have think about it yesterday..
but I think that can't make big diffrence..
because I need to save the Path of the configuration text file (ini) in the registry...lol !
or maybe to another local text file who have information of the network path location...ah !

have it in a support path, with additional options.

(or (findfile "blah.ini")
     (vl-registry-read
     (vl-registry-write
)
Title: Re: Dynamic Intelligent Leader !
Post by: architecture68-raff on September 09, 2009, 09:16:44 AM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ?  

I am getting this error too no matter what kind of object I select, but I am using Autocad 2005.  Although I don't remember what the exact reason is, I seem to recall an explanation as to why your other dynamic routines (dhatch, dcloud, etc.) will not function correctly in older versions.  Perhaps this is part of his problem?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 09, 2009, 09:55:26 AM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ?  

I am getting this error too no matter what kind of object I select, but I am using Autocad 2005.  Although I don't remember what the exact reason is, I seem to recall an explanation as to why your other dynamic routines (dhatch, dcloud, etc.) will not function correctly in older versions.  Perhaps this is part of his problem?

Fixed !  thanks..
was an error on local variables.  ;-)

DiLEADER 2.2.4
Title: Re: Dynamic Intelligent Leader !
Post by: architecture68-raff on September 09, 2009, 09:59:38 AM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ?  

I am getting this error too no matter what kind of object I select, but I am using Autocad 2005.  Although I don't remember what the exact reason is, I seem to recall an explanation as to why your other dynamic routines (dhatch, dcloud, etc.) will not function correctly in older versions.  Perhaps this is part of his problem?

Fixed !  thanks..
was an error on local variables.  ;-)

DiLEADER 2.2.4

Can't speak for zanze02, but it seems to work as advertised for me now.

Thanks!  Great tool.
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 09, 2009, 11:31:45 AM
Hallo Andrea

Bei mir sind immer die Pfeile zu gross.
Was muss ich da einstellen. (siehe Bild)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 09, 2009, 12:16:19 PM
Hallo Andrea

Bei mir sind immer die Pfeile zu gross.
Was muss ich da einstellen. (siehe Bild)


Blick auf die Variablen und mir sagen, was sie sind:

DIMASZ
DIMSCALE
DIMTXT
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 10, 2009, 12:47:32 AM
Hallo Andrera

DIMASZ 2.50
DIMSCALE 35.00
DIMTXT 2.50

Danke
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 10, 2009, 01:30:46 AM
Hi Andrea,

It certainly works great now !!
A few days ago you said you felt like you were done with this lisp.
Well it turns out that you were not  :-P

As many others I once again say: great job !

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 10, 2009, 08:34:07 AM
Hallo Andrera

DIMASZ 2.50
DIMSCALE 35.00
DIMTXT 2.50

Danke

Hallo Hugo, ich verstehe nicht, warum es nicht funktioniert. Könnten Sie mir Ihr Bild?
Ich lade Sie auch zu Ihrem Text, bevor sie sie auf theswamp übersetzen.

http://translate.google.com/# (http://translate.google.com/#)

danke.



Aerdvark....
Thank you I realy appreciate. DiLEADER grow up with your comments ans suggestions.
Title: Re: Dynamic Intelligent Leader !
Post by: Shade on September 10, 2009, 09:44:06 AM
This is a great little program and I have been following the progress for quite sometime now.
Trying out the odd new versions as they become available.
I have one little problem though, that I thought was part of the original program.
When I move the leader text, the leader(s) do no follow, like when you more the objects (ie. circle, line).
Is the text supposed to stay stationary and only the object can move and the leader reacts to the new position?
Myself and other at my office like the idea of the lisp, but we tend to move the leader text more then the objects the leader is pointing to.
We move the text more to fit in a viewport when detailing, if you are curious why.
Is it possible to put a reactor on the text also?

Keep up the great work I look forward to the next version, that is if there is one......

Shade :mrgreen:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 10, 2009, 10:02:50 AM
This is a great little program and I have been following the progress for quite sometime now.
Trying out the odd new versions as they become available.
I have one little problem though, that I thought was part of the original program.
When I move the leader text, the leader(s) do no follow, like when you more the objects (ie. circle, line).
Is the text supposed to stay stationary and only the object can move and the leader reacts to the new position?
Myself and other at my office like the idea of the lisp, but we tend to move the leader text more then the objects the leader is pointing to.
We move the text more to fit in a viewport when detailing, if you are curious why.
Is it possible to put a reactor on the text also?

Keep up the great work I look forward to the next version, that is if there is one......

Shade :mrgreen:


Hi shade,

are you using DilEdit ?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 10, 2009, 10:13:54 AM
Hallo Andrea

Habe ein Zip angehängt mit einer DWG.

Danke
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 10, 2009, 11:52:56 AM
This Drawing doesn't work on 2008 but work on 2010..

I have set the same Dim variable on a blank drawing...
I have explode the leader and insert on that drawing to know if the problem come form the textsize or the arrowsize..
it seem to be the arrow size....it keep always the non-override dimstyle.

Bug on this drawing or a variable I don't know ?
If some of you can give this a try..

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Pad on September 10, 2009, 12:24:36 PM

are you using DilEdit ?

ah right i see.  I was selecting them after creating them and wondering why they weren't moving as in your animations.
I should have read the instructions. Diledit works like a charm.

Thanks
Title: Re: Dynamic Intelligent Leader !
Post by: MeasureUp on September 13, 2009, 09:07:30 PM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ?  

I am getting this error too no matter what kind of object I select, but I am using Autocad 2005.  Although I don't remember what the exact reason is, I seem to recall an explanation as to why your other dynamic routines (dhatch, dcloud, etc.) will not function correctly in older versions.  Perhaps this is part of his problem?

Fixed !  thanks..
was an error on local variables.  ;-)

DiLEADER 2.2.4
Hi Andrea,
Thanks for your sharing.
I tried your code but found a problem.
It made a number of copies of leaders when I moved the mouse.
Please see the attachements.
Thanks again.
Title: Re: Dynamic Intelligent Leader !
Post by: zanze02 on September 14, 2009, 03:27:23 AM
Hi....

First,..welcome to theswamp !  :-)

Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ? 


  ;;Create leader point
(if (> (distance int urpoint) (distance int ulpoint))....
"urpoint" is nil and "ulpoint" is nil
some variable are local and will aways return nil at the end if they was nil


into dilconfig function and createdildialog function
"(strcat (getvar "SAVEFILEPATH") "dlconfig.dcl")"
is "D:\\Tempdlconfig.dcl"
adding "\\" write the correct file name path
"(strcat (getvar "SAVEFILEPATH")"\\" "dlconfig.dcl")"
is "D:\\Temp\\dlconfig.dcl"

I do not understand..why you don't have the "\\" at the end...



I checked the values of variables with Debug Visual Lisp Editor

I changed the path using the tab "File" from "Options", this removes the "\" at the end.
I use "Autodesk Map 3D 2006 - Italiano SP1"

My first message was at "Reply #116"

Regards and i apologize for my not perfect English
I will try the new version as soon as possible

Title: Re: Dynamic Intelligent Leader !
Post by: zanze02 on September 14, 2009, 04:16:00 AM
Quote
If not set as current WCS, at the prompt "Pick Text location..." text is positioned away from the cursor.

on DILEDIT command, the problem remains when using a new UCS.
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 14, 2009, 07:35:37 AM
Andrea,

I normally use this when dealing with filepaths:

Code: [Select]
(setq fpath "C:\\Lee Mac")

(or (eq "\\" (substr fpath (strlen fpath)))
    (setq fpath (strcat fpath "\\")))

 :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on September 14, 2009, 09:20:21 AM
How does it work with "%UserProfile%\\Application Data\\Autodesk\\MEP 2010\\enu\\Support"  ?
I have workstations inadvertently unloading Express tools in 2010, still trying to figure out the why.
Regardless it leaves the workstations with an unable to load customization file command line prompt.
Makes quite a few bugs occur with publishing especially.
But when I try to make a check for it and reload it isn't working.

Code: [Select]
(if (null (menugroup "express"))
  (command "menuload" "express")
)

Maybe null is the wrong check to use?
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on September 14, 2009, 12:56:41 PM
Hmmm maybe I should be paying more attention to "LOCALROOTPREFIX"
but I have had this error on some installations as well.
The dangdest part is only people with high level Administrative permissions seem to have problems.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 14, 2009, 02:35:04 PM
Hi Andrea,
does not work:
 
Pick Text location...
bad argument type: 2D/3D point: nil

At this point,...what kind of object entity you have selected ?  

I am getting this error too no matter what kind of object I select, but I am using Autocad 2005.  Although I don't remember what the exact reason is, I seem to recall an explanation as to why your other dynamic routines (dhatch, dcloud, etc.) will not function correctly in older versions.  Perhaps this is part of his problem?

Fixed !  thanks..
was an error on local variables.  ;-)

DiLEADER 2.2.4
Hi Andrea,
Thanks for your sharing.
I tried your code but found a problem.
It made a number of copies of leaders when I moved the mouse.
Please see the attachements.
Thanks again.

MeasureUp,..welcome to the swamp....;-)

thanks reporting this issue...but after downloading your drawing...I can'T reproduce the problem..
but,..i'l will make more tests...

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 14, 2009, 02:36:05 PM
Quote
If not set as current WCS, at the prompt "Pick Text location..." text is positioned away from the cursor.

on DILEDIT command, the problem remains when using a new UCS.
Hi Zanze..

can you provide a drawing with your named UCS ?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 14, 2009, 02:37:25 PM
Andrea,

I normally use this when dealing with filepaths:

Code: [Select]
(setq fpath "C:\\Lee Mac")

(or (eq "\\" (substr fpath (strlen fpath)))
    (setq fpath (strcat fpath "\\")))

 :wink:

thanks Lee...
;-)

but I don't know why (getvar "SAVEFILEPATH") have diffrent result..!?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 14, 2009, 02:39:29 PM
Hmmm maybe I should be paying more attention to "LOCALROOTPREFIX"
but I have had this error on some installations as well.
The dangdest part is only people with high level Administrative permissions seem to have problems.


Thanks KewlToyZ ..
I'll fix that shortly..
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 14, 2009, 07:26:15 PM
Andrea,

I normally use this when dealing with filepaths:

Code: [Select]
(setq fpath "C:\\Lee Mac")

(or (eq "\\" (substr fpath (strlen fpath)))
    (setq fpath (strcat fpath "\\")))

 :wink:

thanks Lee...
;-)

but I don't know why (getvar "SAVEFILEPATH") have diffrent result..!?

SAVEFILEPATH is Read/Write  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 14, 2009, 09:18:08 PM
Andrea,

I normally use this when dealing with filepaths:

Code: [Select]
(setq fpath "C:\\Lee Mac")

(or (eq "\\" (substr fpath (strlen fpath)))
    (setq fpath (strcat fpath "\\")))

 :wink:

thanks Lee...
;-)

but I don't know why (getvar "SAVEFILEPATH") have diffrent result..!?

SAVEFILEPATH is Read/Write  ;-)

I mean....why sometime it end with a backslash and some time not ??
Title: Re: Dynamic Intelligent Leader !
Post by: MeasureUp on September 14, 2009, 11:34:11 PM
MeasureUp,..welcome to the swamp....;-)

thanks reporting this issue...but after downloading your drawing...I can'T reproduce the problem..
but,..i'l will make more tests...

thanks.
I had the same result in v2009 mech & v2010 mech.
Perhaps you use other version?
Thanks again.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 15, 2009, 12:23:04 PM
MeasureUp,..welcome to the swamp....;-)

thanks reporting this issue...but after downloading your drawing...I can'T reproduce the problem..
but,..i'l will make more tests...

thanks.
I had the same result in v2009 mech & v2010 mech.
Perhaps you use other version?
Thanks again.

Tested from Acad 2005 thrue 2010 french & english release
Title: Re: Dynamic Intelligent Leader !
Post by: zanze02 on September 16, 2009, 03:57:52 AM
Quote
If not set as current WCS, at the prompt "Pick Text location..." text is positioned away from the cursor.

on DILEDIT command, the problem remains when using a new UCS.
Hi Zanze..

can you provide a drawing with your named UCS ?

Andrea,
I apologize but this happens only in an old drawing.
however, in a new drawing with named UCS at the DIL command, the text is under the line.
I attach the sample file
regards
Title: Re: Dynamic Intelligent Leader !
Post by: Tramber on September 16, 2009, 02:33:54 PM
Hi Andrea !
It's been a long long time since I came on the swamp.
But I've just seen most of the stuff you published here in 2009 [with the help of Camtasia (!)].

Great job(s)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 16, 2009, 09:14:14 PM
Hi Andrea !
It's been a long long time since I came on the swamp.
But I've just seen most of the stuff you published here in 2009 [with the help of Camtasia (!)].

Great job(s)

Merci Bertrand !  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 16, 2009, 09:55:50 PM
OK....

I Think that I need a little help on this one...
attached...a dwg file (2004 format) with a simple Leader.

Arrow head size = 0.2

but if I use
Code: [Select]
(vla-get-arrowheadsize
  (vlax-ename->vla-object (car (entsel)))
)

he give me:

Arrow head size = 1.0

any idea ?
Title: Re: Dynamic Intelligent Leader !
Post by: Kerry on September 16, 2009, 10:11:04 PM
Where did you get the Arrow Size as being 0.2 from ??

Opened in ACADM2010 this is my result:

Command: dumper
Select object: ; IAcadLeader: AutoCAD Leader Interface
; Property values:
;   Annotation = nil
;   Application (RO) = #<VLA-OBJECT IAcadApplication 00d5c1bc>
;   ArrowheadBlock = "Dot"
;   ArrowheadSize = 1.0
;   ArrowheadType = 3
;   Coordinate = ...Indexed contents not shown...
;   Coordinates = (-3177.61 17242.4 0.0 -3175.89 17242.9 0.0 ... )
;   DimensionLineColor = 0
;   DimensionLineWeight = -2
;   Document (RO) = #<VLA-OBJECT IAcadDocument 13150070>
;   Handle (RO) = "2505"
;   HasExtensionDictionary (RO) = 0
;   Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 2c94d50c>
;   Layer = "0"
;   Linetype = "ByLayer"
;   LinetypeScale = 1.0
;   Lineweight = -1
;   Material = "ByLayer"
;   Normal (RO) = (0.0 0.0 1.0)
;   ObjectID (RO) = 2128778600
;   ObjectName (RO) = "AcDbLeader"
;   OwnerID (RO) = 2128846072
;   PlotStyleName = "ByLayer"
;   ScaleFactor = 0.2
;   StyleName = "cfS m 1a200"
;   TextGap = 0.5
;   TrueColor = #<VLA-OBJECT IAcadAcCmColor 2c98de30>
;   Type = 2
;   VerticalTextPosition = 1
;   Visible = -1

Not sure about 2004, but I note that the
;   ArrowheadSize = 1.0
and
;   ScaleFactor = 0.2

Title: Re: Dynamic Intelligent Leader !
Post by: Kerry on September 16, 2009, 10:13:14 PM


Then , if you explode the Leader, and investigate the arrow block ;

LIST
Select objects: 1 found

Select objects:

                  BLOCK REFERENCE  Layer: "0"
                            Space: Model space
                   Handle = 262c
       Block Name: "_Dot"
                at point, X=   0.4573  Y=   0.4044  Z=   0.0000
   X scale factor:    0.2000
   Y scale factor:    0.2000
   rotation angle:    196
   Z scale factor:    0.2000
  Scale uniformly: No
  Allow exploding: Yes
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 16, 2009, 10:38:40 PM
There it is...

ScaleFactor = 0.2

thanks Kerry.
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 21, 2009, 06:22:48 AM
Hallo Andrea

There it is...

ScaleFactor = 0.2

thanks Kerry.

Und was muss ich jetzt einstellen, damit es klappt mit der Pfeilgösse.
Danke
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 21, 2009, 10:34:25 AM
Hallo Andrea

There it is...

ScaleFactor = 0.2

thanks Kerry.

Und was muss ich jetzt einstellen, damit es klappt mit der Pfeilgösse.
Danke



Hallo Hugo..
please be patient...I am currently working on a new version. Thanks. (http://translate.google.fr/translate_t?prev=hp&hl=fr&js=y&text=Und+was+muss+ich+jetzt+einstellen%2C+damit+es+klappt+mit+der+Pfeilg%C3%B6sse&file=&sl=de&tl=fr&history_state0=#en|de|please%20be%20patient...I%20am%20currently%20working%20on%20a%20new%20version.%20Thanks.)

 :-)

Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 21, 2009, 12:20:16 PM
Hallo Andrea

Ok

Danke für rückmeldung
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 22, 2009, 01:57:09 AM
Hi Andrea,

I still am following this thread! Still like the discussion and I try every new update.
There is a thing that I would like to know, and maybe you can help me clear it up.

Is it possible to change the angle of the leader? I mean like 90 degrees or 0 degrees?
You should not alter the code only for my request but maybe you can show me where to look to alter it myself.
Or maybe that it works kinda "ortho"-like.

And also: the routine places the text left or right of the arrow leader. When moving the  leader at one point it flips the text over to the other side.
It would be nice to have a switch in there, ie. when the arrow is placed the text appears on the left or right.
With TAB you can choose wich arrow head you want. And maybe with SPACE flip it left <-> right.
Maybe I'm not to clear... Dutch ah... :ugly:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 22, 2009, 08:16:55 PM
Hi Aerdvark,

Thanks for your suggestions...
I'm a little busy at the moment (working on a new Project)
so i'll give a look soon on your request.

By the way....I do not understand what is the advantage to flip Left->Right the text entity..
can you provide any exemple ?

for the moment...there is some fix.

DiLEADER 2.2.5

also, you will see a new icon when the cursor crosses over a Leader entity created by QLEADER.
This new icon will allow me to transform this entity to a DiLeader Object on request for the next release.

 :kewl:
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on September 23, 2009, 06:23:25 AM
Hallo Andrea

Danke jetzt sind meinen Pfeilspitzen ok.

Super Tool
Title: Re: Dynamic Intelligent Leader !
Post by: kevinpo on September 23, 2009, 10:18:10 AM
Very Nice Program Andrea.  What about typing in the text after the leader is placed instead of at the command line?
And, what about using up and down arrow keys to adjust the arrow size on the fly?

Great Work!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 23, 2009, 12:05:15 PM
Very Nice Program Andrea.

thanks  ;-)



Very Nice Program Andrea.  What about typing in the text after the leader is placed instead of at the command line?

Not sure about your request.....
DiLeader allow Both.
if you don't enter any text at the command line it will ask on the graphic screen.



Quote
And, what about using up and down arrow keys to adjust the arrow size on the fly?

Nice Idea..
But is this will not interfer with the Company size standard ?

sure..I can get the + - key code or the arrowKey on the numPad
but can't get the arrow Key.
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on September 23, 2009, 12:56:20 PM

Quote
And, what about using up and down arrow keys to adjust the arrow size on the fly?
Nice Idea..
But is this will not interfer with the Company size standard ?

Put a variable to flag the feature On / OFF so the admin can control it. 8-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 25, 2009, 03:13:46 PM
Hi all,...

I would like to thank you about all your comments, bug report and suggestions.
I realy appreciate.

There is a New release.

DiLEADER 2.2.6
Dynamic Intelligent Leader

Bug Fix:
- Fix for dilATTACH : Arrow End Point
- Fix for Multi-Leader : Arrow End Point
- Princ test messages removed.

What's new?:

- Configuration panel have now 2 more flags.
(http://www.theswamp.org/screens/Andrea/dilconfigPanel.bmp)

   1) Allow Dynamic arrow resizing:
       this allow user to use + or - key to change the arrow size in real time
(http://www.theswamp.org/screens/Andrea/arrowsize.gif)

   2) Auto-Convert Qleader->DiLEADER:
       this allow user to use DiLEDIT with Qleader entity.
       it detect the nearest object entity of the arrow start point.
       if there is no object, Auto-Convert do nothing.
(http://www.theswamp.org/screens/Andrea/Dilconvert.gif)

- DiLEADER will now draw the Leader perpendicular to the object.
(http://www.theswamp.org/screens/Andrea/perpendicular.bmp)

- Object switch !  this new feature was added on Qleader entity and allow user to
   replace object pointed by the Leader.
(http://www.theswamp.org/screens/Andrea/DilObjectSwitch.gif)



I think that last feature is cool, and i'll work on it to improve this tool.

Enjoy ! and have a nice weekend all !

Title: Re: Dynamic Intelligent Leader !
Post by: kevinpo on September 25, 2009, 03:44:34 PM
WOW! you have outdone yourself again. 
All works great.  I need to find out how you put the little arrow at the cursor on DiLedit.

Very Nice.

Kevin
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 26, 2009, 01:07:23 PM
OMG yes the perpendicular thingy is very cool ! :lol:
Must say it gets better every time !

I have tried to give you an example "of the switch I mentioned" but I could not create a situation in wich it would be needed. I have come across a situation once where it did not do what I wanted but since I can't create such situation myself: please ignore my silly idea, it was maybe a bit too far. (Modify the code for such small thingy... :pissed:)

Great work !

I (and many others) allready await your new project whatever that me be !
Title: Re: Dynamic Intelligent Leader !
Post by: rhino on September 27, 2009, 01:02:39 PM
simpl awesome andrea -- Thanks!!!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 27, 2009, 08:22:38 PM
Thanks to you guys...you comments and suggestions was helpful.

Many other project on the table....
But I think that LeeMac have same project list ! ;-)
Time is missing a bit....but I"ll be back with more soon.
thanks.


Andrea
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on September 28, 2009, 05:05:24 AM
Thanks to you guys...you comments and suggestions was helpful.

Many other project on the table....
But I think that LeeMac have same project list ! ;-)

Definitely  :wink:

Great work here Andrea, I look forward to seeing your next projects  :-)

Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on September 29, 2009, 01:31:05 AM
Hi Andrea,

I am sorry to say but I tried the code and there is something wrong ... can't help you to find out where it goes wrong but this is what happens:

Code: [Select]
Command:
DILA
(T)ext/(M)text ?<M>:

Do you want Multiple Object Selection ?(Y)es/(N)o ?<NO>:

Text: TEST

Select Object...
Pick Text location...
bad DXF group: (10)

In my case this happens on a pline whenever the dila gets to 0 degrees or to 180degrees.
If it is a Pline on the x axis it's okay. Dila on a pline other than that don't seem to work.

Here is a link to a short video of what happens, maybe it is useful for you.

http://www.freewebtown.com/engl/dila_prob.avi (http://www.freewebtown.com/engl/dila_prob.avi) (Rightclick and save as)

The 90 degree angle is very nice, can that be done to on vertical lines?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 29, 2009, 05:40:13 AM
ok thanks....

i'll be back with the fix..  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 29, 2009, 09:04:51 AM
There we go...

DiLEADER v.2.2.7
D y n a m i c   I n t e l l i g e n t   L e a d e r

The problem was with the wipeout on horizontal Leader. ;-)
I also add an English/French translation messages.

 :police:

Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on October 01, 2009, 02:00:20 AM
(http://img.smileys.nl/405/thumbsup.gif) You did it. Great Work, Tnx.
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on October 21, 2009, 03:11:39 AM
Hello Andrea,

Do you have any idea why I encounter the following problem?
Whenever I open a new drawing (from scratch) the DILA leader is perpendicular to the line / object as it is supposed to be. So that's good.

In some occasions, for example existing drawings in wich I used an early version of "dileader", the dileader stays the way it was / is. So not perpendicular.
I tried to erase all the dileaders and apply new ones but it don't seem to work. They stay not-perpendicular.

I figure you have set something in the windows register... true? And how can I (or you) fix this? For the perpendicular dileaders are much more attractive to see on an actual drawing when it is plotted.

Maybe it is a drawing specific parameter, but I can't find out which.

So please help, so I can continue using the dileader. It is stil a great routine!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on October 21, 2009, 03:57:08 PM
Hello Andrea,

Do you have any idea why I encounter the following problem?
Whenever I open a new drawing (from scratch) the DILA leader is perpendicular to the line / object as it is supposed to be. So that's good.

In some occasions, for example existing drawings in wich I used an early version of "dileader", the dileader stays the way it was / is. So not perpendicular.
I tried to erase all the dileaders and apply new ones but it don't seem to work. They stay not-perpendicular.

I figure you have set something in the windows register... true? And how can I (or you) fix this? For the perpendicular dileaders are much more attractive to see on an actual drawing when it is plotted.

Maybe it is a drawing specific parameter, but I can't find out which.

So please help, so I can continue using the dileader. It is stil a great routine!


Hi, could you provide a drawing who have the problem ?
i'll check that soon.

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: flopo on November 16, 2009, 07:56:55 AM
Hello Andrea,
Attached i send a lisp that make automatic numbering, 1,2,3...etc. Can you modify your lisp to do automatic numbering when Dynamic Intelligent Leader is inserted? I mean, to insert an Dynamic Intelligent Leader with "1" text, then 2, 3.... Thanks!
Title: Re: Dynamic Intelligent Leader !
Post by: cmwade77 on November 16, 2009, 12:21:43 PM
Andrea, I would love to see this use mleaders instead of standard leaders, as they tend to work better with annotation scaling.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 16, 2009, 06:24:33 PM
Hi Flopo and. Mr. Wade

thanks for your suggestions...
DiLeader will be improved soon to allow more flexibility and more options..
at the moment...i'm trying to fix some little bug and be back with a new release.

Thanks.  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: flopo on November 26, 2009, 05:59:28 AM
nothing new here? :)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 26, 2009, 11:34:03 AM
nothing new here? :)

Yep !..

DiLEADER will be remake to allow user more flexibility and productivity.

first, the DiLConfig panel will be improved and allow more options.

Below, a Gif showing you 2 more modif.
- Reactor on Text Moved, scaled and/or rotated will be added
- DilAttach command will allow user to select via "crossing" objects.

also, I take this moment to announce you that I have grouped all my Dynamic Routine on my server.
http://www.ductisoft.com/FreeLisp/freelispwebsiteEN.html (http://www.ductisoft.com/FreeLisp/freelispwebsiteEN.html)

For now,.. I am still working on DilLeader and come back shortly.
thanks all.


Title: Re: Dynamic Intelligent Leader !
Post by: xianaihua on December 06, 2009, 12:24:08 AM
Great work !
thanks very much
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 06, 2009, 06:31:26 PM
Great work !
thanks very much

Thank  you Xianaihua ! and welcome !
I thing that DiLeader is popular ...or will be.

It bring some new user on theswamp !
aerdvark, zanze02, hugo, measureup, and now you Xianaihua.

Thanks to you guys for taking time to register to theswamp and put at the first post a comment like you did.

I won't let you down ..and I'll be back with a new version shortly.

Andrea.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 01:13:13 PM
Hi all..

Like promised...

DiLEADER 2.2.8
Dynamic Intelligent Leader

is now released !

Bug Fix:
   - Fix UCS-WCS and block rotation revised
   - Fix Wipeout for Leader UCS-WCS


New Features:
   - No more settings in registry -> replaced with dlconfig.cfg file
     Allowing user to have same config by sharing this file over a network
   - Reactor improved to allow to move stretch and scale any object and TEXT in the drawing.
   - DilAttach allow now crossing selection object.
   - DilConfig dialog Improved and use now ObjectDCL technology.(not provided)
   - New Auto-Numbering Leader allowing many diffrent auto-Numbering style.
   - New command list and features are in the help file provided in the installation zip.
     2 Help file (English and French)
   - Dialog Box can be edited via custom language files provided with the installation.
     (Included: English,Francais,Allemand,Albanais,Portugal,Italiano,Island)
     don't be shy to create your own language file and share with all.


Below, a gif showing DilAttach via crossing object.
(http://www.theswamp.org/screens/Andrea/2.2.8im2.gif)

Below, a gif showing New Dialog interface.
Note the Tab-Drop-Down menu at the top left.  ;-)
(http://www.theswamp.org/screens/Andrea/dialogBox.gif)

Below, some gif showing diffrent Auto-Numbering options and result.
(http://www.theswamp.org/screens/Andrea/auto-numb1.gif)
(http://www.theswamp.org/screens/Andrea/auto-numb2.gif)
(http://www.theswamp.org/screens/Andrea/auto-numb3.gif)
(http://www.theswamp.org/screens/Andrea/auto-numb4.gif)
(http://www.theswamp.org/screens/Andrea/auto-numb5.gif)
(http://www.theswamp.org/screens/Andrea/auto-numb6.gif)


To come...
   - Leader dimension custom variables and vertical line option (see below)
   - Block insertion (see below)

Enjoy !


Title: Re: Dynamic Intelligent Leader !
Post by: GDF on December 14, 2009, 02:47:29 PM
Great job

(1) how do you bring up the config dialog box?
(2) how do I keep the leader style from changing back to the default whenever I move the reactor object that the leader is pointing to?
(3) can you list all of the routines commands.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 03:41:10 PM
thank you Gary..

(1) how do you bring up the config dialog box?
Same as the older version..."DILCONFIG" command

(2) how do I keep the leader style from changing back to the default whenever I move the reactor object that the leader is pointing to?
I do not change any leader style. It must keep the existing leader style.

(3) can you list all of the routines commands.
DiLEADER come with HELP file. "dileader_en.mht" and include all screen shot and detailled informations.

Title: Re: Dynamic Intelligent Leader !
Post by: GDF on December 14, 2009, 03:49:15 PM
Thanks

How about selecting textstyle and leader layer option.

Thanks again for sharing your routine.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 04:24:40 PM
Thanks

How about selecting textstyle and leader layer option.

Thanks again for sharing your routine.

Nice Idea..
do you have any suggestion on how you want to use the layer options and textstyle ?
Title: Re: Dynamic Intelligent Leader !
Post by: KOWBOI on December 14, 2009, 04:46:11 PM
I love this routine, great work, very impressive!!!!! :-o Is there any way to make the leader a curved spline?
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on December 14, 2009, 04:50:18 PM
Very impressive Andrea, I must say.

This program certainly out-does all your other free dynamic programs combined! And the huge amount of work, time and effort that you have ploughed into this project is evident. I admire your generosity with this program, as you could probably make quite a bit of money from it - like the others on your site.

And the suggestions keep on coming - you've certainly got your work cut out!

Lee

Title: Re: Dynamic Intelligent Leader !
Post by: GDF on December 14, 2009, 04:54:58 PM
From a popup dialog list of styles and layers to choose from. Something like the small dialog pictured, maybe.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 05:23:29 PM
I love this routine, great work, very impressive!!!!! :-o Is there any way to make the leader a curved spline?

I think yes..need to try that option.
thanks for the Idea.  :roll:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 05:24:28 PM
Very impressive Andrea, I must say.

This program certainly out-does all your other free dynamic programs combined! And the huge amount of work, time and effort that you have ploughed into this project is evident. I admire your generosity with this program, as you could probably make quite a bit of money from it - like the others on your site.

And the suggestions keep on coming - you've certainly got your work cut out!

Lee


Thanks Lee, I admire also all your work !
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 05:25:50 PM
From a popup dialog list of styles and layers to choose from. Something like the small dialog pictured, maybe.

Yes Gary, This can be done..
thanks for the suggestions.

How about to manage Leader Layer ?
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on December 14, 2009, 05:31:56 PM
From a popup dialog list of styles and layers to choose from. Something like the small dialog pictured, maybe.

Yes Gary, This can be done..
thanks for the suggestions.

How about to manage Leader Layer ?

I would have both as popup_lists instead of list_box - as these can take up less room and can be nestled into a boxed_column/row on the dialog - but then perhaps more can be done with ObjectDCL  :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 06:08:32 PM
From a popup dialog list of styles and layers to choose from. Something like the small dialog pictured, maybe.

Yes Gary, This can be done..
thanks for the suggestions.

How about to manage Leader Layer ?

I would have both as popup_lists instead of list_box - as these can take up less room and can be nestled into a boxed_column/row on the dialog - but then perhaps more can be done with ObjectDCL  :wink:


thanks Lee. 

Maybe by having a choice to add some string in current layer ?

eg:
New string "LEAD"
current layer: M-PLUM-E  (Mechanical-Plumbing-Existing)
demanded layer: M-PLUM-*-E
result:=  M-PLUM-LEAD-E

and also add Suffix and Prefix...
or replacing some string in existing Layer name.

eg:
New String:"LEAD"
current layer: M-PLUM-E  (Mechanical-Plumbing-Existing)
demanded string to replace: PLUM
result:= M-LEAD-E

Because often some cie standard draw TEXT and LEADER on diffrent layer but in same discipline.

M-HVAC-UNIT-E
M-HVAC-TEXT-E
M-HEATING-DUCT-N
M-HEATING-TEXT-N

Hmmm..!!?  is that make sense ?   :?
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on December 14, 2009, 06:14:08 PM
Yes, but I wouldn't overcomplicate things  :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 14, 2009, 06:20:52 PM
Yes, but I wouldn't overcomplicate things  :wink:

It is not very important how complicated it is for me to develop a program...
I always learn and growing in my knowledge..   ;-)
I think the most important is that must be easy to use and offer more flexibility for the user.

 :angel:


I have made some test with Spline Leader..
and seem to work..

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on December 14, 2009, 06:33:32 PM
Yes, but I wouldn't overcomplicate things  :wink:

It is not very important how complicated it is for me to develop a program...

I meant complicated for the user to navigate...  :wink:
Title: Re: Dynamic Intelligent Leader !
Post by: Kerry on December 14, 2009, 07:11:22 PM
Yes, but I wouldn't overcomplicate things  :wink:

It is not very important how complicated it is for me to develop a program...

I meant complicated for the user to navigate...  :wink:

Give the man the prize !!!
Title: Re: Dynamic Intelligent Leader !
Post by: xianaihua on December 14, 2009, 07:14:36 PM
thanks Andrea
Great! Admire your work :lmao:
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 02:12:53 AM
Hallo Andrea

Bei mir Funktioniert das Lisp nicht.
Habe aber die Opendcl installiert, oder funktioniert hier die Deutsche Version nicht von OpenDcl.
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 02:32:44 AM
Hallo Andrea

Das ist meinen Fehlermeldung

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 16, 2009, 08:34:52 AM
Hugo, ich benutze ObjectDCL und nicht-Derivat.
Dileader soll trotzdem ohne den Dialog zu arbeiten.

Bitte lesen Sie die Dokumentation und / oder über die Google-Übersetzung übersetzt
http://translate.google.ca/?hl=fr&tab=wT # en | de | (http://translate.google.ca/?hl=fr&tab=wT # en | de |)

Danke.
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 09:49:52 AM
Hallo Andrea

aber Dil funktioniert nicht mehr bei mit.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 16, 2009, 10:37:55 AM
Mit welchem mehrere Modus aktiviert ist.
deaktivieren Sie es durch den Ersatz dieser Wert..
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on December 16, 2009, 10:39:51 AM
Hugo,

Könnten Sie nicht die Verwendung von Google Translate Ihre Beiträge vor der Entsendung zu übersetzen - es würde uns zu tun, es zu retten ...



Hugo,

Could you not use Google Translate to translate your posts before posting - it would save us from doing it...
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 11:18:29 AM
My attitude is so like you.
Is that ok then?


Meinen Einstellung sind so wie bei dir.
Ist das ok so ?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 16, 2009, 11:45:55 AM
und funktioniert es?
gibt es Fehlermeldungen?
_______________________________________

it is working ?
is there any error message ?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 12:19:27 PM
No, unfortunately, does not again

No, unfortunately, does not again
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 16, 2009, 12:49:34 PM
Hello
I tested it now on a 2 PC because it can not work.

Hallo
Habe es jetzt auf eine 2 PC getestet, da funktioniert es auch nicht.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 16, 2009, 03:17:25 PM
was ist er eigentlich?
Gibt es eine Fehlermeldung generiert?

________________________________

what it is doing exacly....?
do you have any error message ?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 17, 2009, 01:23:24 AM
These are my errors

Das sind meine Fehlermeldungen
Title: Re: Dynamic Intelligent Leader !
Post by: haustab on December 17, 2009, 06:08:38 AM
@Hugo
in der Lisp-Datei ist einmal "program files" vllt. sollte es Programme (bzw. Install-Path der Routine) bei dir heißen
P.S.: Man sollt sich den Geflogenheiten des Forums anpassen... die Masse spricht englisch
und wenn du es übersetzt, muss es nur "einer" machen, somit steigt deine Chance sinnvolle Antworten zu erhalten.

in the lisp-file is in one line "program files" perhaps it should be "programme"
or better something like this
...(getenv "programfiles")...

@Andrea
nice tool, thx for sharing
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 17, 2009, 07:41:31 AM
Hello

I've long since settled, the getvar Adjusted. see picture

P.S. As you have seen, I have translated the previous amount already in English.
Thanks for your note
Title: Re: Dynamic Intelligent Leader !
Post by: haustab on December 17, 2009, 07:49:41 AM
This too?
(defun GetDilLanguageVersion ()
...
(findfile (strcat "C:\\program files\\ductisoft\\dileader\\" CFGo_5 ".lpk")))...
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 17, 2009, 07:53:02 AM
Yes, even the
Title: Re: Dynamic Intelligent Leader !
Post by: haustab on December 17, 2009, 08:05:27 AM
objectdcl istalliert und es läuft? objectdcl installed and it works without an error?
supportpfad zum dileaderverzeichnis gesetzt? support path to dileader?
acad neugestartet und dileader geladen? (without errors)? start acad new and load dileader?
verzeichnis siehe oben ggf. geändert auf Programme? change the path (look up) to Programme?
welche acad version ist in Benutzung? which version of acad you use?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 17, 2009, 08:22:53 AM
Yes there is error. See picture

Autcad 2010
But even last.

(defun PutAnnotativeObject (object)
         (if (and (eq CFGo_6 "1")
                  (> (read (substr (getvar "ACADVER") 1 4)) 18.0)
             )
           (command "._chprop" object "" "_A" "_Y" "")
         )
)
Title: Re: Dynamic Intelligent Leader !
Post by: Sebb77 on December 17, 2009, 04:32:27 PM
Hey Andrea, how the hell did you  :-o create those little sliding tabs, Help & About ?? I have been trying to figure that out, but obviously you've done something weird (again) to accomplish this in ObjectDCL because i cannot find any function that does that kind of stuff. If you're willing to reveal your secret, i'll be attentive  :angel:...
I think it's really sharp lookin'....amazing job again..Thanks....!!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 17, 2009, 09:01:01 PM
Hugo,...
Sorry if it do not work for you..
I've realised that i have miss some (getenv "programfiles")...

I'll make more test and rearange that on the next release.


Seb...
I'm happy to see that you have note this TAB-DROP-DOWN tool..;)
i'll come back with my secret on how to make this thing on the ObjectDCL forum.
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on December 18, 2009, 12:00:22 AM
Hallo Andrea

Danke
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 21, 2009, 04:50:10 PM
Hey Andrea, how the hell did you  :-o create those little sliding tabs, Help & About ?? I have been trying to figure that out, but obviously you've done something weird (again) to accomplish this in ObjectDCL because i cannot find any function that does that kind of stuff. If you're willing to reveal your secret, i'll be attentive  :angel:...
I think it's really sharp lookin'....amazing job again..Thanks....!!

There you go Sebb77
you will found the secret here (http://www.theswamp.org/index.php?topic=31381.msg369559#msg369559)

 :kewl:
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on January 06, 2010, 04:49:38 AM
Hi Andrea,

I have been meaning tot ask you this before.

How come that whenever I have used dilleader in a drawing the "previous" function (when selecting objects) is being disabled?

Example: if I use "move" and then select an object, I can do as I want.
When the "move" command ends and I repeat move, or enter "copy" I very often use the "p" for previous selection.

When entering "p" autocad selects one of the "dilleaders" I have created with your program.

What to do?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on January 06, 2010, 09:49:47 AM
Hi Andrea,

I have been meaning tot ask you this before.

How come that whenever I have used dilleader in a drawing the "previous" function (when selecting objects) is being disabled?

Example: if I use "move" and then select an object, I can do as I want.
When the "move" command ends and I repeat move, or enter "copy" I very often use the "p" for previous selection.

When entering "p" autocad selects one of the "dilleaders" I have created with your program.

What to do?

nice Catch Aerdvark !
I've never realized that.

This will be fixed on next release.  Thanks.

Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on January 07, 2010, 02:02:59 AM
Allright, that would be great !!!
Title: Re: Dynamic Intelligent Leader !
Post by: guitarguy1685 on January 10, 2010, 07:46:31 PM
very impressive.  what I would like to learn is how to make that leader rubberband like that. 
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on January 10, 2010, 07:54:29 PM
very impressive.  what I would like to learn is how to make that leader rubberband like that. 

Welcome to the Swamp GuitarGuy  :-)

Look into the GrRead function for rubberbanding and the like  :wink:

Great link here (http://www.theswamp.org/index.php?topic=12813.0)

Lee
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on January 13, 2010, 06:28:53 PM

How easy it is to create Leader and identify multiple object with DiLeader.. :roll:

But...
How easy it is to Align all these Leader to provide Good quality Drawing ?   :realmad:

Easy as DiLAlign....
Comming Soon on Future release...  :kewl:

Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on January 13, 2010, 06:36:32 PM
Nice idea!  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on January 14, 2010, 08:36:42 AM
thanks Lee...

I was inspired by this (http://www.theswamp.org/index.php?topic=29923.msg354800#msg354800)

;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on January 18, 2010, 05:38:24 PM
There we Go..

DiLEADER 2.3.0
Dynamic Intelligent Leader

Bug Fix:

New Commands and/or Options:
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on January 19, 2010, 02:13:05 AM
Andrea,

Am I doing something wrong??


Code: [Select]
Command: appload
dileader2.3.0.LSP successfully loaded.


Command: ;Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path

;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 "pref" 0 "suff" "1" "48" "x" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis

; error: bad argument type: streamp nil

Command:

All I did is load it.... Maybe a little, tiny, problem / bug?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on January 19, 2010, 04:07:54 AM
Hallo Andrea

Do not know what I am doing wrong

Command: dilalgin
Unknown command "DILALGIN".  Press F1 for help.
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on January 19, 2010, 04:12:35 AM
Hallo Andrea

Do not know what I am doing wrong

Command: dilalgin
Unknown command "DILALGIN".  Press F1 for help.

Looks like you are spelling it wrong: DILALIGN
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on January 19, 2010, 04:20:19 AM
Thanks MAC

I have completely overlooked
Sorry
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on January 19, 2010, 05:07:36 AM
Hallo Andrea

And what has it here

Befehl: dilconfig
no function definition: Odcl_LoadProject
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on January 19, 2010, 05:53:08 AM
Does one need to install object dcl?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on January 19, 2010, 06:00:32 AM
What I have just invite you to explain it to me please.
Thanks
Title: Re: Dynamic Intelligent Leader !
Post by: RIOGHAN on January 19, 2010, 07:56:27 AM
Andrea,

The higher ups here have decided that we need administrative priviledges to install things on our "Program Files" folder.  Would you be able to change your zip file so that I can browse for a folder to put in?
Title: Re: Dynamic Intelligent Leader !
Post by: CAB on January 19, 2010, 08:58:41 AM
Andrea,
You did not say what the minimum requirements were.
What ACAD version is required to run this routine?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on January 19, 2010, 11:50:43 AM
Well you'r right..
I miss to explain how to install..sorry for that.

attached on this post, a ZIP file containing all necessary files
that need to be extracted to c:\program files\ductisoft\DiLeader\

LSP = file source to load in autoCAD
VLX = compiled LSP file automaticly loaded by LSP.
mht = Help files
cfg = configuration of DiLeader settings.
ods = Dialog file can be viewed only if ObjectDCL is installed.
Kds = signature file allowing to view the Dialog without activate ObjectDCL.
lpk = Language Pack file can be edited using notepad.
gif = animated Gif file required when about button is pressed.

Required:
but don't forget that the dialog is only an interface who change only some parameter in CFG file
that can also be edited with notepad.
Tested on AutoCAD 2006 -> 2010

the exe file is an self extractor created with WinRaR who will extract all file in the specific folder
and start the "thanks.mht" file after the extraction to explain how it work.

I work a lot to create 2 help files  (english and French) with screenShot and animated Gif.

Please don'T be shy to ask any questions...

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: KewlToyZ on February 09, 2010, 07:28:32 PM
Thanks Andrea  ;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 02, 2010, 12:47:04 PM
Cool, Andrea.
Beautiful lisp.
I see a lot of aplications in what I do. :lol:
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  :realmad:
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 02, 2010, 12:52:25 PM
Sorry, I was wrong post.
I wanted to talk about Darray :oops:
Title: Re: Dynamic Intelligent Leader !
Post by: RGUS on June 02, 2010, 02:52:45 PM
Really quite amazing... you been offered a job at AutoDesk yet... and why not!! LOL
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 02, 2010, 03:14:02 PM
Cool, Andrea.
Beautiful lisp.
I see a lot of aplications in what I do. :lol:
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  :realmad:

Hi Gilles..

I've never tought about that..
but it is a good idea....i'll add it on next release.
thanks.

Ca sera ajouté à la prochaine version.
merci pour cette idée.

;-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 02, 2010, 03:16:31 PM
Really quite amazing... you been offered a job at AutoDesk yet... and why not!! LOL

thanks RGUS...
I think I have anough job.... LOL !
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 04, 2010, 01:45:36 PM
Hi Andrea,

J'ai des difficultés pour faire fonctionner DiLeader correctement.
Sous dilconfig, j'ai un message d'erreur à la validation:
"Commande: dilconfig
Demande ADS erronée
type d'argument incorrect: fixnump: nil1"
J'utise la v2.3.0, mais 2.2.8 est affiché!

Où est le problème?

I have difficulty operating properly DiLeader.
Under dilconfig, I get an error at validation:
"Commande: dilconfig
Demande ADS erronée
type d'argument incorrect: fixnump: nil1"
I use the v2.3.0 but 2.2.8 is available!

Where is the problem?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 04, 2010, 11:08:43 PM
Hi Andrea,

J'ai des difficultés pour faire fonctionner DiLeader correctement.
Sous dilconfig, j'ai un message d'erreur à la validation:
"Commande: dilconfig
Demande ADS erronée
type d'argument incorrect: fixnump: nil1"
J'utise la v2.3.0, mais 2.2.8 est affiché!

Où est le problème?

I have difficulty operating properly DiLeader.
Under dilconfig, I get an error at validation:
"Commande: dilconfig
Demande ADS erronée
type d'argument incorrect: fixnump: nil1"
I use the v2.3.0 but 2.2.8 is available!

Where is the problem?


Ok Gilles,...what version of autoCAD are you using ?
is that error message is present in any drawings ?
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 05, 2010, 03:31:17 AM

I use autoCAD 2009
Yes, this error message is present in every drawings.
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 12, 2010, 06:07:23 AM
Bonjour à tous.
J'ai désinstallé la v2.3.0, redémarré l'ordinateur et réinstallé v2.3.0.
Le lisp ne se charge plus du tout. :-(
Copie d'écran:

Hello everyone.
I uninstalled the v2.3.0, rebooted the computer and reinstalled v2.3.0.
The lisp is not charging anymore. :-(
Screenshot:

Merci de m'aider.
Thank you for helping me.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 12, 2010, 03:00:27 PM
Salut Gilles..

s.v.p. vérifie ton fichier DLCONFIG,CFG, il doit resembler a ceci:
Le message d'erreur semble dire qu'il n'y a aucune valeur sous "Leader GAP Y..."
Code: [Select]
;Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
Francais
;Convert DiLEADER to annotative object
0
;Custom Arrow Path
C:\test_dessins\leadersarrow
;Use default 0=Text or 1=Mtext
0     
;Auto-Numbering
(1 "" 1 "" "A" "A" "+" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis
0

Please check your DLCONFIG.CFG file. it must contain someting similar of this.
The error message seem that you have no value on Leader GAP on Y axis.

Could you confirm ?

Merci.
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 13, 2010, 04:48:35 AM
Salut Andrea.

J'ai remplacé le fichier config par celui que tu viens de donner car il était différent. Je mets l'ancien en pièce jointe.
Le lisp ne fonctionne toujours pas, mais le message d'erreur n'est plus le même.

Copie d'écran.

Hi Andrea.

I replaced the config file that you just give because it was different. I put the old in attachment.
The Lisp does not work, but the error message is no longer the same.

Screenshot attached.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 13, 2010, 10:28:02 AM
Salut Gilles,..

Could you give this a try ?

Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 14, 2010, 04:43:40 AM
Salut Andrea.

Désolé, çà marche pas.

Message en ligne de commande:

Commande: appload
dileader2.3.1.LSP correctement chargé(s)
Commande:
DiLEADER version v.2.3.0 par: Andrea Andreetti
type d'argument incorrect: stringp nil
Commande:
Commande: dil
Commande inconnue "DIL".  Appuyez sur F1 pour obtenir de l'aide.

J'ai remplacé dileader2.3.0.lsp par dileader2.3.1.lsp dans le dossier C:\Program Files\DuctiSoft\DiLeader2.3.0
Testé aussi avec dileader2.3.1.lsp seul sur le bureau.

J'ai dans tous les cas le message cité plus haut. :|

Andrea, je suis désolé pour ces complications.... :|
Suis-je le seul à avoir ce problème?

Hi Andrea.

Sorry, not work here.

Message command line:

Commande: appload
dileader2.3.1.LSP correctement chargé(s)
Commande:
DiLEADER version v.2.3.0 par: Andrea Andreetti
type d'argument incorrect: stringp nil
Commande:
Commande: dil
Commande inconnue "DIL".  Appuyez sur F1 pour obtenir de l'aide.

I replaced dileader2.3.0.lsp by dileader2.3.1.lsp in the C:\Program Files\DuctiSoft\DiLeader2.3.0
Tested also with dileader2.3.1.lsp alone on the desktop.

I have in all cases the message quoted above.

Andrea, I am sorry for these complications .... :|
Am I the only one having this problem?
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on June 14, 2010, 04:49:56 AM
@Gilles
Am I the only one having this problem

No, I feel the same way.

Nein geht mir genauso.
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 14, 2010, 05:04:51 AM
Bonjour Hugo.
Tu me rassures. :-P

Hello Hugo.
You reassure me.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 14, 2010, 10:56:43 AM
well,..anybody else have same problem ?

 :?
Title: Re: Dynamic Intelligent Leader !
Post by: Aerdvark on June 14, 2010, 02:07:53 PM
I have not read all post but is ObjectDCL installed properly?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 14, 2010, 11:35:02 PM
I have not read all post but is ObjectDCL installed properly?


I don't think that ObjectDCL will interfere on this lisp because it is only needed to edit the configuration file.
so I have made more tests with some other and new users..but no one have this error message.
It is a little hard to find when i'm unable to reproduce the error.  :oops:
so if you can zip and send me your actual Dileader folder...i'll take a look.

désolé Gilles, j'essai de voir mais je n'arrive pas a reproduire le problème.
pourrais-tu me fournir tout l'ensemble de ton répertoire Dileader ? je vais le copier intégralement.


Merci/Thanks.

Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on June 15, 2010, 12:20:44 AM
Hallo Andrea

Can this have something to do with Win 7 and 64 bits.


Kann das was mit Win 7 und 64 Bit zu tun haben.
Danke
Title: Re: Dynamic Intelligent Leader !
Post by: Gilles on June 15, 2010, 04:41:27 AM
Salut Andrea.

Ci-joint le dossier demandé.

Ma config 32bits:
Windows XP pro SP3
nvidia quadro fx 1800
autocad 2009 v4
objectDCL-ARX-7.2.0 + autoBATCH 2010 100 32b
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on June 15, 2010, 05:24:35 AM
I get this message

Ich bekomme diese Meldung

Code: [Select]
Befehl: (LOAD "C:/Program Files (x86)/DuctiSoft/DiLeader/dileader2.3.1.LSP")
;Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path

;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 "pref" 0 "suff" "1" "48" "x" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis

; Fehler: Fehlerhafter Argumenttyp: streamp nil
Title: Re: Dynamic Intelligent Leader !
Post by: HasanCAD on June 15, 2010, 05:27:44 AM
Salut Gilles,..
Could you give this a try ?

I gave a try and this is the result
Code: [Select]
Command: (LOAD "C:/Documents and Settings/Hasan/Desktop/dileader2.3.1.LSP")
;Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path

;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 "pref" 0 "suff" "1" "48" "x" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis

_.layer
Current layer:  "0"
Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock
/stAte]: set
Enter layer name to make current or <select object>: Enter an option
[?/Make/Set/New/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock
/stAte]:
Command: ; error: An error has occurred inside the *error* functionAutoCAD
variable setting rejected: "cmdecho" nil

Command: dileader
Unknown command "DILEADER".  Press F1 for help.

and one more question

is there an *.ARX file to give the ability to use *.ODCL files
Title: Re: Dynamic Intelligent Leader !
Post by: Hugo on June 15, 2010, 09:41:13 AM
I believe that here is where the error occurred.
Find the mistake but no.
Believe a bracket is the false or missing.

Ich glaube das hier wo der Fehler liegt.
Finde aber den Fehler nicht.
Glaube ein Klammer ist das Falsch oder Fehlt.



Code: [Select]
;| ;;
FILE CONFIG WRITE ;;
|;
;;
(defun dil_FCW ();pipo1

(if (not CFGo_10)(setq CFGo_10 "0"))
(if (not CFGo_11)(setq CFGo_11 "0"))
(if (not CFGo_12)(setq CFGo_12 "0"))
 
(setq cfgo (open (strcat cfgf "dlconfig.cfg") "w"))
    (write-line (strcat
      ";Mask type 0=none 1=Wipeout
" CFGo_1
"
;Multi-Selection 0=No 1=Yes
" CFGo_2
"
;+ or - Key for Arrow size is activation 0=No 1=Yes
" CFGo_3
"
;Convert Qleader to DiLEADER 0=No 1=Yes
" CFGo_4
"
;Language
" CFGo_5
"
;Convert DiLEADER to annotative object
" CFGo_6
"
;Custom Arrow Path
" CFGo_7
"
;Use default 0=Text or 1=Mtext
" CFGo_8
"     
;Auto-Numbering
" CFGo_9
"
;Leader end Length
" CFGo_10
"
;Leader Gap X axis
" CFGo_11
"
;Leader Gap Y axis
" CFGo_12
)
     cfgo
    )
    (close cfgo)
  )
;;
;| ;;
FILE CONFIG WRITE ;;
|;






;| ;;
FILE CONFIG READ ;;
|;
;;
(defun dil_FCR ()

(if (not (findfile (strcat cfgf "dlconfig.cfg")))
  (progn
    (setq cfgo (open (strcat cfgf "dlconfig.cfg") "w"))
    (write-line
      ";Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path

;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 \"pref\" 0 \"suff\" \"1\" \"48\" \"x\" \"1\" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis
"     cfgo
    )
    (close cfgo)
  )
)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 15, 2010, 12:27:05 PM
Sorry,...but the bracket are the same and.

Gilles, your files work ok for me...tested on 4 PC at office and my personal PC.
Some of My friends also use DiLeader and have no problem.
so now...i'm stucked. until I can't reproduce the problem...I can't unfortunatly help you.

Please check your PM maybe we need to exchange more information and make more test together.

sorry about all the inconvenient.   :oops:
Title: Re: Dynamic Intelligent Leader !
Post by: erratic on July 30, 2010, 02:07:48 PM
any chance this will work in AutoCAD MEP 2011?
in addition - why is the ObjectDCL necessary??? any chances of eliminating that portion???
don't want to pay for something just for a LISP that may not even work in my version of ACAD - plus I HATE DIALOG BOXES - THEY ARE A WASTE OF TIME!!!!!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on July 30, 2010, 07:45:11 PM
any chance this will work in AutoCAD MEP 2011?
in addition - why is the ObjectDCL necessary??? any chances of eliminating that portion???
don't want to pay for something just for a LISP that may not even work in my version of ACAD - plus I HATE DIALOG BOXES - THEY ARE A WASTE OF TIME!!!!!

erratic,

First, thank you for your post.
DiLeader wasn't tested on MEP maybe you can give me some hint on where the bugs are ?
also, the program work with and without ObjectDCL. The dialog is only a way to modify the settings in the config file.
Another thing is...all Free Program remain FREE. that mean that you don't have to pay nothing for it. ObjectDCL work on signed project.

oh !...and welcome to the swamp.  ;-)

Title: Re: Dynamic Intelligent Leader !
Post by: mexxx_ on March 16, 2011, 09:11:01 AM
I get this message

Ich bekomme diese Meldung

Code: [Select]
0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path

;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 "pref" 0 "suff" "1" "48" "x" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis

; Fehler: Fehlerhafter Argumenttyp: streamp nil

DiLeader2.3.0.zip from Gilles and Andrea
Windows 7 64bit
AutoCAD 2011 64bit
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 16, 2011, 01:06:10 PM
Hi Mexxx_..

First, welcome to theswamp. ;-)

I would like to know more about the bug.
Is the installation made in "program files (x86)"  ?

Title: Re: Dynamic Intelligent Leader !
Post by: mexxx_ on March 17, 2011, 03:11:01 AM
Hi Andrea,

The installation is made in:

C:\Program Files (x86)\DuctiSoft\DiLeader\dileader2.3.1.LSP
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 17, 2011, 09:51:46 PM
ok thanks...

Let me check the installation package on 64 bits and i'll be back shortly.
Title: Re: Dynamic Intelligent Leader !
Post by: RGUS on March 18, 2011, 02:53:33 AM
any chance this will work in AutoCAD MEP 2011?
in addition - why is the ObjectDCL necessary??? any chances of eliminating that portion???
don't want to pay for something just for a LISP that may not even work in my version of ACAD - plus I HATE DIALOG BOXES - THEY ARE A WASTE OF TIME!!!!!

LMFAO... I so love dialog boxes... after 20 years of using AutoCAD, even from the MS-DOS days... how could you not do without them... are you new to AutoCAD?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 23, 2011, 09:54:08 AM
Hi all,..

sorry for the delay,..
you will find here the patch release,..
tested on xp32, xp64, win7-32, win7-64...

Thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: tanbqtb03 on October 06, 2011, 12:51:11 AM
Hi Andrea!
Thanks for share your program!
But I can't use it, I can't load a dialog box like somebody, it ask me about object DCL and request to install. Then I download Object DCL on the web as your link. It is trial version about 5 days for use. As on my screen (in CAD) is notice: Restart CAD; and nothing happen. I don't see a flie as *.DCL to call a box (I think that because I'm newbie CADer), would you help me? Sry all about not well my English. :lol:
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on October 06, 2011, 02:07:28 AM
Hello,

In order to run the program properly you should download the latest version of this program from the Ductisoft website. I can help you get started:

http://www.ductisoft.com/downloads/lispfiles/lisp_dileader.zip
Download it and unzip it to a folder somewhere you like.

Next download the patch wich is posted by Andrea 1 post before yours.
Open the file, and unzip the files inside to the other folder wich you created earlier.
If prompted to overwrite: allow. That way some issues are being solved.

Now install the program, as you would do normally.
During install, the ObjectDcl.arx runtime extension is also installed.
This software is required to be able to use the dialogs wich are created by ObjectDcl.
It is free so no worries.

If you still have problems let me know.
Good luck with it!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on October 06, 2011, 02:34:45 PM
Thanks Bilancikur..

maybe you must work for ductisoft..  :)

First, tanbqtb03
welcome to theswamp !  :)

ObjectDCL ARX need to be installaed on your PC, but do not need to be activated on tools provided with signature.
It is Free.

If you have problem with installation of ObjectDCL please note that DuctiSOFT have contact emails for support.
but... lets share the information.

If you have Windows Vista or Seven, you must disable the notification of program modification in the user acount before installing ObjectDCL.

see:
http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/ (http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/)

let me know if you have any other issue.
thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: tanbqtb03 on October 07, 2011, 07:21:08 AM
Can you post your tut of program on this thread? I thinks its usefull for the newbie! Thanks for your reply.
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on October 07, 2011, 08:29:42 AM
Can you post your tut of program on this thread? I thinks its usefull for the newbie! Thanks for your reply.

What came up in my mind: "Why don't I just install it on his PC, that would be even easier for him."  :ugly:

I would recommend you to at least try to do it yourself. Most of us are willing to help you with almost every problem you may encounter. So give it a shot and tell us if you like the program, or what may be the problems.

@ Andrea: I would love to join in but there is no way you can afford me   :lmao:
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Roy on October 20, 2011, 05:24:16 PM
This looks great, but I've run into an issue.

I'm using AutoCAD MEP 2012

My text and leaders are tiny. By default, I use all annotative text/dimstyle/leaders. Even when I select "Use Annotative Object", it changes nothing, everything's still tiny.

So far, my fix was to change:
Code: [Select]
(setq dl_textsize (* (getvar "DIMSCALE") (getvar "DIMTXT")))to
Code: [Select]
(setq dl_textsize (* (/ 1.0 (getvar "CANNOSCALEVALUE")) (getvar "DIMTXT")))to get my text the correct size.

I can't find the proper line for the arrow size, though.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on October 20, 2011, 09:43:42 PM
Hey Lee Roy...

First,...welcome to this magnific forum....theswamp. !

thank you for sharing this information...
some question regarding this issue...

what it your insunit, insunitsdeftarget and insunitsdefsource setting ?
I don't realy remember if I've used them.....or maybe dimasz variable..
I leave this code on ice too long.  :)
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Roy on October 21, 2011, 12:15:10 PM
Thanks for the welcome! Been a long-time lurker, several years, just never posted.

insunits=1
insunitsdeftarget=1
insunitsdefsource=1
dimasz=.09375 (3/32")

What I found to 'make it work' for the time being, was to change
Code: [Select]
(if (eq cfgo_3 "1") 
  (vla-put-arrowheadsize
    (vlax-ename->vla-object llead)
    Arsize
  )
)
to
Code: [Select]
(if (eq cfgo_3 "0") 
  (vla-put-arrowheadsize
    (vlax-ename->vla-object llead)
    Arsize
  )
)

I'm not trying to tell you how to change your lisp (you're far better at this than me), just what my short term solutions were, in case it helps you with any further development.

It's a GREAT lisp and everyone loves it. Great job!
Title: Re: Dynamic Intelligent Leader !
Post by: Clina on January 19, 2012, 09:35:33 AM
Hello Andrea,

I'm new here and I found this tool by searching with "LEADER".
I must say this tool is AWESOME !.

I seriously think that this tool should be included in AutoCAD itself or have something similaire.
DILEAER aptly named.

However, I have not managed to make it work, I'm not an expert in AutoLISP.
so if you can help me I would appreciate it.

Thank you very much.

Clina.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on February 03, 2012, 08:06:08 AM
Hi Clina,

Thank you.
do you have any error message or something that it can help me resolve the problem ?
saying that you can run it can't help me.


oh,....and welcome to theswamp ! :)
Title: Re: Dynamic Intelligent Leader !
Post by: autocart on February 21, 2012, 08:44:47 AM
Hi Andrea,

First thanks for this great contribution to the Autocad-world.

There seems to be a problem with the vertical alignment of MTEXT. At least DIL seems to handle MTEXT different from TEXT. My geometrical configurations are all set to zero. Also the length of the extension-line is different. Also the auto-numbering treats TEXT and MTEXT different. All of this can be seen in the attached screen-shot. The picture shows the status after i did a "diledit" (moving them around) on both DiLeaders.
I am using Auotcad vanilla 2011.

Kind regards, Stephan
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on February 21, 2012, 09:01:36 PM
Hi AutoCART

thank you..for the feedback,
I'm actually soo busy right now, sorry for all inconvenience,
But it will be great if you write me an email describing the issue with screen shot and maybe the dwg.
I'll look at it when I'll have 2 min.

Meanwhile,...could you check if your Textstyle have any dimention or some default settings ?
just curious.

thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: ASTERIX on October 05, 2014, 05:03:46 AM
Bonjour,
J’ai un bug avec Dileader pour attacher un texte existant avec la fonction DilAttach
Autocad MEP2012
 je lance en premier la  commande DilAttach, (me demande de sélectionner un texte), je sélectionne le texte, (me demande de choisir un objet), je sélectionne un objet, et valide
Autocad affiche un message : "Le serveur ActiveX a renvoyé une erreur: Paramètre non facultatif"
La ligne d’attachement est bien dessinée, mais pas de liaison avec le texte ou la ligne.
Si je lance la commande Dil en premier, et ensuite lance Dilattach elle fonctionne (ensuite plus besoin de lancer Dil)
Il semble que si la fonction Dil initialise des paramètres pour pouvoir fonctionner ?
--------------
hello,
I have a bug with Dileader to attach an existing text with the function DilAttach
Autocad MEP2012
  I run the first command DilAttach (asks me to select text), I select the text, (asked to choose an object), I select an object and valid
AutoCAD displays a message: "The ActiveX server returned an error: not Optional"
The attachment line is drawn, but no connection to the text or line.
If I run the command Dil first, and then launches Dilattach it works (then need to launch Dil)
It seems that if the Dil function initializes parameters to function?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on October 05, 2014, 09:22:28 AM
Salutations Astérix,..

Premièrement, bienvenue sur TheSwamp. :)
Merci pour ton rapport de "Bug", Il y a bien longtemps que je n'ai utiliser DiLeader,.
je vais voir ce que je peux faire pour aider et te reviens bientôt.
mais d'après mes souvenirs,..Dil, est un raccourcis vers DiLeader, donc n'intialise rien de plus.
reste à vérifier.

Tu peux communiquer avec moi directement via mon adresse e-mail. :)
Merci. (https://translate.google.com/?hl=fr#fr/en/Salutations%20Ast%C3%A9rix%2C..%0A%0APremi%C3%A8rement%2C%20bienvenue%20sur%20TheSwamp.%20%3A)%0AMerci%20pour%20ton%20rapport%20de%20%22Bug%22%2C%20Il%20y%20a%20bien%20longtemps%20que%20je%20n'ai%20utiliser%20DiLeader%2C.%0Aje%20vais%20voir%20ce%20que%20je%20peux%20faire%20pour%20aider%20et%20te%20reviens%20bient%C3%B4t.%0Amais%20d'apr%C3%A8s%20mes%20souvenirs%2C..Dil%2C%20est%20un%20raccourcis%20vers%20DiLeader%2C%20donc%20n'intialise%20rien%20de%20plus.%0Areste%20%C3%A0%20v%C3%A9rifier.%0A%0ATu%20peux%20communiquer%20avec%20moi%20directement%20via%20mon%20adresse%20e-mail.%20%3A)%0AMerci.)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 12, 2014, 10:48:10 PM
Hi Astérix,

the issue is now fixed, thank you for reporting it.

DiLeader adept ! :)
New version is available for download.

->Download Link<- (http://www.ductisoft.com/downloads/dileader_setup.zip)

Enjoy !
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 18, 2014, 03:00:11 AM
Hi Andrea,

I have installed this very useful looking utility, but need a little help to get it running.

Please can you assist with this error?

(LOAD "C:/Program Files/DuctiSoft/DiLeader/DiLeader.LSP") ; error: bad argument type: stringp nil

Kind regards, Robbo.

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 18, 2014, 07:21:06 AM
omg...:/ I can't beleive ...
I've made so many test before releasing it...
unistall and reinstall on diffrent machine .. :/
sorry for that...:(

do you think that it will be possible to be connected with teamviewer ?
may I ask you wich OS platform and Cad release you are using ?

thank you for reporting all issue.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 18, 2014, 07:46:02 AM

do you think that it will be possible to be connected with teamviewer ?
may I ask you wich OS platform and Cad release you are using ?

thank you for reporting all issue.

Not sure about teamviewer

Using Windows 7 Enterprise SP1 and AutoCAD 2014 SP1

Thanks, Robbo
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 18, 2014, 09:37:34 AM
Well,..

I don't know what to say...
I've just tested on fresh computer,... win7 without ObjectDCL on CAD 2013,2014 and 2015...and all work great.
any more information about this will be helpful..

if you had old release before...please uninstall it and/or delete the entire installation folder.
also...be sure to remove all registry information.

\HKEY_CURRENT_USER\Software\DuctiSoft\DiLeader

please let me know if someone else have same issue..
thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 18, 2014, 10:09:44 AM
Nope. Still no joy :-(

Thanks for your time and efforts Andrea.

All the Best, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 18, 2014, 10:41:38 AM
thank you Robbo..

Sorry that I can't help you..
without being able to reproduce the issue....is hard to check what is going wrong..:\
if someone else can provide some feedback it will be appreciated..

thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on November 19, 2014, 03:30:11 AM
Andrea,

Few things I noticed

This line of code:
Code: [Select]
(setq cfgo (open (strcat Dil_installdir "dlconfig.cfg") "w"))
Should that not be:
Code: [Select]
(setq cfgo (open (strcat Dil_installdir "\\" "dlconfig.cfg") "w"))
In fact, I find multiple instances of these:
Code: [Select]
(setq cfgo (open (strcat Dil_installdir "dlconfig.cfg") "r"))
After changing these it seems to work but the ObjectDCL part does not work.
It needs this file (in AutoCAD 2015):

Code: [Select]
"c:\\Program files\\DuctiSoft\\ObjectDCL ARX\\ObjectDCL.20.arx"
But this is not availabe in my ObjectDCL installation.

I have no extra time to spend on this one so I hope this helps you to fix it.
Regards!
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 19, 2014, 12:59:14 PM
Thank you bilançikur...

attached the last release fixing this..
please let me know if all work great.

thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on November 20, 2014, 02:25:38 AM
Andrea,

This version is better indeed!
Thanks for the effort.

The program does not work in AutoCAD 2015 am I right?
Because the arx version should be 20 and not 19.

Regards,
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 20, 2014, 02:34:54 AM
Hi Andrea,

Some success. Now loads.

Command: (LOAD "G:/CAD/Transportation/AutoCAD/Lisp Routines/DuctiSoft/DiLeader/DiLeader.LSP")
DiLEADER version v.14.323 par: Andrea Andreetti - DuctiSoft inc.#<VLR-Command-Reactor>

BUT unable to configure fully with DILC command.

Command: DILC
;Mask type 0=none 1=Wipeout
0
;Multi-Selection 0=No 1=Yes
0
;+ or - Key for Arrow size is activation 0=No 1=Yes
1
;Convert Qleader to DiLEADER 0=No 1=Yes
1
;Language
English
;Convert DiLEADER to annotative object
0
;Custom Arrow Path
C:\test_dessins\leadersarrow
;Use default 0=Text or 1=Mtext
0
;Auto-Numbering
(1 "" 1 "" "A" "A" "+" "1" 1)
;Leader end Length
0
;Leader Gap X axis
0
;Leader Gap Y axis
0
bad argument type: streamp nilT

Kr. Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 20, 2014, 09:14:40 AM
good news.. :)

I love people who give feedback..thank you very much.
attached, a debug version who will popup 6 alert box during the process..
I need to know where the program stop....so may you run this release and tell me the last alertbox shown please ?

Thanks.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 20, 2014, 09:46:59 AM
Stops at step 6 for me.

Cheers, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 20, 2014, 02:13:10 PM
??

step 6 come after the DiLeader dialog shown.

do you have any error message after that or during showing alert box ?
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 21, 2014, 01:56:47 AM
Before Step6

; error: bad argument type: streamp nil

appears on clicking the  'Ok' or 'Cancel' button within the  DiLeader config Panel.

Hope this helps. Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 23, 2014, 10:32:04 PM
Thank you Robbo for helping me..

attached a new debug file..
1 alert box only showing some string...
please take time to make a screnshot and provide it..

second step...
windows explorer will bring you the log file...
please provide it as well.

this will help me alot.
Thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on November 24, 2014, 04:00:42 AM
Just to help, here's some extra info (I think)...

This version of the program runs like normal, only the difference in this "debug version" is when you try the command "dilc" or "dilconfig". Then the alert box will appear. Also, according to this part:

Code: [Select]
(setq debugf (open (setq logfilez (strcat Dil_installdir "\\DiLeader_Debug.log")) "w"))
there should be a log file in the folder "c:\Program Files\Ductisoft\DiLeader" at some point...

In AutoCAD 2015 it does run like it should, all fine thanks!
There is no log file however.

In case of ZWCAD:
See attachement, for what happens. The program does not work.
It seems the project is not loaded correctly.
Also, there is no log file in the folder.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 24, 2014, 04:05:16 AM
Andrea,

Step1 image attached, but no DiLeader_Debug.log file created I am afraid.

Kr. Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 24, 2014, 11:53:07 AM
Just to help, here's some extra info (I think)...

This version of the program runs like normal, only the difference in this "debug version" is when you try the command "dilc" or "dilconfig". Then the alert box will appear. Also, according to this part:

Code: [Select]
(setq debugf (open (setq logfilez (strcat Dil_installdir "\\DiLeader_Debug.log")) "w"))
there should be a log file in the folder "c:\Program Files\Ductisoft\DiLeader" at some point...

In AutoCAD 2015 it does run like it should, all fine thanks!
There is no log file however.

In case of ZWCAD:
See attachement, for what happens. The program does not work.
It seems the project is not loaded correctly.
Also, there is no log file in the folder.

thank you for the Info bilançikur

few questions if you don't mind..
-is the ZRX load correctly in ZWCAD ?
-is the dialogbox appear ?
-do you have same error as Robbo ?

thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 24, 2014, 11:54:38 AM
Please guys,..may you run the debug2 version... ?
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 25, 2014, 02:29:29 AM
Andrea, Snap shots of pop-ups attached below.

Please note I am unable to exit the DiLeader config Panel with the Ok button. Only Cancel will exit the dialog.

Hope this helps. Cheers, Robbo
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 25, 2014, 11:19:37 AM
Thank you Robbo for all your help and your patience..
this help me for sure..

attached a zip file containing some updated file.
please unzip in your installation folder and load the Dileader_debug.lsp file.

please provide all screenshot and error message if any.
thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 25, 2014, 11:49:41 AM
Andrea,

Are you ready?

...
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 25, 2014, 11:51:46 AM
...continued.

Cheers, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 27, 2014, 09:06:07 AM
Thank you Robbo,..:)

Please check this last version..
thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on November 27, 2014, 09:41:52 AM
Andrea,

unfortunately get a similar error with v.14.331. Debug version v.14.285 works as expected.

Command: (LOAD "C:/Program Files/DuctiSoft/DiLeader/DiLeader.LSP")
DiLEADER version v.14.331 par: Andrea Andreetti - DuctiSoft inc.#<VLR-Command-Reactor>
Command: DILC
ODCL_LM version 14.285 by DuctiSoft inc. - Enabled done.
; error: bad argument type: streamp nil
; error: bad argument type: streamp nil
; error: bad argument type: streamp nil
T
Command:
ODCL_LM version 14.285 by DuctiSoft inc. - Enabled
ODCL_LM version 14.285 by DuctiSoft inc. - Enabled
Command:
Command: (LOAD "C:/Program Files/DuctiSoft/DiLeader/DiLeader_debug.LSP")
DiLEADER version v.14.323 par: Andrea Andreetti - DuctiSoft inc.#<VLR-Command-Reactor>
Command: DILC
T

All the best, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on November 27, 2014, 09:11:36 PM
perfect.. :)

It seem that the error come when trying to write in the cfg file.

Code: [Select]
(setq cfgo (open (strcat Dil_installdir "\\dlconfig.cfg") "w"))
My you tell me the result of  !Dil_installdir  variable ?
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 01, 2014, 01:58:56 AM
Andrea,

Command: (setq cfgo (open (strcat Dil_installdir "\\dlconfig.cfg") "w"))
nil
Command: !Dil_installdir
"c:\\Program files\\DuctiSoft\\DiLeader"

All the best, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on December 01, 2014, 02:03:25 AM
ROBBO, I think Andrea is asking for what do you get after typing : !Dil_installdir at command prompt...
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 01, 2014, 02:08:51 AM
ROBBO, I think Andrea is asking for what do you get after typing : !Dil_installdir at command prompt...

Thanks ribarm - post modified to suit.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 01, 2014, 07:27:33 AM
Andrea,

Command: (setq cfgo (open (strcat Dil_installdir "\\dlconfig.cfg") "w"))
nil
Command: !Dil_installdir
"c:\\Program files\\DuctiSoft\\DiLeader"

All the best, Robbo.

weird thing...:/

do you have write acces on this folder ?
what is your Operating System ? win 8 ?

Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 01, 2014, 07:50:21 AM
Ahh! I agree, I am a weird thing. :-D

I only had write access when logged in as an administrator. Now changed folder location to have write access for normal login. Admin login is required to install exe and msi files.

Command: (LOAD "C:/Program Files/DuctiSoft/DiLeader/DiLeader.LSP")
DiLEADER version v.14.331 par: Andrea Andreetti - DuctiSoft inc.#<VLR-Command-Reactor>
Command: DILC
ODCL_LM version 14.285 by DuctiSoft inc. - Enabled done.
T

All is Good now - thank you.

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 01, 2014, 11:09:29 AM
ok thank you..

I'll provide un ZIP file instead an EXE.
thank again for all your Help.

Cheers. !
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 01, 2014, 11:13:37 AM
ok thank you..

I'll provide un ZIP file instead an EXE.
thank again for all your Help.

Cheers. !


Not a problem. Thanks for sharing.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 02, 2014, 03:29:16 PM
There we go..

last version updated.
DiLeader v.14.355 (http://www.ductisoft.com/dileader.html)

enjoy ! :)

need to make the Zip file..
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on December 03, 2014, 06:06:45 AM
Hi Andrea, when I change values in DILC for Geometry parameters of Dileader, no changes are made to .cfg file (variables cfgo_10, cfgo_11 and cfgo_12 have 0 values after reading cfg file that is used in DIL command)... Is this possible to fix, or we have to use DILFSL, DILGAPX, DILGAPY commands to make those changes... To bad it won't work through dialog box... Anyway, else is fine and works brilliantly...

Thanks for this tool...
M.R.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 03, 2014, 09:31:19 AM
Hello Andrea,

All Good!

I have a question for you: I have installed ObjectDCL ARX, and DILC works for me. But what I would like to do, is copy the ObjectDCL ARX folder to other users PC with Shell, which I have done and load in the ARX with a lisp. But the DiLC will not work and users get the error message to download ObjectDCL from website and install, although states arx is loaded. Is there a way to bypass this and register the arx?

Many thanks, Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on December 03, 2014, 10:08:52 AM
Robbo, I think you have to install ObjectDCL from setup file that is packed into zip after you download correct version 32 bit or 64 bit from the link Andrea provided... Then if ACAD is 32 bit you'll probably miss this files that are installed when you setup 64 bit version... So I suggest that you copy them into c:\Program Files\DuctiSoft\ObjectDCL ARX\ :

Quote
01/21/2012  04:16 PM             8,111 ArxHelpers.lsp
10/20/2007  04:18 AM           349,226 Cli_LP.dll
07/03/2008  01:41 PM           102,400 EmailActivation.exe
04/18/2012  09:34 PM           259,584 LicenseManager.exe
10/25/2012  10:09 AM            83,502 ObjectDCL-7.5.0.1-ARX-ZRX64-Uninstall.exe
08/12/2014  11:18 PM            82,776 ObjectDCL_DK_uninstall.exe
04/07/2013  07:15 PM                14 ODCLlicS.chk
10/17/2014  02:53 AM           151,108 ODCL_LM.des
10/29/2013  01:44 AM               384 ODCL_LM.kds
10/28/2013  01:34 AM             3,436 ODCL_LM.ods
10/17/2014  02:53 AM           125,348 ODCL_LM.VLX

After you deployed mentioned files, you should make following paths in your SFSP of ACAD :

Quote
c:\Program Files\DuctiSoft\DiLeader
c:\Program Files\DuctiSoft\ObjectDCL ARX

I've also put (arxload "ObjectDCL.XX.arx") (XX is number of ACADVER you're deploying ARX) in acaddoc.lsp and also loaded (load "DiLeader.lsp") also in acaddoc.lsp, so that dileader is automatically loaded when I start CAD... You can also do this manually through "APPLOAD" command... And that's it... It should work... As far as I know only A2009 32 bit can't be properly setup... But on all my other CADs its working well, and I mean A2008 32 bit, A2009 64 bit, A2012 64 bit, A2014 64 bit...

[EDIT : Attached is ZIP that contains those mentioned additional files...]
HTH, M.R.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 03, 2014, 10:40:38 AM
Thanks ribarm.

Appreciate your time and response. Will give it a go!

All the best Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on December 03, 2014, 10:44:04 AM
And for "Arrows" DWGs, I suggest that you do the following, (if they are EVALUATION VERSION drawings)... Open DWG in some newer release of ACAD... insert block that is stored in memory of DWG into 0,0,0 with scale 1,1,1 and rotation 0.0... Explode DWG... Use this extension of CP command posted here : http://www.theswamp.org/index.php?topic=47923.msg529342#msg529342 - it's called CPENTM command, and it consists from cpentm.lsp :
Code: [Select]
(defun c:cpentm nil
  (ssget "_:L")
  (command "_.script" (findfile "cpentm.scr"))
  (princ)
)
And from cpentm.scr :
Code: [Select]
(vl-load-com)
(defun makelsp ( ss / i e el lst fn )
(repeat (setq i (sslength ss))
(setq el (entget (setq e (ssname ss (setq i (1- i))))))
(setq el (vl-remove (assoc -1 el) el))
(setq el (vl-remove (assoc 5 el) el))
(setq el (vl-remove (assoc 300 el) el))
(setq el (vl-remove (assoc 310 el) el))
(setq el (vl-remove (assoc 320 el) el))
(setq el (vl-remove (assoc 330 el) el))
(setq el (vl-remove (assoc 340 el) el))
(setq el (vl-remove (assoc 350 el) el))
(setq el (vl-remove (assoc 360 el) el))
(setq el (vl-remove (assoc 370 el) el))
(setq el (vl-remove (assoc 380 el) el))
(setq el (vl-remove (assoc 390 el) el))
(setq el (mapcar '(lambda ( x ) (cons 'quote (list x))) el))
(setq lst (append lst (list (cons 'entmake (list (cons 'list el))))))
(if (eq (cdr (assoc 0 (entget e))) "POLYLINE")
(progn
(while (/= (cdr (assoc 0 (entget (setq e (entnext e))))) "SEQEND")
(setq el (entget e))
(setq el (vl-remove (assoc -1 el) el))
(setq el (vl-remove (assoc 5 el) el))
(setq el (vl-remove (assoc 300 el) el))
(setq el (vl-remove (assoc 310 el) el))
(setq el (vl-remove (assoc 320 el) el))
(setq el (vl-remove (assoc 330 el) el))
(setq el (vl-remove (assoc 340 el) el))
(setq el (vl-remove (assoc 350 el) el))
(setq el (vl-remove (assoc 360 el) el))
(setq el (vl-remove (assoc 370 el) el))
(setq el (vl-remove (assoc 380 el) el))
(setq el (vl-remove (assoc 390 el) el))
(setq el (mapcar '(lambda ( x ) (cons 'quote (list x))) el))
(setq lst (append lst (list (cons 'entmake (list (cons 'list el))))))
)
(setq el (entget e))
(setq el (vl-remove (assoc -2 el) el))
(setq el (vl-remove (assoc -1 el) el))
(setq el (vl-remove (assoc 5 el) el))
(setq el (vl-remove (assoc 300 el) el))
(setq el (vl-remove (assoc 310 el) el))
(setq el (vl-remove (assoc 320 el) el))
(setq el (vl-remove (assoc 330 el) el))
(setq el (vl-remove (assoc 340 el) el))
(setq el (vl-remove (assoc 350 el) el))
(setq el (vl-remove (assoc 360 el) el))
(setq el (vl-remove (assoc 370 el) el))
(setq el (vl-remove (assoc 380 el) el))
(setq el (vl-remove (assoc 390 el) el))
(setq el (mapcar '(lambda ( x ) (cons 'quote (list x))) el))
(setq lst (append lst (list (cons 'entmake (list (cons 'list el))))))
)
)
)
(setq lst (cons 'list lst))
(setq lst (list lst 'e))
(setq lst (cons 'e lst))
(setq lst (cons 'foreach lst))
(setq fn (open "c:/lsp.lsp" "w"))
(print lst fn)
(close fn)
(princ)
)
(setq fn (open "c:/doc.txt" "w"))
(setq k -1)
(while (not (equal (vla-get-activedocument (vlax-get-acad-object)) (vla-item (vla-get-documents (vlax-get-acad-object)) (setq k (1+ k))))))
(princ k fn)
(close fn)
(setq fn nil k nil)
(makelsp (ssget "_P"))
(setq makelsp nil)
_.new

(load "c:/lsp.lsp")
(vl-load-com)
(setq fn (open "c:/doc.txt" "r"))
(setq k (read (read-line fn)))
(close fn)
(vla-activate (vla-item (vla-get-documents (vlax-get-acad-object)) k))
(defun doc nil
(if (findfile "c:\\doc.txt") (vl-file-delete "c:\\doc.txt"))
(if (findfile "c:\\lsp.lsp") (vl-file-delete "c:\\lsp.lsp"))
(setq doc nil fn nil k nil)
(princ)
)
(alert "Type (doc) at command prompt")
(princ)

You should put cpentm.scr in SFSP of ACAD, and load cpentm.lsp... Start cpentm command after you loaded lisp with DWG that has this block exploded and select all entities... Automatically script will execute inside built lisp for creating (entmaking) 2D entities in newly created DWG... (3D SOLIDS can't be entmaked - for them you have to use CP.lsp with CP.scr showed on link above - for those kind of drawings that have 3D SOLIDS and that are EVALUTION versions - I still don't know how to remove EVALUATION mark as with copybase 0,0,0 and pasteclip 0,0,0 nothing is solved EVALUATION stays - only way is to recreate entities through entmake or similar, so for 2D drawings this is possible on this way (cpentm command)... When newly created DWG is made with new entities, you should switch to it (ALT+W) and purge all (don't forget to type (doc) when asked to remove temp lsp and txt file stored on c:\)... Then SAVEAS DWG and use the same name as original DWG and save it to newly created folder... Repeat this procedure for all DWGs in Arrows directory, and move original DWGs from Arrows folder to new folder - keep originals... Then move all newly created DWGs into Arrows folder and that's it... You removed EVALUATION mark and made DWGs operable for TAB option when DIL command is started...

HTH, M.R.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 03, 2014, 11:20:21 AM
Thanks ribarm.

Appreciate your time and response. Will give it a go!

All the best Robbo.

No luck I am afraid. Perhaps a .reg file is required. It works fine on my PC, but not for others. It will be pain to log in as administrator to install on a number of PCs.

BTW I used the path C:\Ductisoft\ObjectDCL ARX. I believe you are not able to make a directory with lisp in Program files.

All the Best, Robbo
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 03, 2014, 06:36:10 PM
Hi Guys,..

Ok,...ObjectDCL Extension need registry information to work properly.
ex:

Code: [Select]
[HKEY_CURRENT_USER\Software\DuctiSoft\ObjectDCL ARX]
"InstallDir"="c:\\Program files\\DuctiSoft\\ObjectDCL ARX"
"Version"="14.158"
"Platform"="Win64"
"LMver"="14.216"

InstallDir = is necessary for many application telling where the Extension file is located.
Version = is necessary to validate status and Licence if you have one.
PlatForm = is OS information...this can be skipped.
LMver = Installed version of ODCL_LM.vlx, this is necessary cause depending of the version, some function are requested.


you can use the following:

Code: [Select]
(if (setq LM
   (findfile
     (strcat
       (vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir")
       "\\ODCL_LM.vlx"
       )
     )
  )
  (load LM)
  )

ODCL_LM.vlx file take care loading the correct ARX,BRZ,ZRX file for you..  :)

if you want to install all package...
you can use the silence install package provided...

Version 14.283
64bits Silence Install (http://www.objectdcl.com/downloads/ObjectDCL-Extension-14.283-Setup-x64-s-CU.zip)
32bits Silence Install (http://www.objectdcl.com/downloads/ObjectDCL-Extension-14.283-Setup-x32-s-CU.zip)

but this will automatically use the c:\Program files\DuctiSoft\ folder..

So if you want to use it in a diffrent foder,..
I suggest you to copy the correct ARX,ZRX,BRX + the VLX or DES files in your wanted folder..
than, add registry information if it is not present.


Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 03, 2014, 06:36:53 PM
Hi Andrea, when I change values in DILC for Geometry parameters of Dileader, no changes are made to .cfg file (variables cfgo_10, cfgo_11 and cfgo_12 have 0 values after reading cfg file that is used in DIL command)... Is this possible to fix, or we have to use DILFSL, DILGAPX, DILGAPY commands to make those changes... To bad it won't work through dialog box... Anyway, else is fine and works brilliantly...

Thanks for this tool...
M.R.

Thank you M.R....I'll take a look on that. :)
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on December 04, 2014, 02:34:31 AM
Code: [Select]
(if (setq LM
   (findfile
     (strcat
       (vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir")
       "\\ODCL_LM.vlx"
       )
     )
  )
  (load LM)
  )

Hello Andrea, Sorry to bother you again, but I get this error message when I attempt to run the code suggested in my startup lisp.

; error: bad argument type: stringp nil

Any ideas?

KR. Robbo
Title: Re: Dynamic Intelligent Leader !
Post by: ronjonp on December 04, 2014, 08:13:32 AM
Perhaps write it like this:
Code - Auto/Visual Lisp: [Select]
  1.   (setq lm (vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir"))
  2.   (findfile (strcat lm "\\ODCL_LM.vlx"))
  3.   (load lm)
  4. )
STRCAT will Sh!+ the bed if you pass it a null value. Although that still does not fix that the registry value is not there...
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 04, 2014, 12:20:10 PM
Perhaps write it like this:
Code - Auto/Visual Lisp: [Select]
  1.   (setq lm (vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir"))
  2.   (findfile (strcat lm "\\ODCL_LM.vlx"))
  3.   (load lm)
  4. )
STRCAT will Sh!+ the bed if you pass it a null value. Although that still does not fix that the registry value is not there...

you'r right... :) thannk you.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on December 04, 2014, 12:21:20 PM
Code: [Select]
(if (setq LM
   (findfile
     (strcat
       (vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir")
       "\\ODCL_LM.vlx"
       )
     )
  )
  (load LM)
  )

Hello Andrea, Sorry to bother you again, but I get this error message when I attempt to run the code suggested in my startup lisp.

; error: bad argument type: stringp nil

Any ideas?

KR. Robbo

This mean that the
Code: [Select]
(vl-registry-read "HKEY_CURRENT_USER\\Software\\DuctiSoft\\ObjectDCL ARX" "InstallDir")
return Nil.
Title: Re: Dynamic Intelligent Leader !
Post by: ifncdylan on March 05, 2015, 12:14:21 AM
Andrea, this lisp code is amazing. Thank you for your efforts to create it. There is certainly a helluva lot going on in the code.

I have a routine which I have written which extracts the length property of any line or polyline as a text string and then places an MTEXT object with that length pre-written.

Then I use the DILATTACH command to attach that MTEXT object to the line. Then I might modify the line, making its length longer. I would love for the DILEADER script to be able to then re-calculate the length and update it in the leader text.

Do you have any advice about how I would go about my modification to your DILEADER script to make that occur? Thanks again for the awesome work.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 05, 2015, 08:59:43 AM
Andrea, this lisp code is amazing. Thank you for your efforts to create it. There is certainly a helluva lot going on in the code.

I have a routine which I have written which extracts the length property of any line or polyline as a text string and then places an MTEXT object with that length pre-written.

Then I use the DILATTACH command to attach that MTEXT object to the line. Then I might modify the line, making its length longer. I would love for the DILEADER script to be able to then re-calculate the length and update it in the leader text.

Do you have any advice about how I would go about my modification to your DILEADER script to make that occur? Thanks again for the awesome work.


Hi ifncdylan,

First,..let me be the first to wish you "Welcome to the Swamp" :)
thank you for using DiLeader...many people use it.

you can modify the code for your convenance.
I suggest you to check the mywrittentext variable and put the field code in it.
If you need help, please let me know.

cheers.
Title: Re: Dynamic Intelligent Leader !
Post by: ifncdylan on March 05, 2015, 10:35:35 PM
Thanks for that advice Andrea, I have gotten it to calculate the length of the line when I first run the DIL command:

Code - Auto/Visual Lisp: [Select]
  1. 314  (if dqobject
  2. 315    (progn
  3. 316
  4. 317           (setq mywrittentext (strcat "*" CONDUITTYPE "*\n*" (rtos (+ (roundup (vla-get-length (vlax-ename->vla-object (car dqobject))) 0.5) 0) 2 1) "*")
  5. 318            llayer (vla-get-layer (vlax-ename->vla-object (car dqobject))))
  6. 319            (princ "\nPick Text location...")
  7.  

Roundup is a function I have made which rounds a number up to the nearest 0.5 (or whatever number you give it). This gives me a string of *P23* *39.5* for a line that is 39.14 long, for example.

I am also writing CONDUITTYPE to xdata on the dqobject, and then in the reactors, pulling that XDATA back out so each of my leaders updates with the correct type of conduit and length each time I modify the line.

I will clean up the code a bit and then post it here, if anyone might want to use automatic conduit length calculating leader. :)
Title: Re: Dynamic Intelligent Leader !
Post by: nirav on March 09, 2015, 07:15:13 PM
Thanks Andrea.

That lisp looks very useful.

-Nirav
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 26, 2015, 01:25:41 PM
Hi All,...

Since this tool was created,...
many request was sent on my mail..
so...

I'm proud to announce you that a new version of DILEADER is comming...
unlimited flexibility...many options added, all know bug was fixed,..

New add-on:

- New option allowing LISP evaluation expression
- New option allowing Field String
- Add Suffix and Prefix String
- New Ribbon Menu
- Reactor add regen to update field
- New addition, + - Key added on DILEDIT for arrow resizing
- New addition, TAB key added on DILEDIT for Arrow block switch
-"NOTE" string preview replaced by MTJIGSTRING variable
- New option allowing to use BLOCK with attribute
- DILALIGN offer now Vertical or Horizontal Alignement
- Auto-MTEXT justification can be readjusted
...many more..

Few preview...




Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 26, 2015, 01:28:17 PM
More...
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on March 26, 2015, 01:55:48 PM
Very impressive Andrea!  :-)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 26, 2015, 03:35:06 PM
Very impressive Andrea!  :-)

Thank you Mr. Mac, :)

I forget to mention that DiLeader can also use LISP function and Variable as Text or Attribute.  :)
Title: Re: Dynamic Intelligent Leader !
Post by: francinez on March 30, 2015, 08:59:16 AM
Hello,
Just a question: on this lisp is it possible to use mleader instead of leader?
The raison is that by mleader I can add or remove leader

Thanks
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 30, 2015, 02:50:39 PM
Hello,
Just a question: on this lisp is it possible to use mleader instead of leader?
The raison is that by mleader I can add or remove leader

Thanks

Hello Francinez,..
first,..Welcom to the swamp !  :)

Mleader have limited options..
DiLeader allow to add Leader at any time..
(see gif below)
Title: Re: Dynamic Intelligent Leader !
Post by: bilançikur on March 31, 2015, 01:52:50 AM
Hi Andrea,

I am sure I have never seen such a complete program, written in LISP, with such nice interface and cool functions.
This will be of use for many people, and it is freeware still. My compliments for your great work.

Hopefuly people will get to know more of your programs, the free and non free stuff.
Personally I like the sDuct program as to be one of my favorites.
Title: Re: Dynamic Intelligent Leader !
Post by: francinez on March 31, 2015, 03:48:18 AM
Andrea, thank you for your quick response

The raison of mleader is that I have autocad 2013 and multileader has been enhanced with additional tools. So if your lisp dileader would be implemented with mleader it would be top.

Regards
Francine
Title: Re: Dynamic Intelligent Leader !
Post by: kruuger on March 31, 2015, 04:51:00 AM
Andrea, thank you for your quick response

The raison of mleader is that I have autocad 2013 and multileader has been enhanced with additional tools. So if your lisp dileader would be implemented with mleader it would be top.

Regards
Francine
hi
mleader is crap since dbl sided leaders stretch bug.
k.
Title: Re: Dynamic Intelligent Leader !
Post by: DuanJinHui on March 31, 2015, 06:41:31 AM
Dear Andrea.

I want to know where can download this routine? Thanks for sharing.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on March 31, 2015, 11:03:07 PM
Hi DuanJinHui,..Welcome to theswamp ! :)
the new version of DiLeader will be out shortly. I'll put the download link here.

Kruuger,..
may I ask you wich stretch bug you have with Mleader ? my streetch work fine here.

bilançikur,..
Thank you very much...very appreciated.

Francine,
DiLeader allow more flexibility that all other leader type.
also, DiLeader follow the Dimension style settings..instead of Mleader who have his own setting....and to be honest , I never understood why autoCAD created two different ways to configure Leader instead adding options for current one.
but I'm curious to know wich option Mleader have that DiLeader do not allow..?
Title: Re: Dynamic Intelligent Leader !
Post by: kruuger on April 01, 2015, 01:34:05 AM
Hi Andrea
Please draw mleader with with 2 arrows - left and right. Than try to stretch all with "full window".
Whole mleader should start move but isn't. Noticed that text/block move dbl distance (green) compare to arrows (red).

it is similar to qleader streatch in dynamic block (see image). almost 10 years and still not fixed !!

kruuger
Title: Re: Dynamic Intelligent Leader !
Post by: ronjonp on April 01, 2015, 09:01:15 AM
And a video :)
Title: Re: Dynamic Intelligent Leader !
Post by: 77077 on April 01, 2015, 09:42:48 AM
And a video :)

very beautiful , ronjonp.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on April 01, 2015, 09:46:01 AM
oookkkey ! :|

never realized that..
so...

+1 for DiLeader !

:)
Title: Re: Dynamic Intelligent Leader !
Post by: kruuger on April 01, 2015, 03:34:38 PM
oookkkey ! :|

never realized that..
so...

+1 for DiLeader !

 :)
yep :)
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on June 03, 2015, 02:15:31 AM
Hi DuanJinHui,..Welcome to theswamp ! :)
the new version of DiLeader will be out shortly. I'll put the download link here.

Hello Andrea,

Is your new version of DiLeader available?

Kr. Robbo.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 03, 2015, 06:55:01 AM
oops,...sorry...I forgot. :)

the link is Here (http://www.ductisoft.com/dileader.html)

Any comment or suggestion are welcome.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on June 03, 2015, 07:45:08 AM
oops,...sorry...I forgot. :)

the link is Here (http://www.ductisoft.com/dileader.html)

Any comment or suggestion are welcome.

Thank you Andrea. Unfortunately I am unable to unzip the file. Is it password protected?
Title: Re: Dynamic Intelligent Leader !
Post by: 77077 on June 03, 2015, 07:47:41 AM
oops,...sorry...I forgot. :)

the link is Here (http://www.ductisoft.com/dileader.html)

Any comment or suggestion are welcome.

Thank you Andrea. Unfortunately I am unable to unzip the file. Is it password protected?


Hi ROBBO ,unzip  no problem.

You sure download normal completion ?   file size :15.2 MB

BTW, I use "winrar "
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on June 03, 2015, 07:56:57 AM
Mm. Strange 77077!

Please attachments below when I use PeaZip and not the windows default.
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on June 03, 2015, 07:58:14 AM
I think it may of been corrupted on download. I will download again. My internet link here is terrible at the moment.

Unable to download fully at the moment although 15.3MB, the best I have download at the moment is 1,745KB - I will keep trying!
Title: Re: Dynamic Intelligent Leader !
Post by: 77077 on June 03, 2015, 08:13:14 AM
I think it may of been corrupted on download. I will download again. My internet link here is terrible at the moment.

Unable to download fully at the moment although 15.3MB, the best I have download at the moment is 1,745KB - I will keep trying!

Good Luck!
Title: Re: Dynamic Intelligent Leader !
Post by: 77077 on June 03, 2015, 08:17:07 AM
@Andrea  Hello

I just try it , It's good tools!

Multiple languages support , But No Chinese . disappointed !!!

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 03, 2015, 11:29:21 AM
@Andrea  Hello

I just try it , It's good tools!

Multiple languages support , But No Chinese . disappointed !!!

haha :) you can add your own language if you want... please read how to create LPK file (language Pack)

:)
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 03, 2015, 11:32:32 AM
I've tried the download link and work well for me..
tested on my laptop and 2 desktop..
Title: Re: Dynamic Intelligent Leader !
Post by: ROBBO on June 04, 2015, 02:36:54 AM
Seventh time lucky  :-)

Thank you Andrea for sharing
Title: Re: Dynamic Intelligent Leader !
Post by: kruuger on June 05, 2015, 08:42:38 AM
hi Andrea
try your tool but noticed very big, annoying problem.
try this:
1. draw any object for stretch
2. run STRETCH command on this object
3. now try again but with right click or space (last commend) no shortcut.
4. select object and accept with space or right click. autocad should ask for base point but command just end.
so there is no way to STRETCH using last command - mouse, click or space bar.
i guess it is issue with some reactor. noticed also this in command line when stretching
Code: [Select]
Select objects: !previousSelection
<Selection set: 13d>
1 found
i uninstall dileader and all is ok.
kruuger

Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 05, 2015, 09:36:24 AM
Thank you very much.

I'll take a look on that asap.
if there is any other issue... please don't be shy to share or write me an email
with all information is possible ... like:

operating system
autocad version
screen shot or animated gif file
and steps used to reproduce the issue.

thank you :)

Title: Re: Dynamic Intelligent Leader !
Post by: lescherry on June 16, 2015, 11:53:36 AM
Hi Andrea,  Looks like a wonderful program but my IT won't give me admin rights to change the install folder from a read only status.  Any ideas on how to work around that problem (besides a new IT department of one)?  Here is the message I get when I start AutoCAD 2016 now. 

Please check write permission on:
C:\Program Files\Autodesk\ApplicationPlugins\DuctiSoft_DiLeader.bundle\Contents

Any suggestions would be helpful.

Thank you,
Les
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 16, 2015, 04:46:30 PM
Hi Andrea,  Looks like a wonderful program but my IT won't give me admin rights to change the install folder from a read only status.  Any ideas on how to work around that problem (besides a new IT department of one)?  Here is the message I get when I start AutoCAD 2016 now. 

Please check write permission on:
C:\Program Files\Autodesk\ApplicationPlugins\DuctiSoft_DiLeader.bundle\Contents

Any suggestions would be helpful.

Thank you,
Les

Hi, ...
sorry i'm a kind of rushing actually....

please follow these steps..

1) move all folder from:
C:\Program Files\Autodesk\ApplicationPlugins\DuctiSoft_DiLeader.bundle
to
C:\Users\(your user login)\AppData\Roaming\Autodesk\ApplicationPlugins\DuctiSoft_DiLeader.bundle

2) change the installation PATH in the registry:
[HKEY_CURRENT_USER\Software\DuctiSoft\DiLeader]
"InstallDir"="C:\Users\(your user login)\AppData\Roaming\Autodesk\ApplicationPlugins\DuctiSoft_DiLeader.bundle"

3) Install ObjectDCL Extension in a folder who you have right admin.
or change the ObjectDCL installation Path from:
[HKEY_CURRENT_USER\Software\DuctiSoft\ObjectDCL ARX]
"InstallDir"="c:\\Program files\\DuctiSoft\\ObjectDCL ARX"
to any who you have right admin

note that in some case, You will need to add these path in the TRUSTEDPATHS variable environnement
or change SECURELOAD status.

please let me know of any issue..
thank you.
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on June 16, 2015, 04:51:17 PM
Andrea, if Les does not have the rights to set a folder to read-write, I very much doubt their admin would let them loose in the registry  :evil:
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 16, 2015, 08:43:47 PM
Andrea, if Les does not have the rights to set a folder to read-write, I very much doubt their admin would let them loose in the registry  :evil:

I agree,...just a gess..
but meanwhile...many user have problem with admin right.....so any can suggest something ?

My idea is to remake the installation concept pointing to :
C:\Users\Public\..

and use config file instead of registry..
but the problem still that it need to have a specific file location to read the config file..
otherwise,...I'll need a config file telling where the second config file is installed to tell the third config file...etc..
Title: Re: Dynamic Intelligent Leader !
Post by: Lee Mac on June 17, 2015, 05:27:09 AM
I agree that program installation should require admin rights - in my opinion, the issue is not so much about trying to circumvent the need for admin rights for installation of the program, but to have a co-operative admin willing to install the program.
Title: Re: Dynamic Intelligent Leader !
Post by: roy_043 on June 17, 2015, 06:27:59 AM
If setenv/getenv works without admin rights you could use that to save the location of a config file.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 17, 2015, 09:18:15 AM
I agree that program installation should require admin rights - in my opinion, the issue is not so much about trying to circumvent the need for admin rights for installation of the program, but to have a co-operative admin willing to install the program.

+1
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 17, 2015, 09:19:27 AM
If setenv/getenv works without admin rights you could use that to save the location of a config file.

still registry entry..
Title: Re: Dynamic Intelligent Leader !
Post by: roy_043 on June 17, 2015, 01:10:12 PM
If setenv/getenv works without admin rights you could use that to save the location of a config file.

still registry entry..
I know, but since it part of the current user section of the registry I thought it might work.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 17, 2015, 06:02:51 PM
If setenv/getenv works without admin rights you could use that to save the location of a config file.

still registry entry..
I know, but since it part of the current user section of the registry I thought it might work.

yes,...but the goal is that I need to make sure that all installation tool work for any user.
so by using SETENV, I'll need to setup this variable for each user logged to the same machine.

so by using C:\Users\Public\
with config file, will prevent that..

I hope.. :|
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 17, 2015, 06:18:35 PM
well,..in fact....if user do not have accèss to:
C:\Program Files\Autodesk\ApplicationPlugins

I'll need to install all in:
C:\Users\(user login)\AppData\Roaming\Autodesk\ApplicationPlugins

but this mean that soft will be available per user only.
Title: Re: Dynamic Intelligent Leader !
Post by: ronjonp on June 18, 2015, 09:02:59 AM
Can you use %allusersprofile% ?
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on June 21, 2015, 09:49:41 PM
Can you use %allusersprofile% ?

the user do not have acces to it....:(
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on September 22, 2015, 09:01:58 AM
Hi, just recently I've played with DiLeader and I've made some mods (look in archive)... It works fine with me and my mods of lisp...

HTH, I hope you don't mind Andrea...
Regards, M.R.

EDIT : You can change text size with TEXTSIZE variable... Also you can change arrow size with DIMASZ variable...
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 22, 2015, 09:41:41 AM
Thank you. :)

I'm happy that DiLEader is used. :)

Also,..DiLeader is now on Autodesk Apps Exchange. (https://apps.autodesk.com/ACD/fr/Detail/Index?id=appstore.exchange.autodesk.com%3adileader_windows32and64%3aen)
and on my website at: http://www.ductisoft.com/dileader.html (http://www.ductisoft.com/dileader.html)


Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on September 25, 2015, 01:37:13 AM
Thank you. :)

I'm happy that DiLEader is used. :)

Also,..DiLeader is now on Autodesk Apps Exchange. (https://apps.autodesk.com/ACD/fr/Detail/Index?id=appstore.exchange.autodesk.com%3adileader_windows32and64%3aen)
and on my website at: http://www.ductisoft.com/dileader.html (http://www.ductisoft.com/dileader.html)

Now that you posted links, I figured that I should remove your *.exe from my archive - it's the same... BTW. I've changed my version of *.lsp once again... Now DIMASZ also serves to arrowsize purpose... If you have some advices how to improve more I shell listen...

And THANK YOU Andrea...

Also worth of mention is that I don't want automatically loading reactors in my ACAD start session, so I've added this into my acaddoc.lsp

Code: [Select]
(if (vl-position "VLAX-GET-ACAD-OBJECT" (atoms-family 1)) (vlr-remove-all))
(if (findfile "dil-2013-2015.lsp") (load "dil-2013-2015.lsp") (load (getfiled "Select dil-2013-2015.lsp file" "\\" "lsp" 16)))

And my dil-2013-2015.lsp looks like this :

Code: [Select]
(defun c:dil nil
  (if (and (not (initget "Yes No")) (eq (getkword "\nDo you want to load Dileader.lsp with VLISP extensions [Yes/No] <No> : ") "Yes"))
    (progn
      (if (findfile "ObjectDCL.19.arx") (arxload "ObjectDCL.19.arx") (arxload (getfiled "Select ObjectDCL.19.arx file" "c:/Users/Public/DuctiSoft/ObjectDCL/Extension/" "arx" 16)))
      (if (findfile "Dileader.lsp") (load "Dileader.lsp") (load (getfiled "Select Dileader.lsp file" "c:/Users/Public/DuctiSoft/DiLeader/" "lsp" 16)))
    )
  )
  (princ)
)

So this is why I now call DiLeader when I want to use dynamic modifications with reactors with DIL command, and to use shortcut I've renamed inside DiLeader.lsp short command name from (c:DIL) to (c:DILL)...

Regards, and many thanks M.R.

Of course, my dil-2013-2015.lsp is placed in SFSP (SupportFileSearchPath) and I've added those new paths for DiLeader in SFSP (c:\Users\Public\DuctiSoft\Dileader\ ; c:\Users\Public\DuctiSoft\Dileader\Arrow ; c:\Users\Public\DuctiSoft\ObjectDCL\Extension\ )
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on September 25, 2015, 06:24:40 AM
Just to mention, I've run to the same problem as sergiu... Look here :
http://www.cadtutor.net/forum/showthread.php?27634-Auto-dimesioning-polyline/page9&p=#85

And since this is connected to this topic and solved in my previous posted explanation, I thought it would be good to post a link...
(so now it's reverse linked)

M.R.
Title: Re: Dynamic Intelligent Leader !
Post by: Andrea on September 25, 2015, 02:37:45 PM
Hello M.R.

what about this version ? may you test ?
I've removed reactor on loading and use only on demand.

You can also write me an email beacuse i'm not always connected to theswamp unfortunatly. :)
Thank you for sharing these informations.
Title: Re: Dynamic Intelligent Leader !
Post by: ribarm on October 01, 2015, 12:53:42 PM
Hi there, I've updated my zip archive, now explaining what was an issue during installation of DiLeader... Also, I've implemented into my version of lisp Andreas reactor loading on demand...
So finally, I am satisfied how it's installed now as it fulfills all my needs... The lisp is large, so I've figured that there is no need to auto initialize it as it will take very expensive memory for working during CAD session due to large function definitions... So I've figured out how to disable automatic loading and if you followed what I've explained in my previous post - Inserting line with load of dil-*-*.lsp into acaddoc.lsp and starting of load DiLeader with DIL command and afterwards using DiLeader with DILL command, I've also included prompt inside my version of lisp so that when it's called it will show message explaining how to activate-deactivate reactors on demand... So if you need DiLeader and still want to use it on smart way avoiding not adequate CAD initialization I suggest that you download my updated archive posted here :

http://www.theswamp.org/index.php?topic=29245.msg553128#msg553128

And read carefully what was written...

HTH, M.R.
Thanks Andrea...