Help with Field

Help with Field

DC-MWA
Collaborator Collaborator
780 Views
5 Replies
Message 1 of 6

Help with Field

DC-MWA
Collaborator
Collaborator

Been working on a routine to automatically label property lines.

It works but I get xx.0000" in the seconds portion of the label.

I do not know how to fix this. I have attached the lisp code that creates the field. I'm hoping this is a simple mistake on my end.

Capture.JPG

 

Thanks for your time!

-dc

0 Likes
Accepted solutions (1)
781 Views
5 Replies
Replies (5)
Message 2 of 6

cadffm
Consultant
Consultant

Start Autocad, start field command, create a field like you want to have it.

Look for the fieldcode in field dialog.

 

Sebastian

0 Likes
Message 3 of 6

DC-MWA
Collaborator
Collaborator

Well,

That's where I started. But I re-visied it again just now.

I got:

;;;%<\AcObjProp Object(%<\_ObjId 2999039409280>%).Angle \f "%au1">%

 

The code section is:

"%<\\AcObjProp Object(%<\\_ObjId " (itoa (vla-get-objectid o)) ">%).Angle \\f \"%au1\">%"

So I though maybe %au4 should be %au1.

Didn't work.

 

 

 

 

 

0 Likes
Message 4 of 6

ronjonp
Advisor
Advisor
Accepted solution

Hint: "%au1%pr1" <Depending on precision you want.

 

Picture for troubleshooting:

image.png

0 Likes
Message 5 of 6

DC-MWA
Collaborator
Collaborator

%au4%pr4

 

 

Thank you.

0 Likes
Message 6 of 6

ronjonp
Advisor
Advisor

@DC-MWA wrote:

%au4%pr4

 

 

Thank you.


🍻

0 Likes