Home > Community > Forums > Digital Implementation > About encounter DB command & its hidden option?

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

 About encounter DB command & its hidden option? 

Last post Fri, Apr 27 2007 1:24 AM by archive. 4 replies.
Started by archive 27 Apr 2007 01:24 AM. Topic has 4 replies and 1984 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, Apr 27 2007 1:24 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    About encounter DB command & its hidden option? Reply

    Dear All:

    I am a new comer here, I got two questions to ask:

    1. Is there any db commands that can manipulate polygons, which means that I can cut a rectangular region or fence into polygon shaped?
    2. Can anyone tell me some encounter hidden variables like "set drouteUseMinSpacingForBlockage true"


    Originally posted in cdnusers.org by eminemshow
    • Post Points: 0
  • Fri, Apr 27 2007 6:38 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: About encounter DB command & its hidden option? Reply

    Hello eminem,

    Welcome to the forum! Hope you find it useful.

    For item 1, you could use the "setObjFPlanBoxList" command to define a polygon shape for a fence. You can see this command echoed to your .cmd file if you define an object to have more than 4 sides with the "Cut Rectilinear" widget in the GUI. Here is some sample output:

    setObjFPlanBoxList Module {DTMF_INST/RESULTS_CONV_INST} 922.0200 673.6800 1151.7000 840.0000 922.0200 840.0000 1042.1400 905.5200

    For additional information, type:

    encounter> help setObjFPlanBoxList
    or
    encounter> man setObjFPlanBoxList

    Regarding hidden variables- maybe you could provide some additional information on what you're trying to achieve that isn't happening by default?

    Hope this helps,
    Bob


    Originally posted in cdnusers.org by BobD
    • Post Points: 0
  • Sat, Apr 28 2007 3:37 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: About encounter DB command & its hidden option? Reply

    1. Really thanks, BobD!!! :-) But I really found that when I want to get the module constraint (such as region, guide , fence, etc) boudary box, if the really boundary is a L shaped (or any other polygon shaped) box, I use the 'dbConstraintBox' command, I get the rectangular box, not a polygon.......sigh! Is there a command through which I can get polygons!?

    2. For the hidden variables, when I use the 'ecoChangeCell' command, encounter just run 'refinePlace' everytime it finishes a 'ecoChangeCell' command ,is there a variable to control this. By which I can just run 'refinePlace' once after all 'ecoChangeCell' commands?


    Originally posted in cdnusers.org by eminemshow
    • Post Points: 0
  • Mon, Apr 30 2007 7:54 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: About encounter DB command & its hidden option? Reply

    For 1, there's a couple of different ways to get this. First, there's a corresponding "getObjFPlanBoxList" that goes with setObjFPlanBoxList. It works like this:

    encounter 34> getObjFPlanBoxList Module DTMF_INST/RESULTS_CONV_INST
    942.48 598.08 1172.16 749.28 942.48 749.28 1100.88 829.92

    You could also query the db similarly to how you have with "dbConstraintBox" to get a list of the boxes that make up the polygon. Here's an example of how you could do that with FE-TCL:

    proc userConstraintBoxList {hinstName} {
    set constraintBoxList {}
    set constraint [dbHInstConstraint [dbGetHInstByName $hinstName]]
    set constraintBox [dbConstraintBox $constraint]
    dbForEachConstraintBox $constraint box {
    set ptrBox [dbBoxPtrBox $box]
    lappend constraintBoxList $ptrBox
    }
    if {[llength $constraintBoxList] > 0} {
    return $constraintBoxList
    } else {
    return $constraintBox
    }
    }

    encounter 28> userConstraintBoxList DTMF_INST/RESULTS_CONV_INST
    {1884960 1498560 2201760 1659840} {1884960 1196160 2344320 1498560}

    This scripted method is probably easier to do if you're writing a script because you can control the formatting of what is returned to suit your needs.

    For item 2, using 6.2 you can use "setECOMode -noRefinePlace" to suppress refinePlace during eco commands. In 6.1 and earlier, you can use "setOptMode -noRPlace" to achieve same.

    -Bob


    Originally posted in cdnusers.org by BobD
    • Post Points: 0
  • Sun, May 6 2007 12:38 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: About encounter DB command & its hidden option? Reply

    Really thanks!! BObD, hope we can be friends!! My MSN is eminem198123@hotmail.com


    Originally posted in cdnusers.org by eminemshow
    • Post Points: 0
Page 1 of 1 (5 items)
Sort Posts:
Started by archive at 27 Apr 2007 01:24 AM. Topic has 4 replies.