Enhancing AutoCAD Electrical's Tabular Terminal Strip Layout

  • Oh no! An error has occurred!
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • You need to be logged in to do that.
  • Coinciding with the acquisition of VIA Development, Nate joined Autodesk in March of 2003 after a decade stint as an entrepreneur following a two-decade stint as a controls engineer and software applications developer at Owens-Corning. Nate is now the lead product architect for AutoCAD Electrical. He loves this stuff.

    About Nate

Latest Post

  • Enhancing AutoCAD Electrical's Tabular Terminal Strip Layout
    March 7, 2007, 03:50 PM Nate Holt

    This morning an urgent note showed up in the inbox... dealer visiting a customer site and they needed cable catalog information included in AutoCAD Electrical's tabular terminal strip layout representation. This is what is inserted from the Terminal Strip Editor > Preview tab shown below.

    cable00.jpg


    Out-of-the-box, AutoCAD Electrical neatly displays cable tag and core color in this table but doesn't include the cable catalog number.

    Some calls into AutoCAD Electrical's API (Application Program Interface) and we had a work-around. The user runs a small AutoLISP utility, windows the tabular terminal strip, and the catalog info pops in.

    Before:
    cable01b.jpg

    After:
    cable01a.jpg

    Here's the ASCII text AutoLISP utility (download a copy here).

    cable03.jpg

    How does this thing work?


    Step 1: gets the active project's scratch database file name
    Step 2: queries the COMP table and gathers all cable marker parents with non-blank CAT values
    Step 3: prompts user to select row(s) to process
    Step 4: processes each row, one at a time, looks for target cable name attributes
    Step 4a: For each cable name attribute value, searches the queried data for a match
    Step 4b: on a match, appends the mfg/cat info on to the tag attribute and writes it back out to the row

    To Use:
    1. APPLOAD the attached AutoLisp utility
    2. With tabular terminal strip shown on active drawing, type ADD_CABLE_CAT [Enter] at the AutoCAD command line.
    3. Select rows you want to process or window the whole tabular terminal strip representation. It should update.

    Note: this won't work on the "table" version of the terminal strip layout, only works on the 2nd radio button version shown in the first image above. Maybe check future posting for the "table" version or, be bold, and modify the above program to work on the table version ( ! ).

    Enhancements:
    Here's an idea. Modify the "row block" and add in a separate set of attributes for the cable from/to mfg and catalog attribute values. Write to these instead of appending the catalog info to the cable tag attribute value. Would look neater!



    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