• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Electrical

    Reply
    Valued Contributor
    Posts: 52
    Registered: ‎04-17-2012

    Auto Sequencing Page Numbers

    441 Views, 7 Replies
    11-15-2012 03:11 AM

    Hi, can anyone advise if is it possible to show to the previous and next drawing page numbers on a drawing. These  would need to be auto linked as drawings may be added and removed??? Thanks.

    Please use plain text.
    Valued Contributor
    Posts: 52
    Registered: ‎04-17-2012

    Re: Auto Sequencing Page Numbers

    11-15-2012 04:13 AM in reply to: STEVENAR

    Can someone tell me where the C:nextsheet & C:smileytongue:revsheet routines can be found and also file Acad200xdoc.lsp?

     

    Thanks.

    Please use plain text.
    Active Contributor
    Posts: 33
    Registered: ‎05-13-2010

    Re: Auto Sequencing Page Numbers

    11-15-2012 08:38 AM in reply to: STEVENAR
    Please use plain text.
    Valued Contributor
    Posts: 52
    Registered: ‎04-17-2012

    Re: Auto Sequencing Page Numbers

    11-16-2012 01:52 AM in reply to: electricman1

    Thanks for that.

     

    I have pasted a copy of the lsp. file to Doc&setiings\All users\Documents\Autodesk\Acade 2012\Support. I also have lsp. files which reside in Program Files\ Autodesk\Acade 2012|Express. However I have created user defined attributes NEXT_ATTRNAME & PREV_ATTRNAME. I have first of all assigned (getvar "c:nextsheet") to NEXT_ATTRNAME and updated list, then created my wdt. file. I then ran the title block update. I am not getting an output value on the drawing. However the command bar is telling me that it is interpreting as AutoLISP: (GETVAR "C:NEXTSHEET"). I am not sure if  am entering the correct expression into the AutoLisp expression in the title block user defined attributes and therefore not sure if it is actually calling the routine when I run the title block update. Please can you advise whats going on?

     

    Thanks very much.

    Please use plain text.
    Distinguished Mentor
    rhesusminus
    Posts: 569
    Registered: ‎09-21-2007

    Re: Auto Sequencing Page Numbers

    11-21-2012 12:50 AM in reply to: STEVENAR

    I belive the correct syntax is just:

    (c:nextsheet)

     

     


    THL
    Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
    Please use plain text.
    Distinguished Contributor
    Posts: 173
    Registered: ‎03-03-2006

    Re: Auto Sequencing Page Numbers

    02-07-2013 11:43 AM in reply to: STEVENAR

    i'm having a similar issue, when i update the titleblock, it tries opening the LSP it seems...this is what commandline gives me:

     

    Interpreting as AutoLisp: (IF (SETQ X (FINDFILE "TITLEBLOCK UPDATE.LSP"))PROGN(LOAD X)(C:NEXTSHEET)) " ")
    Error: syntax error

     

    what is wrong with that syntax? I used WD_TB to link up the attribute NEXT with the above text string, and placed the file in the autocad folder it needs to be in, but something must be missing. or i am missing it...

     

    thanks in advance for any insight.

     

    Please use plain text.
    Distinguished Contributor
    Posts: 173
    Registered: ‎03-03-2006

    Re: Auto Sequencing Page Numbers

    02-07-2013 11:46 AM in reply to: iomaxx

    got it. what's listed is missing a ( before the PROGN. should show as:

     

    (IF (SETQ X (FINDFILE "TITLEBLOCK UPDATE.LSP"))(PROGN(LOAD X)(C:NEXTSHEET)) " ")

     

    then it works.

    Please use plain text.
    Distinguished Contributor
    s.wile
    Posts: 112
    Registered: ‎12-08-2008

    Re: Auto Sequencing Page Numbers

    02-07-2013 06:51 PM in reply to: STEVENAR

    If you still can't figure it out, try this blog post. It's a bit more graphical.

    http://myacade.blogspot.com/2013/01/autocad-electrical-title-block-update_14.html

    Stan Wile
    http://myacade.blogspot.com/
    IMAGINiT Technologies
    Please use plain text.