autouser Posted November 24, 2009 Author Posted November 24, 2009 by the way did you open with words? try with excel file it woul make things clear. Quote
SteveK Posted November 24, 2009 Posted November 24, 2009 and to answer the first question, no there is only one title block in each layout and there are 4 layouts in one drawing and 4 drawings in a set. cheers Yeah until a method for exporting with layout names turns up you'll just have to edit it manually. In the lisp set the layoutNameCol variable to 0 and add the layout names to the start of each row in the csv, eg: LAYOUT_NAME,Count,Name,AUTHOR,CREATION_DATE,DESCRIPTION,ENGINEER,NUMBER_OF_SHEETS,PART_NUMBER,PROJECT,REVISION_NUMBER,SHEET_NUMBER,STOCK_NUMBER,TOLERANCE Layout1,1,Title Blocks,ABC,24/11/09,DEF,GHI,4,JKL1,MNO,10,3,,N/A Layout2,1,Title Blocks,ABC,24/11/09,DEF,GHI,4,JKL2,MNO,12,2,,N/A Layout3,1,Title Blocks,ABC,24/11/09,DEF,GHI,4,JKL3,MNO,0,4,,N/A by the way did you open with words? try with excel file it woul make things clear. ? Quote
autouser Posted November 24, 2009 Author Posted November 24, 2009 hmmm ok...... its not that easy as it seems ..... it might even be quicker to just modify each drawings manually. but nontheless i think its one of the useful command to have. Quote
autouser Posted November 24, 2009 Author Posted November 24, 2009 stevek just wondering my part number is unique for each block and thus each layout. how can i use that as key to search and replace other attributes? is that possible in the code? thanks Quote
SteveK Posted November 24, 2009 Posted November 24, 2009 stevek just wondering my part number is unique for each block and thus each layout. how can i use that as key to search and replace other attributes? is that possible in the code? thanks I don't think so. The only way to affect different layouts is to either layout name or working consecutively. The second option would take a fair bit to implement with my current code and even then it couldn't tell which row one drawing stopped and another started. I suggest you hold out to see what fixo comes up with. steve Quote
Lee Mac Posted November 24, 2009 Posted November 24, 2009 Check out this thread: http://www.cadtutor.net/forum/showthread.php?t=37551 Although, be warned, my code will cause the drawing thumbnail to be lost, if the ObjectDBX Arx supplement is not used. (think its here http://discussion.autodesk.com/forums/thread.jspa?messageID=4700196) Hope this helps Quote
autouser Posted November 25, 2009 Author Posted November 25, 2009 Hi Lee thanks for that ..... it runs and ask for block and tag but nothing changes. does it need objectdbx to install first and why? since i am using office comp i don't have access to admin account. and other thing is it changes the attributes to the same value to all drawings in the folder? thats not exactly what i need here since each could have their own revision number and date but it will definitely come in handy. cheers mate Quote
Lee Mac Posted November 25, 2009 Posted November 25, 2009 Hi Lee thanks for that ..... it runs and ask for block and tag but nothing changes. does it need objectdbx to install first and why? since i am using office comp i don't have access to admin account. and other thing is it changes the attributes to the same value to all drawings in the folder? thats not exactly what i need here since each could have their own revision number and date but it will definitely come in handy. cheers mate Yes, it is for a global attribute change for all drawings - it should be run on any new drawing (better if the drawings you are operating on aren't open), and will change all the attribute values. But there is a bug with ObjectDBX in that the attribute definition may be shifted slightly depending on the justification. :wink: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.