element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE Support (Deutsch) Relatives verschieben
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 172 subscribers
  • Views 361 views
  • Users 0 members are here
Related

Relatives verschieben

autodeskguest
autodeskguest over 15 years ago

Hallo,

gibt es eine Möglichkeit Bauteile mittels Skript/Konsole relativ zur

gegenwärtigen Position zu verschieben? Ich habe schon einiges ausprobiert:

Mark: kann die gegenwärtige Position von z.B. IC1 nicht eingeben

Group: dito

und mit Move kann ich nur absolute Koordinaten (oder bez. Mark) eingeben.

 

Danke, Günter

 

 

 

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 15 years ago

    Günter Randolf schrieb:

    Hallo,

    gibt es eine Möglichkeit Bauteile mittels Skript/Konsole relativ zur

    gegenwärtigen Position zu verschieben? Ich habe schon einiges ausprobiert:

    Mark: kann die gegenwärtige Position von z.B. IC1 nicht eingeben

    Group: dito

    und mit Move kann ich nur absolute Koordinaten (oder bez. Mark) eingeben.

     

    Die Koordinate von IC1 sollte bekannt sein, dann kann man mit

     

    GROUP . . . . (>0 0) (x y) arbeiten.

     

    Das könnte man mit einem ULP herausfischen. image

     

    Ein Gruppe kann auch außerhalb "angefaßt" werden, also am absoluten

    Nullpunkt. Dann mit (>0 0) die Gruppe am Nullpunkt aufnehmen, und

    um den relativen Betrag (x y) absetzen.

     

    Im Anhang ein kleines ULP, das man auch in einem Script benutzen kann.

      image

    RUN relative-move IC1 x y

     

    --

    MfG / Best regards

      A. Zaffran

     

    Hotline 08635-698930, FAX 08635-698940, eMail <alf@cadsoft.de>

    CadSoft Computer GmbH, Hofmark 2, 84568 Pleiskirchen

    Registergericht: Amtsgericht Traunstein, HRB 5573

    Geschäftsführer: Dipl.-Ing. (FH) Rudolf Hofer

                      Dipl.-Ing. Klaus Schmidinger

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 15 years ago

    Danke, das ULP hilft!

    Ich bin mit den ULPs noch nicht so ganz eingearbeitet, als

    LabVIEW-Programmiere ist mir C(++ und ähnliches) ein wenig rätselhaft ;).

    Grüße, Günter

     

     

    "A. Zaffran" <alf@cadsoft.de> schrieb im Newsbeitrag

    news:h5p3al$m6v$1@cheetah.cadsoft.de...

    Günter Randolf schrieb:

    Hallo,

    gibt es eine Möglichkeit Bauteile mittels Skript/Konsole relativ zur

    gegenwärtigen Position zu verschieben? Ich habe schon einiges

    ausprobiert:

    Mark: kann die gegenwärtige Position von z.B. IC1 nicht eingeben

    Group: dito

    und mit Move kann ich nur absolute Koordinaten (oder bez. Mark) eingeben.

     

    Die Koordinate von IC1 sollte bekannt sein, dann kann man mit

     

    GROUP . . . . (>0 0) (x y) arbeiten.

     

    Das könnte man mit einem ULP herausfischen. image

     

    Ein Gruppe kann auch außerhalb "angefaßt" werden, also am absoluten

    Nullpunkt. Dann mit (>0 0) die Gruppe am Nullpunkt aufnehmen, und

    um den relativen Betrag (x y) absetzen.

     

    Im Anhang ein kleines ULP, das man auch in einem Script benutzen kann.

    image

    RUN relative-move IC1 x y

     

    --

    MfG / Best regards

    A. Zaffran

     

    Hotline 08635-698930, FAX 08635-698940, eMail <alf@cadsoft.de>

    CadSoft Computer GmbH, Hofmark 2, 84568 Pleiskirchen

    Registergericht: Amtsgericht Traunstein, HRB 5573

    Geschäftsführer: Dipl.-Ing. (FH) Rudolf Hofer

                     Dipl.-Ing. Klaus Schmidinger

     

     

     

    -


     

     

    #usage "Move a element with relative coordinates<p>"

     

    // 2009-08-10 alf@cadsoft.de

     

    string Version = "1.0.0";

    string MoveElement = argv[1];

    real   rX          = strtod(argv[2]);

    real   rY          = strtod(argv[3]);

     

    int gridunit;

     

    string s, cmd;

     

    real u2u(int val) {

    switch (gridunit) {

       case GRID_UNIT_MIC  : return u2mic(val);

       case GRID_UNIT_MM   : return u2mm(val);

       case GRID_UNIT_MIL  : return u2mil(val);

       case GRID_UNIT_INCH : return u2inch(val);

    }

    }

     

    if (board) board(B) {

    gridunit = (B.grid.unit);

    B.elements(E) {

       if (E.name == MoveElement) {

         sprintf(s, "MOVE '%s' (%.4f %.4f);\n", MoveElement, u2u(E.x) + rX,

    u2u(E.y) + rY);

         exit(s);

       }

    }

    }

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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 © 2025 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