Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

World Coordinate Dimensions

LCarew
Participant

I am having an issue when using the World Coordinate Dimensions object, I can get it to display the coordinates but is there a way to make the displayed coordinates have more than 2 decimal places shown in the seconds? 

for example
E 175° 10' 47.80" which is currently displayed using the object and is accurate to approximately 308mm.
E 175° 10' 47.8045"  with 4 decimals is a better accuracy at approximately 3.8mm, 5 decimal places would be even better at 0.38mm but I understand the project location seems to be limited to 4 decimal places itself so that would be acceptable.

Is there a way to get 4 decimal places displayed? This seems to be the same on version AC25 and AC26.

 

Operating system used: Windows 10

2 REPLIES 2
ryejuan
Advisor

try changing the decimal place within the project preference settings withing the calculation units to 4 decimal place.

In the end what is your Objective? ArchiCAD 9 onwards
CPU: i9-14900K @ 3.2Ghz; GPU: GeForce RTX 5080 super (16GB); SSD: XPG GAMMIX S70 1TB; RAM: 64GB @ 4200MT/s.
WINDOWS 11 PRO
Yves
Advocate

Hi,

The number of decimal places for this object cannot be set in the project preferences because it is defined directly in the object's macro.
You need to make a copy of the object and the macro to add decimal places.

There are only two values ​​to modify on two lines in the 2D and 3D script of the macro.

 

Here are the original lines that need to be replaced.

	text_x_coor = LONG_LETTER + " " + STR(LONG_DEGREE,1,0) + "° " + STR(LONG_MINUTE,1,0) + "' " + STR(LONG_SECOND,3,2) + "''"
	text_y_coor = LAT_LETTER  + " " + STR(LAT_DEGREE, 1,0) + "° " + STR(LAT_MINUTE, 1,0) + "' " + STR(LAT_SECOND, 3,2) + "''"

And here with 4 decimal places.

	text_x_coor = LONG_LETTER + " " + STR(LONG_DEGREE,1,0) + "° " + STR(LONG_MINUTE,1,0) + "' " + STR(LONG_SECOND,5,4) + "''"
	text_y_coor = LAT_LETTER  + " " + STR(LAT_DEGREE, 1,0) + "° " + STR(LAT_MINUTE, 1,0) + "' " + STR(LAT_SECOND, 5,4) + "''"

And with 5 decimal places.

	text_x_coor = LONG_LETTER + " " + STR(LONG_DEGREE,1,0) + "° " + STR(LONG_MINUTE,1,0) + "' " + STR(LONG_SECOND,6,5) + "''"
	text_y_coor = LAT_LETTER  + " " + STR(LAT_DEGREE, 1,0) + "° " + STR(LAT_MINUTE, 1,0) + "' " + STR(LAT_SECOND, 6,5) + "''"
Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13

Setup info provided by author