DWG and those oh so useful block definitions

This is 1.5m file of elevations. Trying to get anything like some clean geometry to paste into a R7 document is a GD nuisance. First off is all the imported bloc defs which even after doing an explode all blocks command and deleting all block defs there’s still an error advising to open the block manager to delete nested items - but there are no nested items.

The beachball time demanded by this clusterF is appalling at times even crashing the app.

There needs to be some importation option that eliminates all this persnickety horse poop with block defs and so o

njanco-size charts.dwg (1.4 MB)

Hello - open the file, select everything and ExplodeBlock, then Purge, with UnusedBlockDefinitions=Yes That leaves a block that has no instances in the file - this is weird, to me, but it can be deleted in BlockManager. While that does seem incorrect, I am not sure I follow from that, quite, to the vehemence I detect in your comments - am I missing the problem?

-Pascal

Thanks Pascal

Is there a means to make a macro that would run all this?

The other issue is when the explode blocks command is called it will takes minutes to complete.

That’s the thing. After exploding and then deleting all the blocks an error will still come up when attempting to delete empty layers!

_SelAll ExplodeBlock _Purge _UnusedBlockInstanes=_Yes _Layers=_Yes _EnterEnd SelNone

-Pascal

That’s flippin brilliant!
I think I can make that a custom command in the prefs?
Is there a means to paste an icon on the new command?

Still - after running the script - when I select all and copy, the application stalls - beach balling and DWG and those oh so useful ...

Then finally returns after about 2 minutes. But then trying to paste the contents in a new document there’s apparently nothing there. Perhaps there’s to much for the clipboard? At one point I noticed an error involving a missing font.

Pascal,
I don’t know what I’m failing to do correctly but I’m again plagued with blocks that cannot be found much less exploded. And running the script you gave me is no use.

_SelAll ExplodeBlock _Purge _UnusedBlockInstanes=_Yes _Layers=_Yes _EnterEnd SelNone

Shared with CloudApp

Shared with CloudApp

Shared with CloudApp

Shared with CloudApp

Shared with CloudApp

Rancher-15.3dm (6.1 MB)

When weird stuff happens in a Rhino file it sometimes helps to import the 3dm into a fresh file. Does that work?

Btw I find making custom toolbars in the Mac version overly complicated. Hope Mcneel will address this in a Rhino 7 update.

Are you unchecking Import unreferenced blocks and Import unreferenced layers when you read the dwg file?
When I do that and then explode and purge, there is one block left called _OBLIQUE, which is an arrow definition used by the dimstyle STANDARD.