Home > Community > Forums > Custom IC SKILL > Can we use interactive functions inside a procedure..?

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

 Can we use interactive functions inside a procedure..? 

Last post Fri, Oct 16 2009 6:27 AM by IC Layout. 2 replies.
Started by IC Layout 14 Oct 2009 10:30 PM. Topic has 2 replies and 1545 views
Page 1 of 1 (3 items)
Sort Posts:
  • Wed, Oct 14 2009 10:30 PM

    • IC Layout
    • Top 150 Contributor
    • Joined on Fri, Mar 6 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Can we use interactive functions inside a procedure..? Reply
    Hi, All ! I am using cadence IC514 version... right now we don't have layoutXL feature in our company ... So for drawing gaurding I have written a code .. This code is working fine when it is loaded as it is. But when I place this code inside a procedure its not giving good results... I thought this is because of using interactive functions inside procedure ... If it is so, please someone guide me to do this kind of tasks.. I am attaching my code snippet below... ;;;;;;;;;;;;;;starts here;;;;;;;;;;;;;;;;;;;;; ll = lowerLeft( css()~>bBox ) ur = upperRight( css()~>bBox ) llx = xCoord(ll) urx = xCoord(ur) X = urx-llx lly = yCoord( ll ) ury = yCoord( ur ) Y = ury - lly leHiCreateMPP() leRodMppForm->rodMPPTemplate->value = mpp leRodMppForm->pathJustify->value = "left" mouseAddPt() `(,(X/2.0) ,lly) mouseAddPt() `(,urx ,lly) mouseAddPt() `(,urx ,ury) mouseAddPt() `(,llx ,ury) mouseAddPt() `(,llx ,lly) mouseAddPt() `(,(X/2.0) ,lly) mouseApplyOrFinishPoint() hiiToggleEnterForm(leRodMppForm) ;;;;;;;;;;;;;;;;end here;;;;;;;;;;;;;;;;;;;;; Thanks in advance... Prabhakar. K -- Layout Engineer
    Filed under: ,
    • Post Points: 20
  • Thu, Oct 15 2009 1:29 AM

    Re: Can we use interactive functions inside a procedure..? Reply

    OK. I reformatted  your code so I could read it - it is completely scrambled above.

    Anyway, this code isn't inside a procedure, but I think the point is that you've written it as a set of function calls as you'd get in a replay file. When you execute some of these functions, they block until some interactive operation has occurred - and hence the subsequent statements in code won't work. It works if replayed as a replay file (e.g. using hiReplayFile() ), but that's not a very elegant solution.

    In this particular case, you'll probably be best using my Sourcelink Solution 11323850, which provides a function to draw an MPP using a named template. This can easily be used in procedural code.

    Regards,

    Andrew.

    • Post Points: 20
  • Fri, Oct 16 2009 6:27 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Fri, Mar 6 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Re: Can we use interactive functions inside a procedure..? Reply

     Thank you Mr. Andrew... It is working well.. Hats off to your ideas...

    Prabhakar.K -- Layout Engineer 

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by IC Layout at 14 Oct 2009 10:30 PM. Topic has 2 replies.