element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • '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 Support (Deutsch) mehrzeiligen Text mit change ändern
  • 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 Not Answered
  • Replies 3 replies
  • Subscribers 138 subscribers
  • Views 329 views
  • Users 0 members are here
Related

mehrzeiligen Text mit change ändern

mf_ibfeew
mf_ibfeew over 4 years ago

Hallo,

ich will über ein ULP auf die Texte im Board zugreifen und diese verändern.

Mehrzeilige Texte lassen sich erstellen über:

text 'zeile1 \n zeile2 \n zeile3...' (50, 10);

 

Wenn ich diesen Text jetzt mit change verändern will:

change text 'neuezeile1 \n neuezeile2 \n neuezeile3...' (50, 10);

 

wird daraus jedoch ein einzeiliger Text. Kann das change-text-Kommando nicht mit mehrzeiligen Sachen umgehen?

 

Eagle-Version: 7.7.0 ultimate

Die Beispiel-Befehle oben wurden direkt in die eagle-Kommandozeile eingetippt.

 

Mit freundlichem Gruß, Maik Freitag

  • Sign in to reply
  • Cancel
  • WarrenBrayshaw
    0 WarrenBrayshaw over 4 years ago

    Entschuldigung für die Verwendung von Englisch

     

    I believe you are correct. The change text command does not seem to handle multi line text.

    I tried all the tricks I know to try and persuade it to work, but had no success.

     

    My solution for a ULP would be to issue a delete at the location of the text just prior to writing out the amended text using a 'Text' command

    The chance of having another object at the exact location of the text you delete is low.

     

    Warren

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • autodeskguest
    0 autodeskguest over 4 years ago in reply to WarrenBrayshaw

    Warren Brayshaw wrote:

     

    Entschuldigung für die Verwendung von Englisch

     

    I believe you are correct. The change text command does not seem to handle multi line text.

    I tried all the tricks I know to try and persuade it to work, but had no success.

     

    My solution for a ULP would be to issue a delete at the location of the text just prior to writing out the amended text using a 'Text' command

    The chance of having another object at the exact location of the text you delete is low.

     

    Warren

     

    um die Wahrscheinlichkeit zu reduzieren etwas anderes als den Text zu

    löschen kann man vorher auch noch alle anderen Layer aus- und

    anschließend mit "disp last" wieder einblenden.

     

    Oder im ULP den text mit setgroup gruppieren und dann mit "delete (>0

    0)" löschen.

    --

     

    Lorenz

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mf_ibfeew
    0 mf_ibfeew over 4 years ago in reply to autodeskguest

    Hallo,

    danke euch beiden, es liegt also am change-befehl und nicht an mir..

    Ich habe den work-around von Lorenz genommen und umgesetzt:

    - alle Eigenschaften vom alten Text merken (size , ratio, linedistance, ....)

    - mit change alle Eigenschaften auf diese Werte einstellen

    - alten Text löschen

    - neuen Text schreiben

    Nachteil:

    Nach dem Ende des ULP sind im Eagle-Board-Editor alle Text-Parameter (siehe oben - size, ratio, ...) auf zufällige Werte eingestellt (die Werte, die zu dem alten Text gehörten). Ich kann leider nicht die im Board-Editor aktuell eingestellten Werte von textsize, ratio, ..... auslesen.

    Muß man mit leben.

     

    Damit eventuell mehr Leute etwas davon haben:

    Das ULP "board_texte_bearbeiten.ulp" hat folgenden Zweck:

    - auf größeren Leiterplatten habe ich oft mehrere Texte mit Versionsnummer, Datum, Hinweisen stehen.

    - diese Texte müssen bei jeder Board-Revision angepaßt werden

    - wenn man die Texte manuell sucht, übersieht man häufig einige Texte, so daß die Versionsnummer oder Änderungsdatum nicht bei allen Texten auf der Leiterplatte aktuell sind

    - außerdem findet man bei Texten auf der BOT-Seite manchmal den origin-Punkt nicht sofort

     

    Deshalb (und zum ulp-üben) das ULP "board_texte_bearbeiten.ulp":

    Alle Texte im Board in einer Tabelle auflisten und dort bearbeiten. Falls es irgendwer ausprobieren möchte:

    downloaden unter www.ibfeew.de/knowhow_Informationen.html

    Maik

    • 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