Ish Posted August 16, 2021 Posted August 16, 2021 (edited) Dear members I need a Lisp program or VBA program for export and import layout attributes. When layout attributes export layout name must be there, so I can easily edit value. One cad drawing have 50 layout and 5 attributes on each Second cad drawing have 60 layout and 2 attributes only. Hope you understand my question. Thanks layout attributes.dwg layout tb attributes export and import format.xlsx Edited August 17, 2021 by Ish Modified Quote
devitg Posted August 16, 2021 Posted August 16, 2021 @ISH , really I do not understood, if there is BLOCK attribute, or what do you mean by LAYOUT attributes, could be Layout SETTINGS? Please upload any dwg , as to be it clear. 1 Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 12 hours ago, Ish said: Dear members I need a Lisp program or VBA program for export and import layout attributes. When layout attributes export layout name must be there, so I can easily edit value. One cad drawing have 50 layout and 5 attributes on each Second cad drawing have 60 layout and 2 attributes only. Hope you understand my question. Thanks Sir, on layout I have a title block and another block with attributes ( that have drawing title and drawing number attribute) Quote
BIGAL Posted August 17, 2021 Posted August 17, 2021 1 know title block name 2 know other block name 3 (getvar 'ctab) this is layout name ; a start (vlax-for lay (vla-get-Layouts (vla-get-activedocument (vlax-get-acad-object))) (setq plotabs (cons (vla-get-name lay) plotabs)) ) (foreach layname plotabs (setvar 'ctab layname) (setq blk1 (ssget "X" (list (cons 0 "INSERT")(cons 2 Block1name)(cons 410 layname)))) (setq blk2 (ssget "X" (list (cons 0 "INSERT")(cons 2 Block2name)(cons 410 layname)))) now get the attribute values blk1 and blk2 do something with them ) 1 Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 (edited) 13 hours ago, devitg said: @ISH , really I do not understood, if there is BLOCK attribute, or what do you mean by LAYOUT attributes, could be Layout SETTINGS? Please upload any dwg , as to be it clear. Edited August 17, 2021 by Ish Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 13 hours ago, devitg said: @ISH , really I do not understood, if there is BLOCK attribute, or what do you mean by LAYOUT attributes, could be Layout SETTINGS? Please upload any dwg , as to be it clear. layout attributes.dwg layout tb attributes export and import format.xlsx Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 4 hours ago, BIGAL said: 1 know title block name 2 know other block name 3 (getvar 'ctab) this is layout name ; a start (vlax-for lay (vla-get-Layouts (vla-get-activedocument (vlax-get-acad-object))) (setq plotabs (cons (vla-get-name lay) plotabs)) ) (foreach layname plotabs (setvar 'ctab layname) (setq blk1 (ssget "X" (list (cons 0 "INSERT")(cons 2 Block1name)(cons 410 layname)))) (setq blk2 (ssget "X" (list (cons 0 "INSERT")(cons 2 Block2name)(cons 410 layname)))) now get the attribute values blk1 and blk2 do something with them ) Yes sir I know the all block name used in layout tab. Sir I want also select block facility one by one. Example : on first layout I select manually one by one 5 attributes block then I will go to next layout and again I select 6 attribute block . untill to reach last layout. must be 1 excel for all layout attributes block. Thanks hope you understand, see attached files above Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 (edited) I used attout command by default in AutoCAD. After save file name for export attributes and I select manually one by one on first layout. When I click on next layout, not working. Means switching layout facility not available in AutoCAD. For next layout I need to start from beginning, type command and save file name, means each layout different different files will come, If possible to click next layout and all information in one file will solve my problem, If no problem come during attin process. Thanks Edited August 17, 2021 by Ish Modified again Quote
tombu Posted August 17, 2021 Posted August 17, 2021 Between your initial topic and 5 additional posts it's still not clear what you're trying to do. Are you looking for all the attributes from block "CD Table" on each layout. Adding the layout name doesn't differentiate between multiple blocks on same layout you want to export and import. They need to be numbered on each layout like the "crv" blocks are or numbered throughout all the layouts. If you're asking others to do all your work for you they deserve a clear explanation of what you need at least. 1 Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 (edited) @tombu Sir,I am looking for export block attributes from each layout , but block I will select my self from each layout, one by one , I will continuously select same block from each layout. After complete I will go for export other block attributes. Hope you understand now. Thanks Edited August 17, 2021 by Ish Quote
devitg Posted August 17, 2021 Posted August 17, 2021 Please reupload you XLS , I get fail downloads or send me to devitg@gmail.com Quote
mhupp Posted August 17, 2021 Posted August 17, 2021 maybe the following? http://www.lee-mac.com/updatetitleblock.html 1 Quote
Ish Posted August 17, 2021 Author Posted August 17, 2021 1 hour ago, mhupp said: maybe the following? http://www.lee-mac.com/updatetitleblock.html I try this one but it can not export attributes of block and import . Quote
devitg Posted August 17, 2021 Posted August 17, 2021 2 hours ago, devitg said: Please reupload you XLS , I get fail downloads or send me to devitg@gmail.com Please send me your xls . devitg@gmail.com or mean drop-box Quote
Ish Posted August 18, 2021 Author Posted August 18, 2021 (edited) 18 hours ago, mhupp said: My main concern is, I want to export and import block attributes from layouts, Block of attributes I will select one by one from each layout.. At a time I will go with one block until last layout. Then I will go with second block of attributes Then 3rd... Program must save all attributes information in one txt file, After updating attributes I want to import that txt file. I try attout command for export, but it can not switching layout tabs. For my work I need to switch layout tabs for select the block attributes. Thanks Edited August 18, 2021 by Ish Modified again Quote
maratovich Posted August 18, 2021 Posted August 18, 2021 Use this - AutoReplaceCAD You need to select the "Translation of texts" tab And start processing. You will receive an export, and then after the changes you can make an import. 1 Quote
BIGAL Posted August 19, 2021 Posted August 19, 2021 Hi Maratovich, I often recommend your programs thought I would let you know my Norton Virus check reports this. Also look at Ish community rating -19 wants everything for free and some one else do it. Quote
Ish Posted August 19, 2021 Author Posted August 19, 2021 13 hours ago, maratovich said: Use this - AutoReplaceCAD You need to select the "Translation of texts" tab And start processing. You will receive an export, and then after the changes you can make an import. Thanks sir, But sir I am looking permanent use, I think auto replace cad only for 7 days trial. Sir can you send application with key or crack or license also. I will be very thankful to you Quote
maratovich Posted August 19, 2021 Posted August 19, 2021 (edited) 18 hours ago, BIGAL said: Hi Maratovich, I often recommend your programs thought I would let you know my Norton Virus check reports this. Thanks BIGAL. I have known about this for 5 years. I have corresponded with the Norton developers. They said that in Norton there is only a white and black list, and to determine viruses, you need to send a file to their technical support. And if the file is not in the whitelist, it will always be shown as a virus. You need to manually add files to the white list on your computer. You can submit files to Norton's website for verification. They will confirm that the file is clean, but will not add to the whitelist. Considering that there are many programs and they constantly have new versions - they are not on the white list. In my opinion (I got the impression) that I was offered to become their sponsor, but I don't want to. Any other antivirus shows - clean. Edited August 19, 2021 by maratovich Quote
maratovich Posted August 19, 2021 Posted August 19, 2021 14 hours ago, Ish said: Sir can you send application with key or crack or license also. Good joke I like to joke too. First, you need to understand - whether you need the program, and whether it does what you need. You need to try first, and then make a decision. As I understand it, without even trying, you already want something, then - there is a "Buy" button. 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.