Results 1 to 3 of 3

Thread: Excel Formulas in Fields

  1. #1
    100 Club red2002yzfr1's Avatar
    Join Date
    2002-04
    Location
    Allentown PA
    Posts
    141
    Login to Give a bone
    0

    Default Excel Formulas in Fields

    Does anyone know how (or is it possible) to use Excel formulas in AutoCAD fields. What I am trying to do is this, my drawing filenames have a revision number at the the end of the filename. What I would like to be able to do is something similar to the "right" formula in excel, return the last 2 number/characters in the filename, so I may use this in my revision area of my title block.

    Thanks for any help!

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Excel Formulas in Fields

    Fields support DIESEL expressions, so you ought to be able to do it.

  3. #3
    100 Club red2002yzfr1's Avatar
    Join Date
    2002-04
    Location
    Allentown PA
    Posts
    141
    Login to Give a bone
    0

    Default Re: Excel Formulas in Fields

    Thanks for your help RobertB. I did use a DIESEL expression and after figuring it out, (nothing was working until I embedded the expressions), it worked great, thanks again.


    Just FYI, heres what I did:

    $(UPPER,$(SUBSTR,$(getvar,dwgname),1,12))

    This codes result is the drawing name, in UPPERCASE, but only the first 12 num_char. If you want another result, change the numbers at the end, play with it, you'll figure it out.

    $(UPPER,$(SUBSTR,$(getvar,dwgname),14,2))

    This codes result is the drawing name, in UPPERCASE, starting at the 14th num_char and only 2 num_char.

Similar Threads

  1. To be able to use Microsoft Excel formulas in the iPart factory directly
    By inventor.wishlist1738 in forum Inventor Wish List
    Replies: 0
    Last Post: 2010-09-22, 02:41 PM
  2. Need Help, Trying to use excel formulas in AutoCAD Table
    By ReachAndre in forum AutoCAD General
    Replies: 2
    Last Post: 2008-08-04, 02:45 PM
  3. Filling out Excel Fields
    By jpolding in forum Revit - API
    Replies: 5
    Last Post: 2007-11-21, 12:47 PM
  4. Excel - One of the formulas appears as ####
    By eblanco_74 in forum Software
    Replies: 3
    Last Post: 2006-11-11, 05:57 AM
  5. Fields / Tables into Excel
    By robert.1.hall72202 in forum AutoCAD Tables
    Replies: 3
    Last Post: 2006-06-27, 07:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •