We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-07-11 07:12 PM
I've created a simple detailing object by pasting lines and fills into the GDL object's 2D Symbol window. (I don't want GDL code, I want an editable object made of lines and fills).
It's not parametric, but I have a value list of symbols that issue FRAGMENT2 commands to control the layer that is visible.
I would like this object to be stretchy and have added a MULL2 command and Hotspot2 hotspots to the 2D script.
The object is stretchy in y, but not x.
what might I be missing?
2023-07-12 03:17 AM
Any chance you can attach the actual object (you will need to zip it)?
It will be much easier to see it and play with it rather than guess the problem.
Barry.
2023-07-12 04:18 PM
2023-07-13 04:16 AM
OK, the big problem is the hotspots.
Because you have scripted some hotspots based on A & B sizes, they need to be scripted before the MUL2 command.
Otherwise you are asking it to show hotspots to represent the actual A & B sizes, but you are also telling it to scale those hotspot positions so they can't show the overall size.
This will affect the stretching (I am not sure why in one direction only though).
Does that make sense?
So you want ...
HOTSPOT2 0,0
HOTSPOT2 -A/2,B/2
HOTSPOT2 A/2,B/2
HOTSPOT2 -A/2,B/2
HOTSPOT2 A/2,B/2
MUL2 A/0.105, B/0.200
IF DET_TYPE = 1 THEN FRAGMENT2 1, 0
Another minor problem (doesn't affect the stretching) is the 2D symbol lines and hotspots are not exactly the correct size.
They don't quite match the A & B sizes.
Barry.
2023-07-13 03:38 PM
Thanks so much Barry.