BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
GDL
About building parametric objects with GDL.

Making 2D Symbol Objects Stretchy in both x and y

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. 

Screen Shot 2023-07-11 at 1.11.23 PM.png

 

Screen Shot 2023-07-11 at 1.10.59 PM.png

 

what might I be missing?

Think Like a Spec Writer
AC4.55 through 27 / USA AC27-4060 USA
Rhino 8 Mac
MacOS 14.2.1
4 REPLIES 4
Barry Kelly
Moderator

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.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry, as requested:

Think Like a Spec Writer
AC4.55 through 27 / USA AC27-4060 USA
Rhino 8 Mac
MacOS 14.2.1

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

 

BarryKelly_2-1689214276841.png

 

 

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.

 

BarryKelly_1-1689214140359.png

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Thanks so much Barry. 

Think Like a Spec Writer
AC4.55 through 27 / USA AC27-4060 USA
Rhino 8 Mac
MacOS 14.2.1
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!