Author Topic: Reading text value  (Read 1732 times)

0 Members and 1 Guest are viewing this topic.

mohan

  • Newt
  • Posts: 98
Reading text value
« on: October 21, 2023, 10:30:19 AM »
Dear Colleagues,

While selecting a text entity for reading it's value 65.123 - The route as below works
Code - Auto/Visual Lisp: [Select]
  1. (setq txt (car (entsel "\nSelect numerical Text object: ")))
  2. (setq value (atof (cdr (assoc 1 (entget txt)))))

But for reading the Chainage value as 0+065.123
Need help to modify the route to work both ways.

Both Ways is too difficult !
« Last Edit: October 23, 2023, 01:52:04 AM by mohan »
"Save Energy"

HOSNEYALAA

  • Newt
  • Posts: 103
Re: Reading text value
« Reply #1 on: October 21, 2023, 11:57:21 PM »

mohan

  • Newt
  • Posts: 98
Re: Reading text value
« Reply #2 on: October 23, 2023, 01:59:27 AM »
can you see this
http://www.lee-mac.com/parsenumbers.html

Code: [Select]
_$ (LM:parsenumbers "0+065.123")
(0 65.123)
_$ (LM:parsenumbers "20+065.123")
(20 65.123)

Need lots to do.

This link is useful & modify for our requirement
https://www.cadtutor.net/forum/topic/71459-chainage-marking-on-plan-view/?do=findComment&comment=573447
"Save Energy"