Jump to content

extracting attributes from all thawed blocks in model space

myoujou cain

Recommended Posts

OK, so i have a "master" drawing with 78 separate layers that represent different options. on these layers i have objects with attributes that represent specific parts. i want to write an lisp that will extract 3 specific attributes from all of the blocks currently thawed and print them to a text file. i have tried using the data-extraction command but it seems to want to select all the block in the drawing unless i select them by hand (something i would like to avoid if possible). any ideas on how to approach this?


Link to comment
Share on other sites

1st thing need a sample dwg.


2nd have you done any lisp programming noting posts 1


3rd do the block attributes have different tag names ?


4th it sounds like you want some form of filtering compared to all blocks ? 

Link to comment
Share on other sites

thanks BIGAL,

1st: i have attached an example, there are 2 layers. and 1 block. i want to extract the 5 attributes on that block for only the visible layers i.e. "0" and "layer1" without "layer2" witch is frozen.


2nd: i have done a little lisp programming but have much more experience in java. this is my first post because normally i can figure it out based on the large amount of examples on the internet.


3rd: sort of, the blocks will have lots of attributes, but the 5 attributes i want to extract will all have the same names.


4th: depends on what you mean, i want filtering compared to the extract data command when the whole drawing is selected. however in the command line when asked to select objects, the "all" command would be sufficient.

example 1.dwg

Link to comment
Share on other sites

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.

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