North and eas coordinates as per sketch with N01.000 instead N 1.0000

North and eas coordinates as per sketch with N01.000 instead N 1.0000

coolkris
Advocate Advocate
1,100 Views
3 Replies
Message 1 of 4

North and eas coordinates as per sketch with N01.000 instead N 1.0000

coolkris
Advocate
Advocate

Dear All,

 

I need to provide northing and easting for lot of drawings.

I have made dim ordinate having prefix of N and so on. But N 1.450 is not acceptable.

I need to put N as prefix also 0 before 1.450  etc. So I am looking for any dynamic blocks or lisp which will provide one integrated dimension style preferably or text with prefix 0.

 

Thanks

 

Krish

0 Likes
Accepted solutions (1)
1,101 Views
3 Replies
Replies (3)
Message 2 of 4

TheCADnoob
Mentor
Mentor

I added a visibility state to a location block which gives options for the prefix, would this work?

 

 

TheCADnoob_0-1716219793082.png

 

 

CADnoob

EESignature

0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant

Are they always a compass letter followed by a [single] space followed by the numerical part?  And would the numerical part need the 0 added only if it has only one number before the decimal point?  It would be simple enough to write a routine that would find all Text objects that start that way with only one digit before the decimal point, and add the 0 in the right place.

 

For example, if we put this into a 'txt' variable:

(setq txt "E 1.350")

then:

(wcmatch txt "@ #.*")

returns T, and its content could be replaced with:

(strcat (substr txt 1 2) "0" (substr txt 3))

which returns
"E 01.350"

But that simple solution depends on absolute regularity about the format of the source Text objects.  And if it's in Ordinate Dimensions, with the compass letter built into the Dimension Style, that's a different animal....

 

EDIT:  How about two Dimension Styles for each compass direction, one with the letter and a space as prefix, and one with a letter and a space and a zero?  Then if the Measured value of a Dimension was less than 10, it would be switched to the Style that includes the zero in the prefix.  A routine could be written to let you do the Dimension in the Style without the zero, and then check whether it needs that change.

Kent Cooper, AIA
0 Likes
Message 4 of 4

coolkris
Advocate
Advocate
Accepted solution

Thanks almost what i wanted but only the - after 0- from where we get this. I don't want this after 0- like this.

Please see attached.

 

Thanks

 

Krish

0 Likes