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

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

LeeJaeYoung
Mentor

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.

 

AC25 5010 / AC26 4019 on window 11
2 ACCEPTED SOLUTIONS
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 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

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? ^^

AC25 5010 / AC26 4019 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 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

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

AC25 5010 / AC26 4019 on window 11

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

AC25 5010 / AC26 4019 on window 11

I'm sorry ^^

AC25 5010 / AC26 4019 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?

AC25 5010 / AC26 4019 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 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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!