Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remove Block Definition

11 REPLIES 11
Reply
Message 1 of 12
wundrlik
462 Views, 11 Replies

Remove Block Definition

I have drawing that has a block definition in it that will not purge out. I have tried all the usual steps, QSELECT, erase all, etc. with no avail. I have also ran through Jimmy's Smartpurger too (Shameless plug). I'm baffled..

I need to remove it via a lisp or script.

The block name is TerminatorOpen

Any help would be greatly appreciated

Ryan Wunderlich
11 REPLIES 11
Message 2 of 12
t.willey
in reply to: wundrlik

See what this returns

(vlax-for blk (vla-get-Blocks (vla-get-ActiveDocument
(vlax-get-Acad-Object)))
(vlax-for obj blk
(if
(and
(= (vla-get-ObjectName obj) "AcDbBlockReference")
(= (vla-get-Name obj) "TerminatorOpen")
)
(prompt (strcat "\n Nested within: " (vla-get-Name blk)))
)
)
)

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5682530@discussion.autodesk.com...
I have drawing that has a block definition in it that will not purge out. I
have tried all the usual steps, QSELECT, erase all, etc. with no avail. I
have also ran through Jimmy's Smartpurger too (Shameless plug). I'm
baffled..

I need to remove it via a lisp or script.

The block name is TerminatorOpen

Any help would be greatly appreciated

Ryan Wunderlich
Message 3 of 12
wundrlik
in reply to: wundrlik

returns nil when it's run......baffling as hell if you ask me.

I know it's not nested in anything...the drawing has 7 lines in it and this block definition (it's the only block definition too)
Message 4 of 12
Anonymous
in reply to: wundrlik

Has it's Visibility property been set to true?
Message 5 of 12
t.willey
in reply to: wundrlik

Can you post the small drawing? Now my interests have been peeked.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5682582@discussion.autodesk.com...
returns nil when it's run......baffling as hell if you ask me.

I know it's not nested in anything...the drawing has 7 lines in it and this
block definition (it's the only block definition too)
Message 6 of 12
wundrlik
in reply to: wundrlik

As far as I can tell, it has.....unless there is something I missed.

Although it seems to be missing information in it's definition (comparing it to an new block)

New Block:

Code Type Value
-01 Entity name 7efddf70
000 Entity type BLOCK_RECORD
005 Handle 96
102 Control string {ACAD_XDICTIONARY

360 Object ID 7efddf78
102 Control string }
330 Object ID 7efddc08
100 Subclass... AcDbSymbolTable...
100 Subclass... AcDbBlockTableRecord
002 String DomeCamera-Rev0

360 Object ID 7efddf88
340 Object ID 0
102 Control string {BLKREFS
331 Object ID 7efaf008
331 Object ID 7efaf028
102 Control string }

070 16 bit integer 0
280 8 bit integer 0
281 8 bit integer 1


TerminatorOpen:

Code Type Value
-01 Entity name 7efddd40
000 Entity type BLOCK_RECORD
330 Object ID 7efddc08
005 Handle 28

100 Subclass... AcDbSymbolTable...
100 Subclass... AcDbBlockTableRecord
002 String TerminatorOpen
360 Object ID 7efddd48
340 Object ID 0
070 16 bit integer 0

280 8 bit integer 1
281 8 bit integer 0

I wonder if that's causing the problem. I also tried redefining the block with a new block (of the same name) with the same results.

Ryan
Message 7 of 12
wundrlik
in reply to: wundrlik

Here you go....I knew I wasn't going crazy...this should be a slam dunk removal...but it just dowsn't want to cooperate
Message 8 of 12
t.willey
in reply to: wundrlik

Sorry. Can you save it down, as I'm still on '06.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5682589@discussion.autodesk.com...
Here you go....I knew I wasn't going crazy...this should be a slam dunk
removal...but it just dowsn't want to cooperate
Message 9 of 12
Anonymous
in reply to: wundrlik

This block is being referenced by your dimension style

--
Autodesk Discussion Group Facilitator


wrote in message news:5682530@discussion.autodesk.com...
I have drawing that has a block definition in it that will not purge out. I
have tried all the usual steps, QSELECT, erase all, etc. with no avail. I
have also ran through Jimmy's Smartpurger too (Shameless plug). I'm
baffled..

I need to remove it via a lisp or script.

The block name is TerminatorOpen

Any help would be greatly appreciated

Ryan Wunderlich
Message 10 of 12
t.willey
in reply to: wundrlik

That was what I was thinking. Just should have said it.....

--

Tim
"A blind man lets nothing block his vision."


"Jason Piercey" wrote in message
news:5682576@discussion.autodesk.com...
This block is being referenced by your dimension style

--
Autodesk Discussion Group Facilitator


wrote in message news:5682530@discussion.autodesk.com...
I have drawing that has a block definition in it that will not purge out. I
have tried all the usual steps, QSELECT, erase all, etc. with no avail. I
have also ran through Jimmy's Smartpurger too (Shameless plug). I'm
baffled..

I need to remove it via a lisp or script.

The block name is TerminatorOpen

Any help would be greatly appreciated

Ryan Wunderlich
Message 11 of 12
wundrlik
in reply to: wundrlik

Ugh....thanks for your help...I totally forgot to look there
Message 12 of 12
Anonymous
in reply to: wundrlik

If you are able to install, you can grab a free
converter/viewer from Autodesk.

www.autodesk.com\dwgtrueview

HTH


wrote in message news:5682575@discussion.autodesk.com...
Sorry. Can you save it down, as I'm still on '06.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost