Home > Community > Forums > Custom IC SKILL > Open Layout View to spec'd configuration

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

 Open Layout View to spec'd configuration 

Last post Tue, Apr 9 2013 8:40 AM by jaleco. 5 replies.
Started by jaleco 04 Apr 2013 10:35 AM. Topic has 5 replies and 1021 views
Page 1 of 1 (6 items)
Sort Posts:
  • Thu, Apr 4 2013 10:35 AM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Open Layout View to spec'd configuration Reply

    Does anyone know how to code the opening of a layout view to a specific window size and location (on the user's monitor) so the user does not have to resize each view opened from the Library Manager?

    Searched for this topic but did not see a related thread.

    I used to be able to configure this with Mentor Graphics apps, but do not see how to do it in Cadence....would be very nice to have.

    Filed under:
    • Post Points: 20
  • Fri, Apr 5 2013 10:49 PM

    Re: Open Layout View to spec'd configuration Reply

    Put this in your ~/.cdsenv (adjust coordinates as you want):

     layout leWindowBBox string "((100 100) (800 700))"

    Regards,

    Andrew.

    • Post Points: 20
  • Mon, Apr 8 2013 11:13 AM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Re: Open Layout View to spec'd configuration Reply

    Thanks so much Andrew.

    I have found the leWindowBBox() environment variable in our documentation now and I am using it.

    Can you help with sample code to control the size and location of the LSW and CIW as well?

    I have tried "leResizeLSW((0 0) (158 1170))"  and "leSetLSWBBox((0 0) (150 2000))" for example, in the CIW, but cannot get the syntax correct. The arguments passed are not being recognized as a list, despite having the same format returned by "leGetLSWBBox()" 

    I have not located anything that defines or controls the size and placement of the CIW.

    • Post Points: 20
  • Mon, Apr 8 2013 12:26 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: Open Layout View to spec'd configuration Reply

    Hi,

    You are close, but when a bounding box is returned to you, it is not quite the same format used to specify the same (I will show an example shortly).  If a bounding box is returned by a function, then that return value can be used directly as input to another function that accepts a bounding box format in its input.  Here is how you would specify a bounding box:

      leResizeLSW('((0 0) (158 1170)))
      leSetLSWBBox(list(list(0 0) list(150 2000)))
      leResizeLSW(list(0:0 158:1170))
    

    Hopefully the examples will help; the bounding box is a list of lists structure. The first example uses the single quote to prevent the SKILL interpreter from evaluating what is in the parentheses, and so this would return the list of lists structure exactly as written. In the second example I used the list function to create the list and sub-lists. In the third example I use the ":" range operator to generate the sub-lists and the list function to make the top-most list. Do not attempt to use a combination of '() with the list function or the range operator inside the parentheses as this will not give what you want since the items inside the parentheses would not be evaluated (and you want the list or range functions to work).

    Best regards,

    Lawrence.

    • Post Points: 20
  • Mon, Apr 8 2013 2:12 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Re: Open Layout View to spec'd configuration Reply

    Thank you Lawrence,

    the commands to resize or to set the LSW in-session, from the CIW command input line work.

    And I have located the commands to size the CIW at startup using "hiResizeWindow()".

    I was hoping to use the Session file to restore the LSW window at startup, but it does not appear to work for the LSW.

    Is there some way to set the size and location of the LSW at startup or automatically when a layout view is opened - as opposed to defining a function to, or by typing the leSetLSWBBox() command directly after a layout view is open?

    Thanks!

    • Post Points: 5
  • Tue, Apr 9 2013 8:40 AM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Re: Open Layout View to spec'd configuration Reply

    An addendum to the prior post - the session file does NOT save the previous CIW size and location.  The session file ONLY restores the Layout window approximate size and location, and the Library manager window size and location.

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by jaleco at 04 Apr 2013 10:35 AM. Topic has 5 replies.