• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Radio Field and String Field doubts

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 143
  • Views 13128
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Radio Field and String Field doubts

netbug
netbug over 9 years ago

Hi,

I am trying to do a simple script, which should create a form with some text boxes and radio buttons.

Given the code in the end of this post I would like to add the following functionalities:

1 - If myOptionBtn is set to "Yes" send a message to the screen, otherwise do nothing.

2 - If I am refering to the value of a radio field, can I use something like:

if ((formName->radioName->value)=="t") then

hiGetAttention()
warn("some text"))

3 - i would like to pop a window for the user to select a directory and store that into a variable or text file.

I did my code based on an example in Cadence Documentation. Below is what I have done so far.

procedure(formSettings()

; Create the top label
myLabel=hiCreateLabel(
?name 'myLabelText
?labelText "Settings"
?justification 'center
)

; Create the textbox Label
myString=hiCreateStringField(
?name 'myTextBox
?prompt "Path: "
?value "Insert path to your images here !"
?defValue "~/Desktop/"
)

;option Buttons
myOptionBtn = hiCreateRadioField(
?name 'optionbtn
?prompt "Generate all the documents for me"
?defValue "No"
?choices list("Yes" "No")
)


if( boundp('formSettings) then ; If the form already exists do nothing
formSettings
else ; If the form doesn't exist then create it
hiCreateAppForm(
?name 'settingsForm
?formTitle "settings"
?callback "";
?fields list(myLabel myString myOptionBtn)
)
status = hiDisplayForm(settingsForm)
)
)

Thanks in advance,

José

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information