• 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. When user using command "schHiObjectProperty()" , can I...

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 144
  • Views 2750
  • 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

When user using command "schHiObjectProperty()" , can I launch function call after press OK/Apply?

Charley Chen
Charley Chen over 14 years ago

Hi All,

I want to do something after user press OK or Apply when using command "schHiObjectProperty()" ,

How to do it ?  I want to check whether a "symbol"  has some user preperty .

e.g. 

procedure(  AfterPressOKApply()

               ;;some code...

);pro

 

Thank you,

Charley

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Charley,

    The way to do this is to use the CDF doneProc for each component - then it can check data once the form has been OK/applied for that type of component.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 14 years ago

    Hi Andrew,

    I use the PDK , so I can't use the CDF doneProc . Can I ?

    I just want to check when user use the PDK's symbol , when press OK/Apply ...

    I want to handle it when each symbol is using "schHiObjectProperty()" to save the time.

     

    Thank you,

    Charley 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 14 years ago

    Hi Charley,

    I think that you can modify / create a User level CDF where you set the doneProc - the virtual memory (Effective) CDF will be the Base level plus the User level, so you can override (or add, as in this case) items there.  So, add the doneProc to the User level CDF and this should allow you to check the symbol that way.  There is no "trigger" I'm aware of that you can use for schHiObjectProperty().  You can easily customize the Check & Save for schematics too, e.g. using schRegPostCheckTrigger() so that when the schematic is Checked you could run your check then.

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 14 years ago

    Hi Lawrence,

    I prefer to use " modify / create a User level CDF where you set the doneProc - the virtual memory ..." because

    schRegPostCheckTrigger()  will check all of the symbol in schematic , it takes more time.

    But I read the documentation about cdfCreateUserCellCDF , I am a user , no write permission.

    How to get the cellId ?

     

    Thank you,

    Charley

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Hi Charley,

    You don't need write permission to create user CDF. For the cellId use:

    cellId=ddGetObj("libName" "cellName")

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 14 years ago

    Hi Andrew,

    "Write permission"  which means I don't have the PDK write permission.
    So I can not modify the cdf to add into doneProc.

    I know cellId=ddGetObj("libName" "cellName") , but I do not know how to combine  cellId with when user  press OK/Apply ?

    Thank you,

    Charley

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Hi Charley,

    You can modify the user cell CDF regardless of whether you have write permission. That's the whole point of user CDF; it's in memory only.

    You need the cellId to create the user CDF; once that is created, you can set the doneProc in the effective (or user) CDF and then this doneProc will get called when the apply/OK buttons are pressed when using that component.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 14 years ago

    Hi Andrew,

    Sorry , I really have no idea how to do it.  This is the first time to do .

    Could you list how many steps should I to do ?

    Thank you very much,

    Charley

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Charley Chen
    Charley Chen over 14 years ago

    Hi Andrew,

    Maybe you misunderstand what I mean. I mean a symbol has user-define property (called "s") , not CDF.

    Thank you,

    Charley 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Charley,

    I think what you want is clear enough, but I think it's you that don't understand. I'm presuming there is CDF for the component, and you want to be able to define something in the CDF which will check on the instance for the presence of a property (called "s")? 

    Anyway, I won't be able to put together an example today because I am too busy - this forum work has to be done in my spare time, and realistically I won't have enough spare time today (or possibly tomorrow).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • 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