Changing strings to numerical values
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-16 04:02 AM
2005-11-16
04:02 AM
I understand that the Global ID is a string but I need to have a numeric value to use as a counter.
Is there a way of changing the Global ID value from a string type to a numeric type?
ArchiCAD 5.1 - 24
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-16 08:36 AM
2005-11-16
08:36 AM
I am trying to use the Global ID to input the starting number of a counter I have in a carpark object. So that I don't have to open up the object settings everytime I want to change the start number.

You have to use the SPLIT command:
FLAG=request("ID_of_main","",NRT) FLAG=split(NRT,"%n",NR) if strlen(NRT)>strlen(str("%.0",NR)) then FLAG=0FLAG is a boolean, returning, if the GLOB_ID is an integer>0 or not. NR contains the number.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-21 02:44 AM
2005-11-21
02:44 AM
Thanks I will give it a try.
ArchiCAD 5.1 - 24
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-11-21 02:51 AM
2005-11-21
02:51 AM
Well that worked! Thanks for the help.
ArchiCAD 5.1 - 24
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2
MSI WS63 8SL
Intel i7-8850K @ 2.60GHz
32Gb RAM
Windows 10 Pro 64bit
TwinMotion 2020.2