Jump to content

Recommended Posts

Posted (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 by Ish
Modified
Posted

@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.   

  • Like 1
Posted
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)

 

 

Posted

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
)

 

  • Thanks 1
Posted (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 by Ish
Posted
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

Posted (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 by Ish
Modified again
Posted

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. 

  • Like 1
Posted (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 by Ish
Posted

Please reupload you XLS , I get fail downloads 

 

image.png.ef55417d0000592bef8cd9b30d28c1db.png

 

or send me to devitg@gmail.com

Posted

maybe the following? http://www.lee-mac.com/updatetitleblock.html

  • Like 1
Posted
2 hours ago, devitg said:

Please reupload you XLS , I get fail downloads 

 

image.png.ef55417d0000592bef8cd9b30d28c1db.png

 

or send me to devitg@gmail.com

Please send me your xls . devitg@gmail.com or mean drop-box 

Posted (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 by Ish
Modified again
Posted

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 1
Posted

Hi Maratovich, I often recommend your programs thought I would let you know my Norton Virus check reports this. 

 

image.thumb.png.d07ddba9204e663e251b1a6f9e573029.png

 

Also look at Ish community rating -19 wants everything for free and some one else do it.

Posted
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

Posted (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 by maratovich
Posted
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. :)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...