Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: How to automatically fill in & update "Drawing #" attribute using filename

  1. #1
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    450
    Login to Give a bone
    0

    Default How to automatically fill in & update "Drawing #" attribute using filename

    I use sheet sets to automatically fill in and update sheet number and total number of sheets in my title block with attributes. I also have an attribute in the title block for drawing number and the filename has the drawing number (ex: G-649-03 M-101.dwg, M-101 is the drawing number).

    Is there a way to automatically fill in and update the drawing number attribute in title block by using part of the filename?
    Attached Files Attached Files

  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: How to automatically fill in & update "Drawing #" attribute using filename

    Please note that I've moved this thread from the AutoLISP forum since it probably will not require code to do what you desire.

    Why are you not using the sheet set's sheet number property in the field? I presume the sheet number in the SSM palette has the correct sheet number and there is no need to parse the filename.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    450
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Robert,

    I am already using the sheet number property to update the sheet number and total sheets in the title block, as I said in the first post, although I didn't use the term "property".

    I would like to Autocad to update the sheet number, total number of sheets and drawing number. I already know how to update the sheet number and total number of sheets.

    How can I update drawing number automatically?

    I think it should be moved back to the lisp forum.

  4. #4
    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: How to automatically fill in & update "Drawing #" attribute using filename


    You update the sheet number, e.g. E2.1 by editing the property in the sheet in the SSM palette. The field will update automatically upon regen or plot, depending on the setting of FieldEval.

    I don't understand in your original post why you are even thinking of looking at the filename. The sheet itself in the SSM is what needs to be used, not the filename.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  5. #5
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    450
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Robert,

    You are not understanding what I need and I may not be explaining it very well.

    In the SSM palette each sheet has a "Number" property. I am using that property to fill in the sheet numer (ex: sheet 3 of 12). I also have a custom sheet set property that has the total number of sheets, to automatically fill in total number of sheets (which would be 12 in my previous statement).

    I also have drawing numbers on my sheets (ex: A-102), I am trying to update the drawing numbers without using the number property because I use that for actual sheet number.

  6. #6
    100 Club
    Join Date
    2006-11
    Location
    Martinsburg, WV USA
    Posts
    199
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Quote Originally Posted by boesiii View Post
    Robert,

    You are not understanding what I need and I may not be explaining it very well.

    In the SSM palette each sheet has a "Number" property. I am using that property to fill in the sheet numer (ex: sheet 3 of 12). I also have a custom sheet set property that has the total number of sheets, to automatically fill in total number of sheets (which would be 12 in my previous statement).

    I also have drawing numbers on my sheets (ex: A-102), I am trying to update the drawing numbers without using the number property because I use that for actual sheet number.
    I think you need to approach it a little differently.

    You should be using the sheet number as the number, instead of a sheet count. this way, in your SSM, your sheet list is showing your sheet numbers as "A-##" instead of 1, 2, 3...

    then, you need someone to write you a code to determine a total sheet count, and each sheets individual count "number". that part I have no Idea how to do.

    why not just remove the "1 of 20" part? your sheet list index should be enough on your cover sheet. too much information can be just as bad as not enough.

  7. #7
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,068
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Oddly enough, I just ran into a similar scenario with a client required border this morning. There are attributes for Drawing Number, Sheet Number, and Total Number of Sheets. My sheet numbers are broken by discipline, (General, Civil, Geotech, etc). sinde that's what I want to see in the Index, I used C101 etc for Sheet Number, and set up a custom sheet property for Sheetcount (e.g. Sheet number), and a custom SheetSetProperty for TotalSheetCount.

    Not all that slick, but it works. and the border shows

    C101
    Sheet 3 of 19

  8. #8
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    450
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Cadtag,

    Did you set a custom property for each sheet for sheet count number? To edit the property would you have to edit each individual sheet?

  9. #9
    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: How to automatically fill in & update "Drawing #" attribute using filename

    Quote Originally Posted by cadtag View Post
    Oddly enough, I just ran into a similar scenario with a client required border this morning. There are attributes for Drawing Number, Sheet Number, and Total Number of Sheets. My sheet numbers are broken by discipline, (General, Civil, Geotech, etc). sinde that's what I want to see in the Index, I used C101 etc for Sheet Number, and set up a custom sheet property for Sheetcount (e.g. Sheet number), and a custom SheetSetProperty for TotalSheetCount.

    Not all that slick, but it works. and the border shows

    C101
    Sheet 3 of 19
    Both of you should download my last SSM class for AU2006 (?) from AU Online. The code in that class automatically handles indexing of sheets, e.g. 1 of 12.

    boesiii, I apologize if I lead you down a wrong trail. Your description of the issue in the text of the post did not mention an indexing attribute, i.e. X of N. If you had posted a .png screenshot of the titleblock instead of just the titleblock, I might have been of more use immediately.

    Fair warning, the code in the class handout is advanced.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  10. #10
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    450
    Login to Give a bone
    0

    Default Re: How to automatically fill in & update "Drawing #" attribute using filename

    Robert,

    I meant to post a screen shot but I never got around to it. I will check out your AU class.

    Thanks.

Page 1 of 2 12 LastLast

Similar Threads

  1. Update "Prompt" tab in an existing Block Attribute.
    By joelnishan605002 in forum ARX
    Replies: 0
    Last Post: 2014-03-24, 09:04 PM
  2. 2011: "Fit" justification in attribute changes to "Left"
    By pmedina in forum AutoCAD General
    Replies: 0
    Last Post: 2011-08-30, 01:01 PM
  3. Replies: 7
    Last Post: 2010-02-28, 02:26 PM
  4. Replies: 35
    Last Post: 2007-06-05, 10:05 PM
  5. Replies: 8
    Last Post: 2007-04-04, 12:39 PM

Posting Permissions

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