I am sorry to make it confused and unclear for you, i just give my suggestion to druida78's question of how to create WD_TB mapping attribute .
For your question i will take a look at it.
I'm using WD_TB title block method with PREVSHEET/NEXTSHEET. When I change the SHEETvalue for certain drawing in Drawing attributes and run the title block update it updates the PREVSHEET/NEXTSHEET but when I change it again and run TB update it will not work anymore..? So for me it works only once in current session. When I close/open ACADE again it works again (...once only).
I'm using ACADE2012 (64bit) and the tbnp.lsp you attached to your post
I'm not having any trouble. It works fine with version 2012 for me.
Hi. I'm just researching ways to have my title block automatically update the sheet number and total numbe of sheets and came across this thread.
So far, it seems that even in 2011 AutoCAd has not addressed this issue that seems manu people need. Because everything I've come across so far involves programming and lisp routines and sheet sets and or fileds and attributes and so on and on and on.
After reading all of this I still haven't come up with an answer to this probelsm. What is WD_TB?? Can someone explain that to me? Is that one possible method?
I've tried the sheet set and field method but can't seem to get the currentSheetnumber variable to change for me-I got that method by reading that article called "Sheets Happen" (I don't know the author) it is a godd article if you want to know about Sheet sets.
I've been using the method I explained earlier in this thread for the past four releases and it works perfectly. It also works with the sub-projects I create with Super Project Manager.
The WD_TB is a hidden attribute that is inserted into your drawing template when you choose Method 2 under Title Block Setup, while creating the base drawing for your Electrical drawing template. Follow the 11-step guide on the Tips and Tricks page of www.ECADconsultant.com and add the special string of text that triggers the tbnp.lsp routine to the end of the WD_TB attribute using the Properties command to edit the WD_TB. The Properties command can handle more than 256 characters of attribute value text. Add the text string that calls the tbnp.lsp routine to the end of the WD_TB after you have performed step 5 but before step 6.
Note: The WD_TB method of title block attribute mapping was added by VIA Development in the last years before Autodesk purchased Wiring Diagram and renamed it AutoCAD Electrical. So the WD_TB method has existed for quite a long time. Autodesk added the Title Block Setup Wizard, which makes it easier to setup the WD_TB. The WD_TB is an improvement over the original .WDT file method because the mapping is contained within the border drawing itself, not a separate file.
Correction: There does seem to be a problem with new pages that get added to a project.. I have to run AEREBUILDDB prior to executing the Title Block Update in order for the previous and next sheet attributes to get updated. It seems that 2012 isn't maintaining the database the same as 2011 and previous did. So if you are using the tbnp.lsp to update previous and next sheet attributes, run the Rebuild Database command before Title Block Update. You can choose to Freshen Only and that will be enough. There used to be an icon for Rebuild/Freshen. Now you have to type AEREBUILDDB at the command line and press enter. I used the CUI editor to add the Rebuild/Freshen back to my Project panel. It also comes in handy when you replace drawings in a project from a backup and you want to force the database to update. I wish Autodesk had not removed the icon. I have to put it back with each release.
one quesiton regarding this, or LISP routines in general.
I received a LISP routine to call through the WD_TB attribute similar to what's mentioned here. The LISP file is put in the c:\program files\autodesk\acade 2013 folder but when i run a titleblock update, i get this:
Interpreting as AutoLisp: (IF (SETQ X (FINDFILE "TITLEBLOCK UPDATE.LSP"))PROGN(LOAD X)(C:NEXTSHEET)) " ")
Error: syntax error
Googling 'syntax error' regarding autocad is pretty vague, anyone have thoughts on what syntax problem is with what i have above?
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions to get help installing your software.
The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.