AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Annotation value rounding

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
Gary_Braun
1149 Views, 10 Replies

Annotation value rounding

Annotation templates have been around for ages, and I've seldom used them but am trying to now. I created the block and have it using .LENGTH to label a bunch of line lengths. I don't need all of these to 10 decimal places though, how do I round the values when the block is inserted?

 

Thanks,

Gary

10 REPLIES 10
Message 2 of 11
fieldguy
in reply to: Gary_Braun

search help for "realtostring".

Message 3 of 11
fieldguy
in reply to: fieldguy

bad answer - wrong forum again. here's the definition of a "field" in vanilla acad. "pr2" = precision 2

%<\AcObjProp Object(%<\_ObjId 2383072587280>%).Length \f "%lu2%pr2">%

 

Message 4 of 11
O_Eckmann
in reply to: Gary_Braun

Hi,

 

you can use LISP expression

(rtos .LENGTH 2 1)

Number of decimal is managed by the last parameter (1 decimal in my example)

 

Olivier

Olivier Eckmann

EESignature

Message 5 of 11
Gary_Braun
in reply to: O_Eckmann

I probably should have guessed that. Works great, thanks Oliver.

Message 6 of 11
NoelN.
in reply to: O_Eckmann

I'm having the same issue but for that expression where do you put that lisp in the annotation template.

Message 7 of 11
Pointdump
in reply to: NoelN.

Hi Noel,
Good question. I tried just now looking at Attribute Property in the Block Editor, but couldn't find any way to change precision.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 8 of 11
Pointdump
in reply to: NoelN.

Noel,
OK, I found it. From >>>This Post<<< @olivier.eckmann shows how >>>Here<<<.

I'm going to try it right now.
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 9 of 11
Pointdump
in reply to: Pointdump

Still trying to decipher Olivier's video. I've watched it 4 times already. He moves fast and everything is in French. (Those French have a different word for EVERYTHING!) 😄

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 10 of 11
Pointdump
in reply to: O_Eckmann

Olivier,
You rock! Works great!
Dave

 

Precision_2.png

 

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 11 of 11
NoelN.
in reply to: Pointdump

okay thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report