Author Topic: Dimension sum to text sum routine converting  (Read 7950 times)

0 Members and 1 Guest are viewing this topic.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Dimension sum to text sum routine converting
« Reply #15 on: April 16, 2018, 01:40:18 AM »
I thinking about dimensions.. On this stage I decide I need linear dimensions only + numeric texts + block attributes (optional) without mtext. I understand, this is no so simple, but I do't want to lose a hope

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #16 on: April 16, 2018, 10:40:34 AM »
I thinking about dimensions.. On this stage I decide I need linear dimensions only + numeric texts + block attributes (optional) without mtext. I understand, this is no so simple, but I do't want to lose a hope

OK, I'll try to finish it tomorrow.

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #17 on: April 17, 2018, 06:03:02 AM »
Attached is lisp. Please read the comments at the top of the file.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Dimension sum to text sum routine converting
« Reply #18 on: April 17, 2018, 07:04:30 AM »
First of all thank you Dlanor for an excellent routine!
After my checking a conclusion is: all working properly among dimensions texts and block attributes
Remain only one question. Is it possible to highlight selected entities like in ssget function?
In common case will be better to use ssget function with window selecting. In your case we need to select needful objects one by one and if the object not highlighted difficult to know if it already selected...

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #19 on: April 17, 2018, 08:09:53 AM »
Off the top of my head, No. You can highlight the text and dimensions, but not the block attribute, only the block itself without losing the other highlighted objects. 

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Dimension sum to text sum routine converting
« Reply #20 on: April 17, 2018, 08:18:24 AM »
well. how to highlight the texts and dimensions?
Can you improve it in the routine?

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
TheSwamp.org  (serving the CAD community since 2003)

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #22 on: April 17, 2018, 08:34:38 AM »
well. how to highlight the texts and dimensions?
Can you improve it in the routine?

Is that highlight the text and dims and not the blocks, or highlight everything selected?

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Dimension sum to text sum routine converting
« Reply #23 on: April 17, 2018, 08:44:42 AM »
I thinking about it.. It seems to me better to highlight everything selected.. better to manage selected objects and divide it from not selected objects

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #24 on: April 17, 2018, 11:09:45 AM »
Attached is update lisp to highlight selected dims, text and the parent block of the selected attribute. The highlighted items are reset as the lisp exits.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Dimension sum to text sum routine converting
« Reply #25 on: April 17, 2018, 01:44:17 PM »
Dlanor,

FYI:  You can use the 'redraw' function to highlight entities (works with attributes).  Click on the 'redraw' name in the code below to see the man page for it.

Code - Auto/Visual Lisp: [Select]
  1. (setq sel (nentsel))
  2. (redraw (car sel) 3)
  3. ; (redraw (car sel) 4) ; this will un-highlight
  4.  
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Dimension sum to text sum routine converting
« Reply #26 on: April 17, 2018, 03:15:08 PM »
thank you very match Dlanor. your help is very appreciated by me especially on your birthday.
 all works like a charm and like I need.
you are the real MASTER :smitten:

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #27 on: April 17, 2018, 03:49:43 PM »
you are the real MASTER :smitten:

In truth, i'm barely a youngling compared to most here.   :embarrassed:

Dlanor

  • Bull Frog
  • Posts: 263
Re: Dimension sum to text sum routine converting
« Reply #28 on: April 17, 2018, 05:37:51 PM »
Dlanor,

FYI:  You can use the 'redraw' function to highlight entities (works with attributes).  Click on the 'redraw' name in the code below to see the man page for it.

Code - Auto/Visual Lisp: [Select]
  1. (setq sel (nentsel))
  2. (redraw (car sel) 3)
  3. ; (redraw (car sel) 4) ; this will un-highlight
  4.  

Sorry but I missed this earlier. At the moment i'm highlighting the Block but this works much better. Many Thanks  :yay!: