Multi-Language Electrical Component Tagging

  • Controlling the Machine is no longer being updated. Don't worry, though, you can still follow Nate Holt at his new blog, AutoCAD Electrical Etcetera. You'll find it at http://nateholt.wordpress.com. Or you can subscribe to his feed to get latest words of wisdom automatically: http://nateholt.wordpress.com/feed/. You also can continue to view the Controlling Machine archives for Nate's AutoCAD Electrical tips and tricks.

    About Nate

Latest Post

  • Multi-Language Electrical Component Tagging
    October 3, 2006, 08:43 PM Nate Holt

    First line English, second line Spanish (or French or ??) - not a problem. Here's a little AutoCAD Electrical utility that tries to map the first description line of component text to an alternate language. On success it will write the translated string to the second description line of the component text.

    Here are a couple pushbuttons with English DESC1 values. Fire up the attached AutoLisp utility and...

    lang_01.jpg

    ... make the "to" language selection, then window select the components to process, and...

    lang_02.jpg

    assuming that AutoCAD Electrical finds exact matches on the target text, will write translated description back to the drawings as the second "DESC2" description line.


    lang_03.jpg

    The AutoLisp utility is here and its associated "dialog" defintion file is here. Put the dialog definition file somewhere in the AutoCAD or AutoCAD Electrical search path. Appload the ".lsp" file and then type LANG_DESC1_TO_2 at the command line to launch the utility.

    This will work on exact matches found in the language mapping file (default file name is wd_lang1.mdb). Don't be afraid to try to enhance this utility. For example, make it work on "substring" matches ( ! ).


    0 Comment | Add Comment Controlling the Machine > All

Comments



You must be logged in to post a comment.

Subscribe to Blog

Want to keep up with the latest? Subscribe to the RSS feed today.

RSS

Tags

You must be logged in to add a tag.

Send to a Peer

You must login to share pages.

Feedback

Tell us what you think of the site.

Send Feedback