License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

how to make editable GDL Script ?

Anonymous
Not applicable
!ADD2 0.5, 0.4
hotspot2 0,0
hotspot2 a,0
PEN epn
LINE2 -0.5, 0.0, a, 0.0
PEN cpn
LINE2 0.0, 0.0, -0.4, 0.4
LINE2 -0.4, 0.4, 0.4, 0.4
LINE2 0.4, 0.4, 0.0, 0.0
DEFINE STYLE "AC_STYLE_1" "arial",
100*tsize/a_, 7, 0
pen tpn
SET STYLE "AC_STYLE_1"
C=""
C=str(int((y~*100)+.5)/100,3,2)
TEXT2 0.0, 0.377143, "C "+C

this is my script. i want to make it auto editable. my c value generate automatically when i copied an object.
anyone please help me
19 REPLIES 19
Anonymous
Not applicable
find object.rar
Barry Kelly
Moderator
Sorry I can't expand RAR files - only ZIP files.
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
object.zip
David Maudlin
Rockstar
deval wrote:
object.zip
This is just the 2D Script. Please post the entire object which will have the parameters.

You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Barry Kelly
Moderator
Yes we will need the entire .GSM object file (But Zipped) so we can see where the problem is.
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
hi, sorry yesterday i could not reply you due to my office hours over. today i am sending you object file which you want. please find an attachment sheet.
thank you
Barry Kelly
Moderator
You have only attached an image of you parameter list so we still can't test it.
But it might be enough.

You don't have parameters for "auto_input" which is a boolean parameter and "manual_text" which is a text parameter.

Barry.
parameters.jpg
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
mul2 A/0.009850, B/0.002501
add2 -0.5678904373088, 9.425812062273
pen penAttribute_1
line_property 0
line2 0.5717404373113, -9.42546206234, 0.5717404373113, -9.423662062112
fill fillAttribute_1
poly2_b{5} 9, 2, 0, 3, penAttribute_1, penAttribute_2,
0, 0, 1, 0, 0, 1, 0,
0.5678904374361, -9.425812062273, 1,
0.5717404373113, -9.425812062273, 1,
0.5717404373113, -9.425562062232, 1,
0.5681404371657, -9.425562062232, 1,
0.5681404371657, -9.42356206222, 1,
0.5717404373113, -9.42356206222, 1,
0.5717404373113, -9.42331206218, 1,
0.5678904374361, -9.42331206218, 1,
0.5678904374361, -9.425812062273, 1
poly2_b{5} 2, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
0.5678904373088, -9.423312062235, 1,
0.5717404373088, -9.423312062235, 1
poly2_b{5} 8, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
0.5717404373088, -9.423312062235, 1,
0.5717404373088, -9.423562062235, 1,
0.5681404373088, -9.423562062235, 1,
0.5681404373088, -9.425562062235, 1,
0.5717404373088, -9.425562062235, 1,
0.5717404373088, -9.425812062235, 1,
0.5678904373088, -9.425812062235, 1,
0.5678904373088, -9.423312062235, 1
poly2_b{5} 4, 1, 0, 3, 1, 0,
0, 0, 1, 0, 0, 1, 0,
0.5717404373088, -9.423562062235, 1,
0.5777404373088, -9.423562062235, 1,
0.5777404373088, -9.425562062235, 1,
0.5717404373088, -9.425562062235, 1
define style{2} "AC_STYLE_1" "Arial Narrow", 0.015, 0

paragraph "AC_PRG_12" 1, 0, 0, 0, 1
set style "AC_STYLE_1"
"FFL"
endparagraph
textblock "AC_TEXTBLOCK_12" 0, 7, 0, 1, 1, 1,
"AC_PRG_12"
richtext2 0.5684845814529, -9.42578172547, "AC_TEXTBLOCK_12"




this is generate error
Barry Kelly
Moderator
I don't see any problems with this bit of script at all.
But it is very hard to say what is happening with out the entire object as the various scripts and parameter list all interact with each other.

The object will be a .GSM object.
It may be embedded in the actual PLN file.
If that is the case then open the Library Manager, select the object in the Embedded Library and Export (save) it to an external file.
Then ZIP that file and attach to a post.

Barry.
export-object.jpg
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
its working. thanks