Paris Ogden Posted November 25, 2016 Posted November 25, 2016 I am trying to change the attribute tags or values to new values using a scr file and have no luck at all. Any help would be great. Using auto cad lt Quote
ReMark Posted November 25, 2016 Posted November 25, 2016 It would be helpful if you provided a drawing and a copy of the script you are using to change the attributes. Attach both to your next post. Quote
Paris Ogden Posted November 25, 2016 Author Posted November 25, 2016 I dont have a script file to use but i can add a drawing on monday. Quote
ReMark Posted November 25, 2016 Posted November 25, 2016 Your first post indicates that you do have a script file. What happened to it? Even if it is faulty it is a good place to start. Quote
steven-g Posted November 25, 2016 Posted November 25, 2016 Try a search on the attedit command, that should be what you need to get a script started. Quote
BIGAL Posted November 26, 2016 Posted November 26, 2016 Steven-g need Bedit to edit the tag description. Not sure you can call Bedit without it opening the block for edits, meaning no automation. I tried but happy to be shown how. I found a solution over at Augi for use with a lisp (renameatt "blockname" "oldtag" "Newtag") but request is for a LT solution. You can also use Refedit but again pops open the block to edit, but as the original block layout rather than as items in a list. Quote
steven-g Posted November 26, 2016 Posted November 26, 2016 -BIGAL I'm not sure now on the question, I read it as changing the attribute value based on the tag name which is done using the attedit command, and that can be automated. But it could be read as changing the tag name which is indeed something that needs to be done within the blockeditor, which in LT is not possible to automate - as there is no lisp available. But there maybe workarounds . So as REMark has suggested it would be helpful to have a drawing, and if Paris hasn't got a script then maybe a description of exactly what needs changing, with some examples of before and after. Quote
BIGAL Posted November 26, 2016 Posted November 26, 2016 I think your right Steven wants to change Attributes. Quote
ReMark Posted November 26, 2016 Posted November 26, 2016 A solution involving the use of lisp is not possible as the OP is using AutoCAD LT. Quote
Paris Ogden Posted December 5, 2016 Author Posted December 5, 2016 So the short of it is The title bar is the part I would like to edit just the values that can be changed in the properties. eg dwg number, version or the date as indicated in the picture with a scr file so I can make the same changes to many documents. I seem to have stuffed up the entire post with the wrong use of terminology title.dwg Quote
Dana W Posted December 6, 2016 Posted December 6, 2016 Apparently you are only changing the current displayed values within the attribute field, and not any of the attribute properties. Oh, you don't have a script, you want some help coming up with one, then. I personally don't use them nor LISP at all, mostly because I spent 23 years writing computer code and learned to hate it towards the end, but maybe someone can put the following in a script. You don't have to open the block for attribute edit. Without even selecting the block. hold down the ctrl key while double clicking directly on a specific attribute. Then that particular attribute becomes editable just like a text object. Now some simple tags may still open the attribute editor rather than behave like text objects. It happens to me occasionally, and I am not sure why. No, wait... I think it is mleaders with a block tag attached. I think it is those that refuse to respond to the ctrl+doubleclick, especially if the last leader has been removed, and it only LOOKS like a tag. I am not sure a script will speed this up very much. You will still have to indicate which attribute to edit and what to change it to. Quote
BIGAL Posted December 6, 2016 Posted December 6, 2016 One way around this is to "Insert" the title block it will ask for all the attribute values. This is ok for the 1st time. -INSERT "Wilmar A2 Title Block" "0,0" 1 1 0 1st-att 2nd-att 3rd-att ........... tille last Ok now the easy way use excel to enter your attribute values have the tag names in column A enter new values in Column B but it must have the first few lines -insert etc so attributes start at row 4 then just copy B column and paste to command line, nice thing for multiple sheets just change page number in excel and add a new layout then copy and paste. If you keep a spreadsheet of all your page values the erase title block and re-insert. using -attedit as a script again I would use excel, problem with attedit is it asks for current string value. 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.