2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations
2023-12-27 06:34 AM - edited 2023-12-27 06:36 AM
Hello, I have created an object using GDL. I have written the GDL code to display ±0 in case the value is 0. However, during testing, I encountered an issue where, despite ±0 being displayed in the plan view of the object setting dialog box, it is represented as +0 in the model. Do you have any suggestions for resolving this issue? Or has anyone else experienced a similar problem? I apologize for not being able to share the code due to security reasons. Please let me know if you have any insights. Thank you.
Solved! Go to Solution.
2024-01-05 01:41 AM
Thank you to everyone who provided assistance. The issue has been resolved through a simple solution.
My object has a feature to display the elevation from the floor to the placement location in the floor plan (displayed as ±0 when the elevation is 0).
It was identified that the issue occurred because a user placed the object with a default setting's Relative Base Height set to a value other than 0.
After changing it to 0 and placing the object, the problem did not occur.
Thanks for your comments!
2023-12-28 05:29 PM
Lots of potential things it could be, not sharing the code will make it very difficult to help.
Maybe you are scaling the distance between plus and minus wrong, maybe there is a missing or extra transformation. I would not use the 2d window in the object selection as a reference for the actual placed object, these to images will vary pending on different view settings especially with text elements. Even the 2d script window kind of sucks. I verify all my 2d code by placing the object and making sure it functions there.
Hopefully that can help.
2023-12-29 11:18 PM
Which Archicad version are you using?
Are you using the latest update of that version?
2023-12-30 05:22 PM - edited 2023-12-30 05:22 PM
Rounding?
x ≈ 0 # 0
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2024-01-05 01:41 AM
Thank you to everyone who provided assistance. The issue has been resolved through a simple solution.
My object has a feature to display the elevation from the floor to the placement location in the floor plan (displayed as ±0 when the elevation is 0).
It was identified that the issue occurred because a user placed the object with a default setting's Relative Base Height set to a value other than 0.
After changing it to 0 and placing the object, the problem did not occur.
Thanks for your comments!