Jump to content

Recommended Posts

Posted

I have different drawings and some of them are having the same blocks.

 

Does anybody know how to make a lisp that makes a text file containing all blocks contained in every drawing?

 

Newly thanks in advance.

Posted

The way I would attack this problem is to:

Write a lisp: to get a text file of what dwg name's are in the designated directory and then write a script file to open each file run your next lisp routine and then close out of that dwg and then open the next dwg and so on. You will need some Visual Lisp also to do this.

 

Then I would make a lisp routine that the script file runs from above to get all the blocks in the drawing and write a text file and save it as the dwg file name. With a little more visual lisp you could get it to go into excel.

 

This has the possibility of doing all your drawings at once.

 

You may want to change this thread to the lisp routine part - you will get more help there.

Posted

Just using AutoCAD, you can do this...

 

At the command line type in:

LOGFILEON

-Block

?

*

You may have to press enter a few times to get to the end of the listing.

When you get done, paste this in at the command line:

(startapp "notepad" (getvar "logfilename"))

This will open the log file in Notepad.

Posted

One more note: the command ._LogFileOff will turn off the log file - it doesn't hurt anything to leave it on, except you'll get a log file for each drawing and you may want to delete them over time.

Posted

I thought the OP might benefit from a script since he mentions the word "drawings".

Posted

Lĩnh - AE72010@gmail.com

 

Hi, I am Lĩnh. I have an application call Attribute Plus, creating Design Spreadsheet in AutoCAD, with AutoCAD block.

If you are interesting in, click on the link below to load the drawing file from MediaFire and see my introduction in the drawing:

 

http://www.mediafire.com/?1qtvlwl8c4uyine

 

I call the block Paramblock. With Paramblock as design spreadsheet, the attributes and the dynamic block properties are variables. There are several advantages to create design spreadsheet on AutoCAD:

1. You can illustrate your spreadsheet graphically and easily (better than Excel), especially with Dynamic Block.

2. You write the formulas to the VBCode Editor with variables are the Attributes Tags and the Dynamic Block labels. In Excel, you got to write the formulas with the Cell's Address

3. Paramblock is easy to create as my application offer you alot of special technique dealing with the attributes :)

 

I program this application in AutoCAD 2008, VBA language, Microsoft XP 32 bits. I would work well with AutoCAD 2007 and later.

 

If you like my application, send me some messages about yourself and I would add you to my Address book for further contact. I would create a blog on the application as soon as possible to update the application and something more about AutoCAD

Thank you,

Lĩnh - AE72010@gmail.com

Posted

What's wrong with using data extraction? It works on numerous drawings at once.

Posted

script

 

open dwg1 LOGFILEON -Block ? * logfileclose close N

open dwg2 LOGFILEON -Block ? * logfileclose close N

open dwg3 LOGFILEON -Block ? * logfileclose close N

 

Then you can open the log files and paste into one document.

 

It would be easier though to open drawings and write out the block list, using "A" append to file so only one results file. Or use a lisp (vba in excell / word) to join all the files together. Lots of different ways to do what you want.

 

My suggestion do the simplest that matches your pogramming ability and is it a one off, so spending programing time may not be justified do manually.

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