Home > Community > Forums > PCB SKILL > Modify a file.osm

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

 Modify a file.osm 

Last post Tue, Jan 22 2013 6:38 AM by Yann00. 6 replies.
Started by Yann00 16 Jan 2013 02:46 PM. Topic has 6 replies and 1224 views
Page 1 of 1 (7 items)
Sort Posts:
  • Wed, Jan 16 2013 2:46 PM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Modify a file.osm Reply

    Hi guys,

    I wanna modify a file.osm which contains my board outline. (see attachment).

    I wanna open the file.osm and then get the text (see the attachment) to modify it. (Maybe a batch method...)

    When I modify the file.osm I can save the new.osm

    Do you have any idea to do that?

    Best regards

     

    • Post Points: 20
  • Wed, Jan 16 2013 6:07 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: Modify a file.osm Reply

    I wouldn't do it that way. I would either put a property on each of the text items that you want to change and then change the text from the board once the symbol is placed or use descriptive placeholders instead of xxxxx and, again, change them once placed. 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Jan 17 2013 2:27 AM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Re: Modify a file.osm Reply

    Oh you always answer me Dave, again thank you very much.

    In fact The user open a file User.txt and write into the text which he wants to place. (See attachment).

    And after that, my border outline filled. I write in an existant file.osm. So I already place the symbol "border outline". Basically I already re-center it. What kind of function could modify the text property? 

    I have to automatize that in my SKILL code. 

     

    • Post Points: 20
  • Thu, Jan 17 2013 1:54 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: Modify a file.osm Reply

    Try using axlDBChangeText (16.6). Finding the right text to change is the hardest part.

    I now remember that you can't attach a property to text so you will have to use another method. 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Fri, Jan 18 2013 6:41 AM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Re: Modify a file.osm Reply

    Yeah I used the twin of this function (axlDBCreateSymbol)

    I give my SKILL code. I just can't open my file.dra

    In the Cadence CMD it's right but in my SKILL code it didn't work.

    How I can do please? It wanna 3 argument, but this function give us only 2 arguments.

    • Post Points: 5
  • Fri, Jan 18 2013 6:44 AM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Re: Modify a file.osm Reply
    I give you my User.txt too
    • Post Points: 5
  • Tue, Jan 22 2013 6:38 AM

    • Yann00
    • Top 200 Contributor
    • Joined on Tue, Dec 4 2012
    • Posts 42
    • Points 585
    Re: Modify a file.osm Reply

    Basically you have to open the file.dra associated to your file.osm

    Then process with your fonction like (axlDBCreateSymbol(), ...)

    Finish by axlSaveDesign()

    and axlCompileSybol to generate your file.osm modified

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by Yann00 at 16 Jan 2013 02:46 PM. Topic has 6 replies.