Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Stretchy 2D symbol made from fragments?

Paul King
Advocate
It has been too long since I have had a chance to do much with GDL, so hoping someone has a quick and easy solution.

I have a bunch of 2D objects based on drawn fragments that can be parametrically switched off and on.

I would like to be able to stretch these when placed by dragging corner hotspots, but no combination of settings in object editing dialog seems to allow this.

I seem to recall it being possible at one time. In face I recall this tendency being an actual problem in some cases.

I have been playing with compatibility options in particular (saving object and reloading libraries each time), but none of these options has any noticeable affect on stretchability, though I could have sworn they once did.

What am I missing?

More importantly, how can I otherwise rapidly rescale a placed dumb 2D object independently in an x or y direction (accepting the distortion of curved elements etc) - without resorting to elaborate scripting to generate each line in the symbol ?
PAUL KING
https://www.prime.net.nz
ArchiCAD 8-25
Octane Render Plugin for ArchiCAD
Twinmotion 2021
Windoze 10
Intel Core i9 10900K
Nvidia Gforce RTX 3080
32 Gb DDR3
2x4K monitor extended desktop
1 ACCEPTED SOLUTION

Solution
Barry Kelly
Moderator
The compatibility options you show have nothing to do with what you want.
The store ration button you have selected just means if you change the A or B value in the object script and re-save the object, it will affect all placed instances of that object.
The other one for 'Store Fixed Values' is the better option.

What you want is a simple MUL2 command before the FRAGMENT command.

So let's assume you have a default A value of 1000mm and a default B value of 1000mm in your object.
MUL2 A/1.000, B/1.000
FRAGMENT2 1,0
DEL 1

This should now stretch as you adjust the A and B values in the place object instance.
You could also add adjustable hotspots to make the stretchy graphical.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original post

2 REPLIES 2

Solution
Barry Kelly
Moderator
The compatibility options you show have nothing to do with what you want.
The store ration button you have selected just means if you change the A or B value in the object script and re-save the object, it will affect all placed instances of that object.
The other one for 'Store Fixed Values' is the better option.

What you want is a simple MUL2 command before the FRAGMENT command.

So let's assume you have a default A value of 1000mm and a default B value of 1000mm in your object.
MUL2 A/1.000, B/1.000
FRAGMENT2 1,0
DEL 1

This should now stretch as you adjust the A and B values in the place object instance.
You could also add adjustable hotspots to make the stretchy graphical.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original post

Paul King
Advocate
Awesome, thanks Barry

My 10 years younger self kicks present day me in the shins for forgetting about that stuff!
PAUL KING
https://www.prime.net.nz
ArchiCAD 8-25
Octane Render Plugin for ArchiCAD
Twinmotion 2021
Windoze 10
Intel Core i9 10900K
Nvidia Gforce RTX 3080
32 Gb DDR3
2x4K monitor extended desktop

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!