gdl parameter menu
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-03
09:16 AM
- last edited on
2023-05-24
12:11 PM
by
Rubia Torres
2005-04-03
09:16 AM
this is (i think) similar to the boolean option of the parameter screen, but more that just an on/off selection. I know how to do on/off or just an keyboard inputs, but I want just to show only the selectable options in the object window.
I know I may need to explain this more clearly, written communication is not my best skill, but any help in this arena would be very much appreciated.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-04-03 04:44 PM
2005-04-03
04:44 PM
Scott:
A brief overview.
In the Parameters script, you will need a line of code like:
Values "Cond_Type" "new", "existing", "demo"
where Cond_Type is the name of the parameter and the other names in quotes are the text options you want to appear in the parameter pop up list.
Then in the 2D script, you will need conditional statements like:
If Cond_Type="new" then Gosub 10
If Cond_Type="existing" then Gosub 20
If Cond_Type="demo" then Gosub 30
where you can define the appearance of the part in the subroutines called here.
There are other ways to structure options within the code (If/Then statements), choose a method that makes sense to you. Also, if you can find an existing library part that shows options in a way that is similar to what you desire, then use that code, substituting parameter names and subroutines that fit your needs, so you don't end up reinventing the wheel.
Hope this helps.
David
A brief overview.
In the Parameters script, you will need a line of code like:
Values "Cond_Type" "new", "existing", "demo"
where Cond_Type is the name of the parameter and the other names in quotes are the text options you want to appear in the parameter pop up list.
Then in the 2D script, you will need conditional statements like:
If Cond_Type="new" then Gosub 10
If Cond_Type="existing" then Gosub 20
If Cond_Type="demo" then Gosub 30
where you can define the appearance of the part in the subroutines called here.
There are other ways to structure options within the code (If/Then statements), choose a method that makes sense to you. Also, if you can find an existing library part that shows options in a way that is similar to what you desire, then use that code, substituting parameter names and subroutines that fit your needs, so you don't end up reinventing the wheel.
Hope this helps.
David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14