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

0 Members and 2 Guests are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #105 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.
Keep smile...

GDF

  • Water Moccasin
  • Posts: 2081
Re: Dynamic Intelligent Leader !
« Reply #106 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!!!
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: Dynamic Intelligent Leader !
« Reply #107 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.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #108 on: September 03, 2009, 02:58:03 PM »
i'm glad you like it !  :-)
Keep smile...

GDF

  • Water Moccasin
  • Posts: 2081
Re: Dynamic Intelligent Leader !
« Reply #109 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.
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #110 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 ?
Keep smile...

mdbdesign

  • Newt
  • Posts: 52
Re: Dynamic Intelligent Leader !
« Reply #111 on: September 03, 2009, 04:38:35 PM »
Dialog box... :angel:
Marek

Hugo

  • Bull Frog
  • Posts: 433
Re: Dynamic Intelligent Leader !
« Reply #112 on: September 04, 2009, 12:47:37 AM »
Hallo Andrea

Ich glaube die Pfeilgröße wird falsch berechnet.


zanze02

  • Mosquito
  • Posts: 7
Re: Dynamic Intelligent Leader !
« Reply #113 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)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Dynamic Intelligent Leader !
« Reply #114 on: September 04, 2009, 08:42:17 AM »
Welcome to the Swamp Hugo and zanze02. 8-)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #115 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
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #116 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....:
« Last Edit: September 04, 2009, 11:35:32 AM by Andrea »
Keep smile...

Hugo

  • Bull Frog
  • Posts: 433
Re: Dynamic Intelligent Leader !
« Reply #117 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.

 :-( :-(

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #118 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/#

:)
« Last Edit: September 04, 2009, 12:28:42 PM by Andrea »
Keep smile...

Chris

  • Swamp Rat
  • Posts: 548
Re: Dynamic Intelligent Leader !
« Reply #119 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
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10