Author Topic: Strengthen the dimensioning  (Read 9005 times)

0 Members and 1 Guest are viewing this topic.

liuhaixin88

  • Guest
Strengthen the dimensioning
« on: September 20, 2014, 09:10:07 AM »
Dear all.
can use vlisp do this ?
I see a Demonstration.





lamarn

  • Swamp Rat
  • Posts: 636
Re: Strengthen the dimensioning
« Reply #1 on: September 20, 2014, 11:53:22 AM »
That would be very welcome! How is this Video made?
Design is something you should do with both hands. My 2d hand , my 3d hand ..

77077

  • Guest
Re: Strengthen the dimensioning
« Reply #2 on: September 21, 2014, 09:44:36 AM »
Maybe need grread function. but  i can't.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Strengthen the dimensioning
« Reply #3 on: September 21, 2014, 05:16:29 PM »
I have something, but it is not finished yet. Sorry...

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Strengthen the dimensioning
« Reply #4 on: September 21, 2014, 06:19:12 PM »
Looking good Stefan!  :-)

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Strengthen the dimensioning
« Reply #5 on: September 21, 2014, 07:03:34 PM »
Ditto  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.

77077

  • Guest
Re: Strengthen the dimensioning
« Reply #6 on: September 21, 2014, 08:16:07 PM »
wow. stefan, Great routines,  can sharing ?

liuhaixin88

  • Guest
Re: Strengthen the dimensioning
« Reply #7 on: September 22, 2014, 09:58:51 AM »
I have something, but it is not finished yet. Sorry...

Mr. Stefan . looking nice ! look forward...

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Strengthen the dimensioning
« Reply #8 on: September 22, 2014, 08:48:22 PM »
I have something, but it is not finished yet. Sorry...

That looks excellent Stefan.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

tombu

  • Bull Frog
  • Posts: 289
  • ByLayer=>Not0
Re: Strengthen the dimensioning
« Reply #9 on: September 23, 2014, 08:06:49 AM »
Looks great as it is!  What are you looking to add to finish it?
Tom Beauford P.S.M.
Leon County FL Public Works - Windows 7 64 bit AutoCAD Civil 3D

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Strengthen the dimensioning
« Reply #10 on: September 23, 2014, 09:56:02 AM »
Based on the dimensionstration, I like it.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Strengthen the dimensioning
« Reply #11 on: September 23, 2014, 07:15:39 PM »
Thank you guys for your kind words and sorry for the late response.
Now is working on any UCS and I've added new features, like the option to select object.
Works with any curve not part of a block.
I'll post a new demo but not the lisp file, because I have some doubts...

liuhaixin88

  • Guest
Re: Strengthen the dimensioning
« Reply #12 on: September 23, 2014, 08:11:27 PM »
Thank you guys for your kind words and sorry for the late response.
Now is working on any UCS and I've added new features, like the option to select object.
Works with any curve not part of a block.
I'll post a new demo but not the lisp file, because I have some doubts...

Nice! Stefan.   what doubts ? can u  provide a Compiled version ?

qjchen

  • Bull Frog
  • Posts: 285
  • Best wishes to all
Re: Strengthen the dimensioning
« Reply #13 on: September 23, 2014, 09:55:39 PM »
Thank you guys for your kind words and sorry for the late response.
Now is working on any UCS and I've added new features, like the option to select object.
Works with any curve not part of a block.
I'll post a new demo but not the lisp file, because I have some doubts...

cool, Stefan

I think if it is related to polar tracking, maybe it should be done by .NET or arx.
http://qjchen.mjtd.com
My blog http://chenqj.blogspot.com (Chinese, can be translate into English)

andy_lee

  • Newt
  • Posts: 147
Re: Strengthen the dimensioning
« Reply #14 on: September 25, 2014, 06:13:30 AM »
Good routine ! Why only see demo?
andy.
Best regards.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Strengthen the dimensioning
« Reply #15 on: September 25, 2014, 05:39:04 PM »
Didn't had much time lately... This is what I have till now, and I apologize sincerely for the code; it is ugly, undocumented and very little tested.

About the lisp. It takes every perpendicular and tangent direction or every curve that pass thru dimension's definition points, plus horizontal, vertical and aligned orientation (in current UCS). After playing a little bit, I found it very annoying when are too much objects and/or very close orientations.
Try to select a common intersection of at least 3 lines and you'll see what I'm talking about...

But I really like the opportunity to have horizontal, vertical and aligned dimension in one command. I've done a "light" version including just these options and I've already replaced dimlinear command on my autocad. I can tell you, I am extremely delighted about it.

That's all for now, though there are still many things to fix, but it's not gonna happen too soon, at least not me.


Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Strengthen the dimensioning
« Reply #16 on: September 25, 2014, 05:55:06 PM »
Nicely done Stefan - relatively concise code for a lot of functionality  :-)

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: Strengthen the dimensioning
« Reply #17 on: September 25, 2014, 06:03:22 PM »
Nicely done Stefan - relatively concise code for a lot of functionality  :-)
Thank you Lee.  I forgot to mention that (entmod (cons -1 ename) ... saw it in one of your lisp. Elegant!!

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Strengthen the dimensioning
« Reply #18 on: September 25, 2014, 06:24:01 PM »
Nicely done Stefan - relatively concise code for a lot of functionality  :-)
Thank you Lee.  I forgot to mention that (entmod (cons -1 ename) ... saw it in one of your lisp. Elegant!!
Thanks Stefan - though, I probably saw it somewhere else too!  :-)

chlh_jd

  • Guest
Re: Strengthen the dimensioning
« Reply #19 on: September 25, 2014, 07:00:37 PM »
Nicely done Stefan - relatively concise code for a lot of functionality  :-)
1+  :-)

liuhaixin88

  • Guest
Re: Strengthen the dimensioning
« Reply #20 on: September 25, 2014, 08:37:24 PM »
Didn't had much time lately... This is what I have till now, and I apologize sincerely for the code; it is ugly, undocumented and very little tested.

About the lisp. It takes every perpendicular and tangent direction or every curve that pass thru dimension's definition points, plus horizontal, vertical and aligned orientation (in current UCS). After playing a little bit, I found it very annoying when are too much objects and/or very close orientations.
Try to select a common intersection of at least 3 lines and you'll see what I'm talking about...

But I really like the opportunity to have horizontal, vertical and aligned dimension in one command. I've done a "light" version including just these options and I've already replaced dimlinear command on my autocad. I can tell you, I am extremely delighted about it.

That's all for now, though there are still many things to fix, but it's not gonna happen too soon, at least not me.

Thank you very much ! You helped me, also help the most people .great !

andy_lee

  • Newt
  • Posts: 147
Re: Strengthen the dimensioning
« Reply #21 on: September 25, 2014, 08:43:19 PM »
cool ! nice routine ! many thanks stefan
andy.
Best regards.

RolandOrzabal

  • Newt
  • Posts: 86
  • "memories fade but the scars still linger"
Re: Strengthen the dimensioning
« Reply #22 on: September 25, 2014, 08:45:45 PM »
cool! thanks for sharing stefan :)
"memories fade but the scars still linger"

lamarn

  • Swamp Rat
  • Posts: 636
Re: Strengthen the dimensioning
« Reply #23 on: September 28, 2014, 04:01:55 PM »
Very  nice function. Would be even more nice if it could work in a 3d plane taking into account the Z values of picked points.
Something with this function below i use to dim a 3D point.


Code: [Select]
(defun C:d3d () (dim3d))
(defun dim3d (/ cme osm e pnt1 pnt2 pnt3 a1 b1 c1)
  (setq cme (getvar "cmdecho"))
  (setvar "cmdecho" 0)
  (command "undo" "mark")
  (setq osm (getvar "osmode"))
  (setq e (car (entsel)))
  (command "ucs" "v")
  (setvar "osmode" 33)
  (setq pnt1 (getpoint "\nPick the first point  "))
  (setq pnt2 (getpoint "\nPick the second point  "))
  (setvar "osmode" 0)
  (setq pnt3 (getpoint "\nPick dimension line location  "))
  (command "point" pnt1)
  (setq a1 (entlast))
  (command "point" pnt2)
  (setq b1 (entlast))
  (command "point" pnt3)
  (setq c1 (entlast))
  (command "ucs" "3point" pnt1 pnt2 "")
  (setq pnt1 (cdr (assoc 10 (entget a1))))
  (setq pnt2 (cdr (assoc 10 (entget b1))))
  (setq pnt3 (cdr (assoc 10 (entget c1))))
  (setq pnt1 (trans pnt1 0 1))
  (setq pnt2 (trans pnt2 0 1))
  (setq pnt3 (trans pnt3 0 1))
  (command "dim" "hor" pnt1 pnt2 pnt3 "" ^c)
  (command "erase" a1 b1 c1 "")
  (command "ucs" "p")
  (command "ucs" "p")
  (setvar "osmode" osm)
  (setvar "cmdecho" cme)
  (princ)
)
« Last Edit: September 28, 2014, 07:37:57 PM by CAB »
Design is something you should do with both hands. My 2d hand , my 3d hand ..

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Strengthen the dimensioning
« Reply #24 on: September 28, 2014, 07:20:56 PM »
Based on the dimensionstration, I like it.

:-)
very punny.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.