Home > Community > Forums > Custom IC SKILL > Change parameters in pcDefinePCell code body

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Change parameters in pcDefinePCell code body 

Last post Wed, Sep 18 2013 8:57 AM by skillUser. 1 replies.
Started by RVERP 18 Sep 2013 01:45 AM. Topic has 1 replies and 241 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Sep 18 2013 1:45 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Mon, Oct 24 2011
    • Posts 27
    • Points 465
    Change parameters in pcDefinePCell code body Reply

    Hi, I have a normal pcell that you can give certain parameters.  I want to check in this pcell if certain parameters are between a min and max value, and the reset the parameter to this value.  How is this done?

     

    For now i tried a if else statement.
    So I have parameter l, in the code body i check

    if( l<minL then l = minL)

    If I create an instance of this pcell, and enter a value lower as minL, this results in a pcell with correct l, only the value I initial entered is still visible in the instance parameters. 

    Can I change this?

     

    Thanks,

    Rik 

    • Post Points: 20
  • Wed, Sep 18 2013 8:57 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: Change parameters in pcDefinePCell code body Reply

     Hi Rik,

    This is a case where CDF callbacks can be used to good effect - the PCell parameter would have an associated CDF parameter, and this parameter would have a callback so that when the value is entered/changed on a form (Edit Object Properties, Add Instance) the value is checked within the boundaries that you set up; the CDF callback can modify (e.g. reset to min or max) the value to provide feedback to the user (along with a printed statement in the CIW, perhaps?)

    Search for CDF callbacks if you need more help, or post follow-on questions here.

    Hope this helps!

    Regards,

    Lawrence.

    Filed under: ,
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by RVERP at 18 Sep 2013 01:45 AM. Topic has 1 replies.