Author Topic: Anonymous blocks with nested entities...  (Read 4904 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
Anonymous blocks with nested entities...
« on: October 22, 2004, 11:18:24 AM »
I have a drawing with numerous anonymous blocks with nested entities.

If I explode the blocks the drawing size shoots up to over 2 meg, and bearing in mind this is to be used as an Xref, file size is important.

I've tried to refedit the block to remove the nested layers and linetypes, but as it's anonymous, it won't let me.

How can I rename these blocks away from the "*U001" to a format I can work with?
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Anonymous blocks with nested entities...
« Reply #1 on: October 22, 2004, 11:42:06 AM »
wblock the selected anonymous block, open the new block, explode the anonymous block, purge and save....re-insert the new wblock in place of the existing anonymous block.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ronjonp

  • Needs a day job
  • Posts: 7533
Anonymous blocks with nested entities...
« Reply #2 on: October 22, 2004, 12:25:48 PM »
If you can't get it to work, post the drawing. (work's kinda slow here  :D )

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

hudster

  • Gator
  • Posts: 2848
Anonymous blocks with nested entities...
« Reply #3 on: October 25, 2004, 04:34:48 AM »
I tried wblocking the block out, but when i try to replace the original block, I can't, it gives the following error.

Code: [Select]
Command: blockreplace
Select an object with the desired block name...
Select objects: *U0
 Invalid characters in block name.
 The following characters are invalid:
 <>\/":?*|,=`


I've posted a copy of the Annon Block here.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Anonymous blocks with nested entities...
« Reply #4 on: October 25, 2004, 08:24:42 AM »
You won't be able to directly replace the block with that command. The problem is that you cannot use the * as part of a block name.

There are some utilities out there that will change the block from one name to another or you might be able to find the block replace command that is floating about that allows you to replace a single block insert with another.

I have a program that changes the block reference that will work, but it was written to use DXF codes and the user must know what each one is.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

hudster

  • Gator
  • Posts: 2848
Anonymous blocks with nested entities...
« Reply #5 on: October 25, 2004, 12:17:27 PM »
I found a lisp routine called nest 103.  This is a great piece of code which allows me to change the properties of any entity in the drawing either globally or by selection set.

It got rid of all the nested linetypes without having to redefine or explode the blocks.  Not an ideal solution, but it'll do the job.

It costs $15 to register the product, but I was happy to do that, it's something I'll use quite regularly.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue