• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • AutoCAD Electrical

    Reply
    Active Contributor
    Posts: 37
    Registered: ‎10-16-2008

    Next Sheet Number

    1262 Views, 22 Replies
    02-11-2009 08:57 AM
    Good Morning;

    The majority of my customers require their title blocks show the current sheet number, for which I utilize the %S variable. Additionally, they want the maximum number of sheets indicated, which is a standard “title block update” function, as we all know. So far easily done.

    Where my challenge comes is the odd customer prefers the next sheet number to be displayed in the title block as opposed to the maximum number of sheets. Up to this point in time we have been editing that information manually. Is there a means by which to automatically “calculate” that value based upon the current sheet number or to read the next sheet number from the project database? If there is I am unable to determine what that method would be.

    Any suggestions, help would be appreciated.


    Doug
    Please use plain text.
    *Expert Elite*
    Posts: 2,516
    Registered: ‎10-18-2003

    Re: Next Sheet Number

    02-11-2009 01:11 PM in reply to: DBrohm
    There is a way to do this. It requires a lisp file be installed into the AcadE main program folder under program files and a special text string to be entered at the end of the WD_TB mapping attribute in your border template. You will need attributes called NEXTSHT and PREVSHT located as desired on the drawing border. I have attached the lisp file. Change the .zip extension to .lsp. Put this under Program Files\Autodesk\Acade 2008 or 2009 or whatever you are running.

    Below is the text string you need to add to the end of the WD_TB attribute's value:

    ;PREVSHT = (if (setq x (findfile "tbnp.lsp" ))(progn(load x)(c:smileytongue:revsheet)) " ");NEXTSHT = (if (setq x (findfile "tbnp.lsp" ))(progn(load x)(c:nextsheet)) " ")

    Note: When I create borders for European customers, I usually place the PREVSHT and NEXTSHT attributes inside arrows so language is not a barrier. I have an arrow pointing left on the left side of the page near the bottom to indicate previous sheet and one facing right on the right side of the page indicating next sheet.
    Regards,

    Doug McAlexander
    Electrical CAD Industry Specialist
    Independent Consultant/Instructor/Mentor
    AutoCAD Electrical, VIA/WD, Toolbox/WD, ecscad, promis-e, RSWire

    Web site: www.ECADConsultant.com
    E-mail: ECADConsultant@gmail.com
    Phone: (770) 841-8009
    Please use plain text.
    Active Contributor
    Posts: 37
    Registered: ‎10-16-2008

    Re: Next Sheet Number

    02-12-2009 05:16 AM in reply to: DBrohm
    First of all thank you very much for your help, the lsp file and attributes work like a charm, this will save not only myself, but my entire group of hardware designers an immense amount of time as we move forward. It has been a large number of years since I was involved in any amount of lsp programming, and even then it was minimal at best. For me to have figured that out on my own would have taken a great deal of time that I do not have. I do not wish to impose on your generosity; however, I do have one question further. What would I need to alter if I needed to have a specific character(s) shown in the “nextsht” attribute as opposed to a black on the final page of a project?

    Again many thanks for your help.
    Please use plain text.
    Distinguished Contributor
    Posts: 107
    Registered: ‎12-11-2007

    Re: Next Sheet Number

    12-16-2010 12:30 AM in reply to: DBrohm

    Hi,

     

    I couldn't get this "previous/nextsheet" lisp work with ACADE2011. Is it so that WD_TB allows max is 256 characters? In that case there is not much space left for other attributes...

     

    Regards

    Mako

    Please use plain text.
    Active Contributor
    Posts: 37
    Registered: ‎10-16-2008

    Re: Next Sheet Number

    01-07-2011 06:01 PM in reply to: mako68

    You might want to consider using the “wdt” file method of title block updating that is what we use and thus far no issues that I have found.

    Please use plain text.
    *Expert Elite*
    Posts: 2,516
    Registered: ‎10-18-2003

    Re: Next Sheet Number

    01-08-2011 07:41 AM in reply to: mako68

    It works..  Edit WD_TB with Propetties, not Attribute Editor.  Attribute Editor is limited to 256 characters but Properties is not.

    Regards,

    Doug McAlexander
    Electrical CAD Industry Specialist
    Independent Consultant/Instructor/Mentor
    AutoCAD Electrical, VIA/WD, Toolbox/WD, ecscad, promis-e, RSWire

    Web site: www.ECADConsultant.com
    E-mail: ECADConsultant@gmail.com
    Phone: (770) 841-8009
    Please use plain text.
    Member
    chintan0910
    Posts: 3
    Registered: ‎04-05-2011

    Re: Next Sheet Number

    04-05-2011 11:19 PM in reply to: DBrohm

    Hello Dear,

     

    My client required Next Sheet number in the title block.

     

    I had past tbnp.lsp file on specific location. & I had also update *.wdt file with your specified text string for NEXT SHEET. But while I am using Project-Title block setup-WD_TB att. Method- I can not get NEXTSHT in Drawing properties. So please guide me what can I do ?

     

    Please send me the step for the process.

    Please use plain text.
    Member
    chintan0910
    Posts: 3
    Registered: ‎04-05-2011

    Re: Next Sheet Number

    04-06-2011 02:51 AM in reply to: DBrohm

    Hello Dear,

     

    My client required Next Sheet number in the title block.

     

    I had past tbnp.lsp file on specific location. & I had also update *.wdt file with your specified text string for NEXT SHEET. But while I am using Project-Title block setup-WD_TB att. Method- I can not get NEXTSHT in Drawing properties. So please guide me what can I do ?

     

    Please send me the step for the process.

    Please use plain text.
    Valued Contributor
    druida78
    Posts: 52
    Registered: ‎12-13-2010

    Re: Next Sheet Number

    04-07-2011 09:18 AM in reply to: DBrohm

    Hi.

     

    What is the way to create a WD_TB mapping attribute?

     

    Thanks.

     

    Ernesto Fraga

     

    I title block update without it and it works but I would like to improve.

     

    Ernesto Fraga

    Montevideo - Uruguay

    Arq. Ernesto Fraga
    Montevideo - Uruguay
    Please use plain text.
    Employee
    Posts: 385
    Registered: ‎04-13-2010

    Re: Next Sheet Number

    04-07-2011 11:50 PM in reply to: druida78

    Hi,

     

    Does the way defined in the help document help you to create it ? I capture the screenshot and attach it.

     

     

    Regards,

     

    Kevin Li

    Please use plain text.