Home > Community > Forums > Custom IC SKILL > text_add_ring_layout_skill

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

 text_add_ring_layout_skill 

Last post Thu, Jul 25 2013 7:16 AM by TFTIC. 16 replies.
Started by TFTIC 24 Jul 2013 08:06 AM. Topic has 16 replies and 853 views
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts:
  • Wed, Jul 24 2013 8:06 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    text_add_ring_layout_skill Reply
    Hi all,

    I have created (by skill) a ring (many paths of metals and contacts inside this ring) and I would like to
    add in a specific location inside the ring two text labels-by skill. How could I do this? I would like to notice that my ring has not any bBox and that I should not use any.

    I would appreciate your valuable help.

    BR
    Giannis
    • Post Points: 20
  • Wed, Jul 24 2013 8:17 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 64
    • Points 1,195
    Re: text_add_ring_layout_skill Reply

    You will need "dbCreateLabel" and probaly "leAttachFig".

    I'm pretty sure your ring has a bBox, almost every layout object I can think about has a bBox. 

    • Post Points: 20
  • Thu, Jul 25 2013 12:29 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    Hi berndfi, and thank you for your reply and the answer. I use the function that you suggested but I am not sure that I use it properly. I would like a further advise. The problem is that I do not have the opportunity to add a bBox, since it is a ring that I use and I am not allowed to use a bBox. I will send u my script in order (and if you have time) to let me know your thoughts. Kind Regards Giannis
    • Post Points: 20
  • Thu, Jul 25 2013 1:24 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 64
    • Points 1,195
    Re: text_add_ring_layout_skill Reply
    Just select your ring in the layout and do type  geGetSelSet()~>bBox in the CIW, then you will get your bBox of the ring returned.
    • Post Points: 20
  • Thu, Jul 25 2013 1:51 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    You are right. Indeed, there is a bBox. Thank you very much! The remaining issue that I have is to add the word
    • Post Points: 20
  • Thu, Jul 25 2013 2:02 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 64
    • Points 1,195
    Re: text_add_ring_layout_skill Reply
    The function "mpeLabelInst" you provided me via pm works for me.
    • Post Points: 20
  • Thu, Jul 25 2013 2:46 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    It works also for me, but I can not understand how could I pass a specific word in my layout that would be for instance the word "Hello".
    • Post Points: 20
  • Thu, Jul 25 2013 2:53 AM

    Re: text_add_ring_layout_skill Reply

    Your question makes no sense - there's simply not enough detail. Maybe it makes sense with visibility of the code that you sent to Bernd - but this is a community forum - people can't help you if you don't give us enough to go on!

    Kindest Regards,

    Andrew.

    • Post Points: 20
  • Thu, Jul 25 2013 3:18 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply

    Thank you both (Andrew, I should do this from the begining). Please find the code if this could be helpful. My target: Add the word Hello in a specific place in layout (this word should be written in metal1). The reference considering the location of this word should be the metal6 path or the bBox.  

    • Post Points: 20
  • Thu, Jul 25 2013 3:30 AM

    Re: text_add_ring_layout_skill Reply

    The formatting of your code has got completely messed up (this might be because you're using Chrome as a browser? The forums don't work so well with Chrome). Anyway, please re-post the code, or add it as an attachment via the Options tab on the forum (you might need to upload it as a file with the .txt suffix, I'm not sure).

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Jul 25 2013 3:39 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    Unf I also noticed it....Please find this in the txt that I will post in a few seconds
    • Post Points: 5
  • Thu, Jul 25 2013 3:45 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    My script
    • Post Points: 5
  • Thu, Jul 25 2013 3:52 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply
    Please find attached the ring7u.txt (see above). Better open it with wordpad.
    • Post Points: 20
  • Thu, Jul 25 2013 5:51 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 64
    • Points 1,195
    Re: text_add_ring_layout_skill Reply
     1 procedure(mpeLabelInst(word)
     2    let((sel inst cv childID)
     3
     4    cv = geGetEditCellView();
     5    sel = geGetSelSet();
     6
     7    foreach(inst sel
     8       ChildID = dbCreateLabel(
     9                    cv
    10                    '("text")
    11                    mpeCalcBBMid(inst~>bBox)
    12                    word  
    13                    "centerCenter"
    14                    "R0" 
    15                    "roman" 
    16                    0.3
    17                    )
    18        leAttachFig(ChildID inst);
    19    );foreach
    20
    21 );let
    22 );idea for procedure for content
    • Post Points: 20
  • Thu, Jul 25 2013 6:12 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: text_add_ring_layout_skill Reply

    Hi Bernd, Thank you for the help. I have tried the solution you provided and it does not work (concering the addition of the word Hello for instance).

    Moreover, I also think that there is a conceptual mistake in the script that I posted (to which yours is a slight variation):

    I select an object in order to add the ring, say a cell, and the bbox that is in the code refers in the bbox of the cell.
    The word that would be added in the ring should be not related to that object, but to the ring itself

    (thats why I initially stated that the location of the word in the ring should be relative to e.g. metal6 of the ring).

    But as I said before, even if the problem of the location of the word would be ignored, I did not manage to see any solution of adding the text by using the lines you provided as they are (only by simply substituting word-->Hello).

    • Post Points: 20
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts:
Started by TFTIC at 24 Jul 2013 08:06 AM. Topic has 16 replies.