cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

stretchable part

Anonymous
Not applicable
Hi! how can I avoid the 2D stretchable part that gets deformed when stretched?
Thanks
16 REPLIES 16
Nader Belal
Mentor
IN the GDL editor, in the Script 2D Tab
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Lingwisyer
Guru
That would be an example, not the solution to your object. It is the command that your object has been created with. It just says to draw a 2D line from 0x0y to 0x1'y.



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Anonymous
Not applicable
Hi!
first I want to say thank you
I put the line of code "I think where u said" But still have the same result.
!
! Name : Door Trim A.gsm
! Date : Thursday, February 28, 2019
! Version : 21.00
! Written by ARCHICAD
!

mul2 A/1.149350, B/2.705100
add2 -458'-1.1401", -0'-8.7703"
pen penAttribute_1
set line_type lineTypeAttribute_1
line_property 0
line2 0', 0', 0', 1'
pen penAttribute_2
hotspot2 458'-1.2651", 9'-7.2703"
Barry Kelly
Moderator
Giuseppe,
That LINE2 command that Moonlight has shown you is just an example of a command in GDL scripting.
It will be of no use in your object.

You already have many line commands in your script, which have hard coded X & Y co-ordinates.
The problem with your script is that it has a MUL command that will stretch the lines based on the sizes you use for the length and width (A & B).
Everything after this MUL command will stretch proportionally.

To script this object properly, you would delete the MUL command and all LINE2 commands would refer to the A & B sizes.

For example to make a line that would stretch the length of the 'A' parameter you would use ...

LINE2 0, 0, A, 0

To make it stretch the height of the 'B' parameter ...

LINE2 0, 0, 0, B

To make it stretch both the length (A) and height (B) ....

LINE2 0, 0, A, B


To try and understand this without learning GDL will be rather difficult.
Your best be is to use existing objects that are scripted to be stretchy, or make a new special object for each size variation you need.

Or of course learn GDL, but that is a rather long process.
I've been doing it for 20 years and I am still learning new tricks.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Thank you so much, Barry
I really appreciate your suggestion, maybe now it's not a good time to start to learn "GDL", but I would like to learn some simple command.
Thank you again to Moonlight, Ling, and Edel
Nader Belal
Mentor
@giuseppe

We have just taught you what you need to start and to solve your problem.

And you should search for "The GDL Cookbook" by David Nicholson-Cole if you want to learn GDL, you can find it free to download.
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Anonymous
Not applicable
Thank you i already provide and I will begin to study
Tank for your advice and help