element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) ULP COMMANDS, Layers and Text...
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Autodesk EAGLE requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 3 replies
  • Subscribers 145 subscribers
  • Views 466 views
  • Users 0 members are here
Related

ULP COMMANDS, Layers and Text...

Former Member
Former Member over 11 years ago

Hi all,

 

If identacle text exists on two different layers, say layers 25 and 51 and at the same coordinates, what command would one use to change the property of the text on layer 51 without affecting the text on layer 25?  Remember, this is for a ULP that will generate a script to execute the commands.

 

How might one modify the command "CHANGE FONT Fixed (x y);"  to specifically change the text on layer 51 only?  This question assumes all layers are on.

 

Thanks,

ADMsystems

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Alan Miller wrote:

    Hi all,

     

    If identacle text exists on two different layers, say layers 25 and

    51 and at the same coordinates, what command would one use to change

    the property of the text on layer 51 without affecting the text on

    layer 25? Remember, this is for a ULP that will generate a script to

    execute the commands.

     

    How might one modify the command "CHANGE FONT Fixed (x y);" to

    specifically change the text on layer 51 only? This question assumes

    all layers are on.

     

    Thanks,

    ADMsystems

     

    Remember a script is the same as typing in the command line. What you must

    do in the editor is what must be emulated in the script. Thinking it through

    from that perspective should provide the answer as to what needs to be done.

     

    To specifically target the origin of the text, you should turn off all other

    layers except the layer of interest and then target the co-ordinates of the

    text.

    Good code would assure that there is only one object at that (xy) point on

    that layer.

     

    DISPLAY none 51;

    CHANGE FONT Fixed (x y);"

    DISPLAY last;

     

    The (x y) is provided in units that the board is currently displayed with.

     

    HTH

    Warren

     

     

     

     

    --

    Viewed / responded via the newsgroup at

    news.cadsoft.de

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Guest wrote:

     

    Alan Miller wrote:

    Hi all,

     

    If identacle text exists on two different layers, say layers 25 and

    51 and at the same coordinates, what command would one use to change

    the property of the text on layer 51 without affecting the text on

    layer 25? Remember, this is for a ULP that will generate a script to

    execute the commands.

     

    How might one modify the command "CHANGE FONT Fixed (x y);" to

    specifically change the text on layer 51 only? This question assumes

    all layers are on.

     

    Thanks,

    ADMsystems

     

    Remember a script is the same as typing in the command line. What you must

    do in the editor is what must be emulated in the script. Thinking it through

    from that perspective should provide the answer as to what needs to be done.

     

    To specifically target the origin of the text, you should turn off all other

    layers except the layer of interest and then target the co-ordinates of the

    text.

    Good code would assure that there is only one object at that (xy) point on

    that layer.

     

    DISPLAY none 51;

    CHANGE FONT Fixed (x y);"

    DISPLAY last;

     

    The (x y) is provided in units that the board is currently displayed with.

     

    HTH

    Warren

     

     

     

     

    --

    Viewed / responded via the newsgroup at

    news.cadsoft.de

     

     

     

    Fantastic.  Thank you.

     

    "DISPLAY NONE layer #"  That targets each coordinate on the designated layer.

     

    This is a segment of the script file the ULP writes...

     

    EDIT QFN16-4X4.PAC;

    GRID MIL FINEST;

    DISPLAY NONE 51;

    CHANGE FONT Vector (0.000 -125.000);

    CHANGE SIZE 40.000 (0.000 -125.000);

    CHANGE RATIO 16 (0.000 -125.000);

    DISPLAY NONE 51;

    CHANGE FONT Vector (-125.000 -25.000);

    CHANGE SIZE 40.000 (-125.000 -25.000);

    CHANGE RATIO 16 (-125.000 -25.000);

    DISPLAY NONE 25;...etc

     

    The next thing I want to work on is executing all property changes in the designated layer without repeating the "DISPLY NONE layer number" command for each coordinate.

     

    Thanks again for your help.

     

    Alan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

     

     

    Fantastic. Thank you.

     

    "DISPLAY NONE layer #" That targets each coordinate on the designated

    layer.

     

    This is a segment of the script file the ULP writes...

     

    EDIT QFN16-4X4.PAC;

    GRID MIL FINEST;

    DISPLAY NONE 51;

    CHANGE FONT Vector (0.000 -125.000);

    CHANGE SIZE 40.000 (0.000 -125.000);

    CHANGE RATIO 16 (0.000 -125.000);

    DISPLAY NONE 51;

    CHANGE FONT Vector (-125.000 -25.000);

    CHANGE SIZE 40.000 (-125.000 -25.000);

    CHANGE RATIO 16 (-125.000 -25.000);

    DISPLAY NONE 25;...etc

     

    The next thing I want to work on is executing all property changes in

    the designated layer without repeating the "DISPLY NONE layer number"

    command for each coordinate.

     

    You dont have to repeat the  DISPLAY NONE 51;

    if all your changes are on that layer. Its the only layer displayed so all

    action happens there for what you are attempting.

    In fact if all your changes are to text on that layer then you can do then

    all at once and not even know where they are positioned.

     

    DISPLAY NONE 51;

    GROUP ALL;

    CHANGE FONT Vector (>0 0);

    CHANGE SIZE 40.000 (>0 0);

    CHANGE RATIO 16 (>0 0);

    DISPLAY LAST;

    GRID LAST;

     

    Warren

     

    --

    Viewed / responded via the newsgroup at

    news.cadsoft.de

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube