Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2023-03-28 07:01 AM - edited 2023-03-29 03:38 AM
Hi all,
Is there a way to scale a parameter used by a dynamic hotspot? My parameters are in Layout units, so they are set to the View, and I would rather not need to make a set of intermediary parameters to convert it for graphical editing...
paramReference / GLOB_SCALE
HOTSPOT2 (marker_length) * GLOB_SCALE, lsg_elevation, lsg_uID, marker_length / GLOB_SCALE, 2+1024 : lsg_uID = lsg_uID +1 !Left moving
Ling.
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
Solved! Go to Solution.
Wednesday
Oh yes, that is true! Crucial point, I forgot to mention that.
Flag `1024` is only possible with Length parameters. Another reason why you need two parameters and can't get away with just one (in mm, as float param).
Wednesday
This is common practice in objects I have seen before, where you have both Model Size AND Paper Size (like a generic object with text over it).
Length parameters are always interpreted as meters in GDL, and on the UI it will display in whatever the user has set for "Working Units" in project preferences. (in my case, I have meters in the model space and millimeters in the paper space)
So, in my case, if I made both the dimensions of the objects and the size of the text into "length" parameters, in my case the UI would offer them as meters to the user (because that is the Working Unit in my template), so you would need to enter 1.00 m for the dimension, and 0.001 m for a 1 mm tall text.
Things get even more confusing in Imperial templates where text is usually measured in "Points", so you would also need a whole conversion thing there in the code, especially because there is no easy conversion from inches to points like there is from meters to millimeters.
But, if anyone has a better practice for managing paper units in the model space, I am open to any new ideas 🙂
Wednesday
Alright, that works like a charm. Thanks so much!
I tried 10 other ways, using a shadow parameter that didn't work before, never thought to try it this specific way, not very intuitive. 😄
It was indeed not easy to get my head around it at first, but I think I get it now. thank you! 🙂