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

0 Members and 2 Guests are viewing this topic.

mdbdesign

  • Newt
  • Posts: 52
Re: Dynamic Intelligent Leader !
« Reply #75 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 :-(
Marek

Aerdvark

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

Shade

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

Andrea

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

Andrea

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

Keep smile...

Lee Mac

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

Andrea

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

Lee Mac

  • Seagull
  • Posts: 12922
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #82 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 for more reference.

Hope this helps you improve an already superb program

Good luck,

Lee




Andrea

  • Water Moccasin
  • Posts: 2372
Re: Dynamic Intelligent Leader !
« Reply #83 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 for more reference.

Hope this helps you improve an already superb program

Good luck,

Lee

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

Look Here !!

Keep smile...

Lee Mac

  • Seagull
  • Posts: 12922
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #84 on: August 26, 2009, 01:47:53 PM »
haha -- Great minds think alike it seems    8-)

Shade

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







Andrea

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

Lee Mac

  • Seagull
  • Posts: 12922
  • London, England
Re: Dynamic Intelligent Leader !
« Reply #87 on: August 26, 2009, 06:49:37 PM »
Superb   :lol:

I think you have outdone yourself again Andrea  :-)

Andrea

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

Keep smile...

GDF

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