GDL
About building parametric objects with GDL.
SOLVED!

I want to know the name of the parameter variable in the parameter script easily.

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1678343893086.png

I want to know the name of the parameter variable in the parameter script easily. Is there any easy way to find it?
Right now I want to know the name of the image above.

 

AC27 on window 11
2 ACCEPTED SOLUTIONS

Accepted Solutions
Solution

I had a poke around and I couldn't find the 'Shape' page in the maze of macros.

Just scanning through the parameter list in the door object itself I could see these.

They are the ones you show in your image.

 

BarryKelly_0-1678439243375.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

View solution in original post

Solution

I just tried and it seems to work best in Parameter script.

Master script is run more often so you will get more messages.

Doesn't work in the 2D/3D script.

Also with width and height you have to open the object settings and adjust parameters there because that is where you adjust other parameters.

Doesn't work with changes you make in the info box.

 

BarryKelly_0-1679021412018.png

 

Also in your Work Environment, make sure you have 'Write Report' turned on and maybe set it to full report.

BarryKelly_1-1679021660281.png

 

BarryKelly_2-1679021674980.png

 

BarryKelly_3-1679021953623.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

View solution in original post

14 REPLIES 14
Barry Kelly
Moderator

The only suggestion I have is to open the script for the door.

Look at the Interface script.

You may have to open some of the door macros to find it as Graphisoft like to CALL macros in their doors and windows.

Once you have found the interface script, you will need to find the page for 'Shape'.

Then you should be able to see the parameter names they use.

 

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

Is there any detailed explanation?

 

call "gs_general_lt_door_macro" 

Go to gs_general_lt_door_macro and in interface

! -------------------------------------------------- ------------------------------
! Independent pages
! -------------------------------------------------- ------------------------------
if bShapeTabpage then
uiUsedPageIDs[idxPage][1] = iUiID_Shape : uiUsedPageIDs[idxPage][2] = iParID_Shape
uiUsedPageNames[idxPage][1] = `Shape` : uiUsedPageNames[idxPage][2] = "uiTab_DoorShape_hl(1)"
idxPage = idxPage + 1
endif

 

This is the only `Shape` item. How do I find it?

Should I just give up on finding parameters and just create and use them? ^^

AC27 on window 11
Solution

I had a poke around and I couldn't find the 'Shape' page in the maze of macros.

Just scanning through the parameter list in the door object itself I could see these.

They are the ones you show in your image.

 

BarryKelly_0-1678439243375.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

Your answer really helps me.
thank you
As expected, the translator has many shortcomings in conveying my heart. ^^

AC27 on window 11

We hope that beginners can easily find parameter variable names. ^^

AC27 on window 11

I'm sorry ^^

AC27 on window 11
Peter Baksa
Graphisoft
Graphisoft

One way to find it relatively quick is writing print GLOB_MODPAR_NAME at the start of the object, save it, change the parameter on the ui, and check the session report window.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

Wouldn't it be rude if I ask for a sample code because I'm weak in understanding?

AC27 on window 11

Just type... PRINT GLOB_MODPAR_NAME ... at the beginning of the script.

Amend the parameter in your placed object.

Then FILE menu > Info > Session Report to see the name of the parameter you just changed.

 

If you are using the default Graphisoft library, you will have to 'Save As' a new object after you have edited the script.

Then place that new object to test.

Then you can simply discard that object when you have finished with it.

 

Otherwise you will have to extract the LCF library, load that extracted library and unload the LCF library, amend the object to run the test, then unload that extracted library and reload the original LCF file so you are back to normal operation.

 

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