Home > Community > Forums > Custom IC SKILL > i am having a problem with rodAssignHandleToParameter

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: *

 i am having a problem with rodAssignHandleToParameter 

Last post Mon, Jul 2 2012 9:39 AM by Andrew Beckett. 5 replies.
Started by Adhil 12 Jun 2012 11:25 PM. Topic has 5 replies.
Page 1 of 1 (6 items)
Sort Posts:
  • Tue, Jun 12 2012 11:25 PM

    • Adhil
    • Top 100 Contributor
    • Joined on Fri, Apr 15 2011
    • Singapore, 00-SG
    • Posts 61
    • Points 1,245
    i am having a problem with rodAssignHandleToParameter Reply

    this is my code

    procedure(createALPHA(cv w l)
      let( (rectRodObj)
      ;; create a rectangle on metal1 with x & y dimensions set by w & l
      rectRodObj = rodCreateRect(
          ?name     "myRect"
          ?cvId     cv
          ?layer    list("ALPHA" "drawing")
          ?width    w
          ?length   l
          ?origin   list(0 0)
      )
      ;; create labels to show the w and l parameters
      ;; create a stretch handle for the width, in the X dimension, it
      ;; will display as "width = <value>" and change by 0.1 increments
      rodAssignHandleToParameter(
        ?parameter          "w"
        ?rodObj             rectRodObj
        ?handleName         "centerRight"
        ?stretchDir         "X"
        ?displayName        "width"
        ?displayExpression  "w"
        ?updateIncrement    0.2
      ); rodAssignHandleToParameter
      ); let
    ); procedure CCScreateBoxAndLabels
    pcDefinePCell(
      list(ddGetObj("adhillib") "gp2_path1" "layout")
       (
        (rows 1)
        (cols 1)
        (finger_width 0.10)
       )
         
      let(((cv pcCellView) paramObj awidth alength bBox) 
      paramObj = dbCreateParamInstByMasterName(cv "adhillib" "gp2_path" "layout" "inst1"
       list(0 0)
       "R0"
       1
       list(
        list("rows" "float" rows)
        list("cols" "float" cols)
        list("finger_width" "float" finger_width))
       )
      bBox = paramObj~>bBox

    awidth  = xCoord(upperRight(bBox)) - xCoord(lowerLeft(bBox))
    alength = yCoord(upperRight(bBox)) - yCoord(lowerLeft(bBox))
    println(awidth)
    createALPHA(cv awidth alength)
    cols = awidth/0.2
    )
      )
     but i am getting the error

    *WARNING* rodAssignHandleToParameter: w is an invalid parameter
    *WARNING* rodAssignHandleToParameter: command failed

    I am trying to use the handle on rodrectobj with an alpha layer to extend the pcell within

    Adhil

    • Post Points: 5
  • Wed, Jun 13 2012 12:28 AM

    • Adhil
    • Top 100 Contributor
    • Joined on Fri, Apr 15 2011
    • Singapore, 00-SG
    • Posts 61
    • Points 1,245
    Re: i am having a problem with rodAssignHandleToParameter Reply

    i changed the code i get this

    procedure(CCScreateBoxAndLabels(cv w l "dnn")
      let( (rectRodObj)
      ;; create a rectangle on metal1 with x & y dimensions set by w & l
      rectRodObj = rodCreateRect(
          ?name     "myRect1"
          ?cvId     cv
          ?layer    list("ALPHA" "drawing")
          ?width    w
          ?length   l
          ?origin   list(0 0)
      )
          

      rodAssignHandleToParameter(
        ?parameter          "w"
        ?rodObj             rectRodObj
        ?handleName         "centerRight"
        ?stretchDir         "X"
        ?displayName        "width"
        ?displayExpression  "w"
        ?updateIncrement    0.1
      ); rodAssignHandleToParameter
      ); let
    ); procedure CCScreateBoxAndLabels

    pcDefinePCell(
      list(ddGetObj("adhillib") "encapRodPcell" "layout")
      (
        (w 0.2)
        (l 0.4)
      )
      let( ((cv pcCellView))
        CCScreateBoxAndLabels(cv w l)
    cols = w/0.2
     paramObj = dbCreateParamInstByMasterName(cv "adhillib" "gp2_path" "layout" "inst1"
       list(0 0)
       "R0"
       1
       list(
        list("rows" "float" 1.0)
        list("cols" "float" cols)
        list("finger_width" "float" 0.1))
       )

      ); let
    )
    /*
    the code compiles without errors, but the handle doesn't get assigned

     

    Adhil

     

    • Post Points: 35
  • Fri, Jun 22 2012 6:04 AM

    Re: i am having a problem with rodAssignHandleToParameter Reply

    Adhil,

    Did you resolve this, given your other question? (the one I answered with the lambda)

    Andrew.

    • Post Points: 5
  • Thu, Jun 28 2012 10:14 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,421
    • Points 13,115
    Re: i am having a problem with rodAssignHandleToParameter Reply

     Hi Adhil,

    This code appears to work fine - I copied this and created something for the cell "gp2_path" that I could use with the code.

    Have you made sure that the "Stretch Handles" are turned on in the Display Options form?

    Hopefully this helps?

    Regards,

    Lawrence.

    • Post Points: 20
  • Sun, Jul 1 2012 6:34 PM

    • Adhil
    • Top 100 Contributor
    • Joined on Fri, Apr 15 2011
    • Singapore, 00-SG
    • Posts 61
    • Points 1,245
    Re: i am having a problem with rodAssignHandleToParameter Reply

    Hi Andrew and Lawrence

    Sorry for the late reply, but the code is working.I was not aware that the "Display stretch handles" was off. On the otherhand, thanks Andrew for your previous code, although i hope you could help me understand how it works.

    Thanks alot

    Adhil

    • Post Points: 20
  • Mon, Jul 2 2012 9:39 AM

    Re: i am having a problem with rodAssignHandleToParameter Reply

    Adhil,

    I already gave an explanation in the other post...

    Andrew

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by Adhil at 12 Jun 2012 11:25 PM. Topic has 5 replies.