TheSwamp

CAD Forums => CAD General => Topic started by: craigr on December 09, 2011, 08:32:26 AM

Title: I BEG of You!!! Think before you Explode...
Post by: craigr on December 09, 2011, 08:32:26 AM
PLEASE don't use a sand Hatch - Then explode it!!!

Espacially if it is on a layer with MANY other items!!

It is horribly difficult to clean every little grain of sand from that dwg.

If any of you have a tip how to do it, I would be THRILLED to hear it.

This person used it on the same layer as the walls, and the only option I see is to go thru the entire dwg and click on the LINES of the walls and change them to a different layer. Then delete that Sand layer, hoping that the Sand is the only thing on that layer.

I SO WISH that Autodesk never created that layer!!! - I HATE it!!!

Or at a minimum, make it so that you cannot explode it.

craigr
Title: Re: I BEG of You!!!
Post by: Rob... on December 09, 2011, 08:36:31 AM
Use QSELECT to pick all lines with a length of "0" and erase. Done.
Title: Re: I BEG of You!!!
Post by: Lee Mac on December 09, 2011, 08:38:21 AM
This code will delete all zero length lines (to a tolerance of 1e-8), in a selection:

Code: [Select]
(defun c:dzl ( / e i l s ) ;; Delete Zero-Length Lines
    (if (setq s (ssget "_:L" '((0 . "LINE"))))
        (repeat (setq i (sslength s))
            (setq e (ssname s (setq i (1- i)))
                  l (entget e)
            )
            (if (equal (cdr (assoc 10 l)) (cdr (assoc 11 l)) 1e-8)
                (entdel e)
            )
        )
    )
    (princ)
)
Title: Re: I BEG of You!!!
Post by: Matt__W on December 09, 2011, 08:39:22 AM
Remember... he's using LT.
Title: Re: I BEG of You!!!
Post by: Crank on December 10, 2011, 07:01:09 AM
In acad2012 you can use:
Code: [Select]
-purge z
Title: Re: I BEG of You!!!
Post by: CaddmannQ on December 10, 2011, 03:56:30 PM
Does LT not have the quick select filter?

I just select everything & filter by lines with length = 0.
Title: Re: I BEG of You!!!
Post by: Lee Mac on December 11, 2011, 08:03:33 AM
Remember... he's using LT.

Oops! Hopefully the code will be useful to others viewing the thread  :-)
Title: Re: I BEG of You!!!
Post by: craigr on January 19, 2012, 02:02:35 PM
Sorry folks, I just found out that I forgot to post my 'Thanks' for the suggestions.

QSelect lines les that zero worked great.

BTW, I chewed out our guy that used then exploded that Hatch. - He kinda laughed at me and said he figured that I wouldn't like it.a

Go figure.
Title: Re: I BEG of You!!!
Post by: alanjt on January 19, 2012, 02:04:37 PM
He kinda laughed at me and said he figured that I wouldn't like it.a
And you're not running from the law for the actions that followed his comment?!?!
Title: Re: I BEG of You!!!
Post by: diarmuid on January 23, 2012, 04:52:03 AM
we had a guy like that, here.  he was an ISP (Contractor)  I got so fed up that i banned him from accessing the server.  This caused quite a commotion i tell you.  As all of the other ISP's were in a bit of a fret.  "This is the way we always worked" they'd say.  No it wasnt would be the reply, you were just let get on with it running rough shod over the CAD standards.  My argument (which was upheld by senior magement) was if we got a contractor to come into our buidling and install or do some remidial works we would want him to do it to a particular standard  (ie the building regualtions at least)  if he did not do that, then he either repaired the work or he wasnt paid.  And he wasn't paid anymore money if he needed to repair it.  So, in far as reasonalby practical, adhereance to the CAD standards they are all behaving themselves now.  Any deviation from the CAD standards needs to be preagreed and resonable justifaction must be provided prior to any deviation.
Title: Re: I BEG of You!!!
Post by: Nibster on January 23, 2012, 09:12:01 AM
 
... do it to a particular standard  (ie the building regualtions at least)  if he did not do that, then he either repaired the work or he wasnt paid. ..

i love this analogy.
Title: Re: I BEG of You!!!
Post by: alanjt on January 26, 2012, 04:23:36 PM
Just noticed this in 2011\2012:

Quote
Command: -pu
-PURGE
Enter type of unused objects to purge
[Blocks/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTylesMlinestyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/All]:
Title: Re: I BEG of You!!!
Post by: Crank on February 01, 2012, 01:51:16 PM
Just noticed this in 2011\2012:

Quote
Command: -pu
-PURGE
Enter type of unused objects to purge
[Blocks/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTylesMlinestyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/All]:
I told you so. (http://www.theswamp.org/index.php?topic=40355.msg456571#msg456571)
Title: Re: I BEG of You!!!
Post by: alanjt on February 01, 2012, 02:01:25 PM
Just noticed this in 2011\2012:

Quote
Command: -pu
-PURGE
Enter type of unused objects to purge
[Blocks/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTylesMlinestyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/All]:
I told you so. (http://www.theswamp.org/index.php?topic=40355.msg456571#msg456571)
Oops. Sorry about that.
Title: Re: I BEG of You!!! Think before you Explode...
Post by: M-dub on February 02, 2012, 11:09:58 AM
In acad2012 you can use:
Code: [Select]
-purge z

 :kewl:
Title: Re: I BEG of You!!! Think before you Explode...
Post by: mdbdesign on March 29, 2012, 03:30:55 PM
What about SelectSimilar?
It will work with LT?