How from GDL to learn the number of decimal places in the project settings
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:05 PM
‎2018-06-19
02:05 PM
How do I get this number?
Thank you.
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:18 PM
‎2018-06-19
02:18 PM
Tsepov wrote:
I need to change the number of decimal places in the GDL object according to the project settings .
How do I get this number?
Thank you.
rrr = REQUEST ("Area_dimension", "", format_string) zzz = format_string text2 0, 0, str(zzz, room_area)Hope this helps

ArchiCAD 23
Windows 10
Windows 10
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:39 PM
‎2018-06-19
02:39 PM
In my special team, the number of decimal places does not exist.
There is only a general request about the units.
Similarly, JGoode, but he pointed out the not quite right command, not about the calculations, but about the units of measurement.
There is only a general request about the units.
Similarly, JGoode, but he pointed out the not quite right command, not about the calculations, but about the units of measurement.
qw=REQUEST ("Calc_area_unit", "", form_str) AreaUN = form_str
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:43 PM
‎2018-06-19
02:43 PM
A little not that. But it turned out that it works:
REQUEST ("Calc_area_unit", "", format_string)
Thank you so much !
REQUEST ("Calc_area_unit", "", format_string)
Thank you so much !

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:46 PM
‎2018-06-19
02:46 PM
I copied the wrong piece of code...silly me. Thanks for clearing it up.
ArchiCAD 23
Windows 10
Windows 10
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 02:50 PM
‎2018-06-19
02:50 PM
Friends, thank you very much!
I made it possible for my add-ons to automatically detect this.
In the apartment marker I will also make an opportunity.
It would be nice if the zone LSR marker also had a tick "get the number of decimal places from the project settings".
I made it possible for my add-ons to automatically detect this.
In the apartment marker I will also make an opportunity.
It would be nice if the zone LSR marker also had a tick "get the number of decimal places from the project settings".
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2018-06-19 04:40 PM
‎2018-06-19
04:40 PM
This code is work for assign num round digits to TS_ROUNDIGITS from project settings if needed
-------------------------------------------------------------------------------------------------------------------
Common script:
IF TS_GETNDIGITSFROMPRJ = 1 THEN
rrr = REQUEST ("Calc_Area_unit", "", format_string)
zzz = STRSUB(format_string,3,1)
SPLIT (zzz, "%n", nddd)
if (nddd > 0)AND(nddd < 4) then
TS_ROUNDIGITS = nddd
endif
ENDIF
Parameter script:
IF TS_GETNDIGITSFROMPRJ = 1 THEN
PARAMETERS TS_ROUNDIGITS=TS_ROUNDIGITS
ENDIF
---------------
Thank you again!)
-------------------------------------------------------------------------------------------------------------------
Common script:
IF TS_GETNDIGITSFROMPRJ = 1 THEN
rrr = REQUEST ("Calc_Area_unit", "", format_string)
zzz = STRSUB(format_string,3,1)
SPLIT (zzz, "%n", nddd)
if (nddd > 0)AND(nddd < 4) then
TS_ROUNDIGITS = nddd
endif
ENDIF
Parameter script:
IF TS_GETNDIGITSFROMPRJ = 1 THEN
PARAMETERS TS_ROUNDIGITS=TS_ROUNDIGITS
ENDIF
---------------
Thank you again!)