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

0 Members and 2 Guests are viewing this topic.

Andrea

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

Sebb77

  • Guest
Re: Dynamic Intelligent Leader !
« Reply #136 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

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #137 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...

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #138 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  :|

Andrea

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

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #140 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?


alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Dynamic Intelligent Leader !
« Reply #141 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.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Dynamic Intelligent Leader !
« Reply #142 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.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

zanze02

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

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #144 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.

Andrea

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

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #146 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 !
« Last Edit: September 09, 2009, 08:48:14 AM by Andrea »
Keep smile...

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Dynamic Intelligent Leader !
« Reply #147 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
)
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

architecture68-raff

  • Swamp Rat
  • Posts: 599
  • Strange things are afoot at the Circle-K.
Re: Dynamic Intelligent Leader !
« Reply #148 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?
Chicago, Illinois
ADT 2005, Revit Architecture 2009, Sketchup 7

Andrea

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