PDA

View Full Version : blocks overlaped? acad2007



orlandomarques
31st Jan 2008, 07:44 am
Hi there!
does anybody know how to identify overlaped blocks? I explain: I need to count blocks we see in the drawing. Sometimes we place the a block over the same type.
When I extract info about this block, i.e. quantity, it will give the total amount in the drawing.
I once had a LISP to identify and correct the overlaped blocks, but its not working in the acad2007.
I have attached the LISPs in this message...(please use your antivirus to check if its clean!)
To activate the command type "sobre". its in Portuguese.
Thanks for the help!!!!
o

CarlB
31st Jan 2008, 08:48 am
What isn't working with the lisp? Do you get an error message? Does it not detect overlapped blocks? I don't know why it would work in an earlier version and not in 2007...maybe it's due to lisp file locations, using a UCS other than World, etc.

GE13579
31st Jan 2008, 08:55 am
...I once had a LISP to identify and correct the overlaped blocks...

Are you meaning you want to delete all overlapped blocks?

I'm not sure if it's what you're after, or indeed if it works with blocks (someone help please... :huh:) but OVERKILL will delete duplicate lines...

orlandomarques
31st Jan 2008, 09:03 am
thanks for the reply!
I don't know why its not working....the LISP worked fine in the acad14....
the LISP just detects that there is no blocks overlaped.
when there is, it Zoom Extents...thats all...It should say which block is overlaped and gives you the option to erase the unwanted blocks, leaving just one.

orlandomarques
31st Jan 2008, 09:05 am
Yes, I wnat to delete all the overlapped blocks!
overkill....I will try that....thanks!!!

mahahaavaaha
1st Feb 2008, 03:24 pm
Hi,

two things:

1. It only looks for stuff on Layer FFLMR
2. The DCL -file has to be in absolute place... Remove the paths for dcl from the lisp and put both files (lsp and dcl) in folder that is in AutoCAD supportpath.

Then it seems to work (even if I couldn't really understand the dialogs..):)
At least one double block got deleted after I pressed several different options...

/Petri

orlandomarques
1st Feb 2008, 05:34 pm
Hi,

two things:

1. It only looks for stuff on Layer FFLMR
2. The DCL -file has to be in absolute place... Remove the paths for dcl from the lisp and put both files (lsp and dcl) in folder that is in AutoCAD supportpath.

Then it seems to work (even if I couldn't really understand the dialogs..):)
At least one double block got deleted after I pressed several different options...

/Petri
Hi Petri...
thanks for the help...Unfortunately I dont know what you mean by removing the paths from the dcl. I guess it has something to do with programing the lisp, right?
:?

mahahaavaaha
2nd Feb 2008, 01:57 am
Hi,

there are several places in the lisp-file with this:
(load_dialog "c:/arquivos de programas/lisp/sobre.dcl")
Replace it with this:
(load_dialog "sobre.dcl")

Then save the SOBRE.LSP and SOBRE.DCL -files in C:\Documents and Settings\<your username>\Applications Data\Autodesk\AutoCAD 2007\R17\[enu]\Support

/Petri

orlandomarques
2nd Feb 2008, 09:14 am
Hi,

there are several places in the lisp-file with this:
(load_dialog "c:/arquivos de programas/lisp/sobre.dcl")
Replace it with this:
(load_dialog "sobre.dcl")

Then save the SOBRE.LSP and SOBRE.DCL -files in C:\Documents and Settings\<your username>\Applications Data\Autodesk\AutoCAD 2007\R17\[enu]\Support

/Petri

Hi there!
Thanks a lot. Really!
It is now working fine. But, I had to load form the Tools/Load Application/List. I dont have the location you mentioned in the C:\Documents and Settings...

I have managed to change the text I found in Portugue into English. You can have a look if you want in the attachments.
The only thing I could not chabge is the name or the comand "sobre"
Do you know where I can change that? Should I change the name of both files?

Another thing....maybe because I could find the right location to store the files, the autocad doesn't load the LISP when I restart it.

thanks a lot again for the help!
Orlando