Home > Community > Forums > PCB SKILL > how to change textblock

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

 how to change textblock 

Last post Thu, Sep 20 2007 6:19 PM by archive. 9 replies.
Started by archive 20 Sep 2007 06:19 PM. Topic has 9 replies and 2412 views
Page 1 of 1 (10 items)
Sort Posts:
  • Thu, Sep 20 2007 6:19 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    how to change textblock Reply

    Hello, I want to change a textblock number(not textblock params) by using skill languages. For example,the number of textblock changes from "1" to "2". How can i do? thanks, kenji


    Originally posted in cdnusers.org by kenji
    • Post Points: 0
  • Mon, Sep 24 2007 9:48 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Kenji

    The only way to do this is to delete then re-add the text.
    Here are some clues:
    txtOrient = make_axlTextOrientation(?textBlock "2", ?rotation txtObjId ->rotation ?mirrored txtObjId ->isMirrored, ?justify txtObjId ->justify)
    axlDBCreateText(txtObjId ->text, txtObjId -> xy, txtOrient, txtObjId ->layer, txtObjId ->parent)
    axlDeleteObject(txtObjId)

    Let me know if you need more help.

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Fri, Sep 28 2007 12:15 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Thnaks,Dave.
    I will try by the method.If it doesn't go well, it questions again.


    Originally posted in cdnusers.org by kenji
    • Post Points: 0
  • Sun, Apr 27 2008 10:40 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Dave,

    I am using the "set_refdes.il" for geting the refdes location orientation and transfer it from one board to another. But i need to get the refdes text block information also and transfer it to another board. Can you please help me.

    Regards,
    Rajesh.


    Originally posted in cdnusers.org by rajesh
    • Post Points: 0
  • Mon, Apr 28 2008 1:22 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Rajesh, Attached are two routines that I use to record and restore text blocks. Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Wed, Apr 30 2008 10:08 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Dave,

    Thanks for your replay, can i please know the step by step procedure to extract and transfer the text block by using this il file.

    Regards,

    Rajesh


    Originally posted in cdnusers.org by rajesh
    • Post Points: 0
  • Wed, Apr 30 2008 12:46 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Rajesh,

    1/ Open the first board
    2/ Load the Skill code - load("forum_TextBlocks.il"
    3/ txtBlks = AFn_recordDesignTextBlocks()
    4/ Open the second design
    5/ AFn_restoreTextBlocks(txtBlks)

    Note that you will need to run the Skill commands from the Skill console (Type "set telskill" in your command window)

    Cheers, Dave


    Originally posted in cdnusers.org by Dave Elder
    • Post Points: 0
  • Mon, May 5 2008 4:07 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Hi Dave,

    Thanks for your reply. But the script changes the text block settings where we do it allegro window (setup --> text sizes and provide the text block width,height etc..).

    What exactly i need is similar to "set_refdes.il" this will extract the refdes silkscreen_top and silkscreen_bottom location,orientation,mirrored,etc in a text file and it will be transferred to another board.

    Like that i need to extract the text block defined for each and every component (if the text block size defined for all the components are not unique throughout the board) and transfer to anoter board.

    Thanks,
    Rajesh


    Originally posted in cdnusers.org by rajesh
    • Post Points: 0
  • Mon, May 5 2008 6:23 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Rajesh,

    A modified version of ser_refdes.il is available on SourceLink and it does handle textblocks.


    Originally posted in cdnusers.org by rong
    • Post Points: 0
  • Wed, May 7 2008 10:24 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: how to change textblock Reply

    Thanks Rong

    Regards,

    Rajesh.


    Originally posted in cdnusers.org by rajesh
    • Post Points: 0
Page 1 of 1 (10 items)
Sort Posts:
Started by archive at 20 Sep 2007 06:19 PM. Topic has 9 replies.