Simpler way to extract block entities!?

Hello.

In a block insert I can select “CTRL+SHIFT” nested entities but it seams there’s no way to extract then.
I know I can “open and edit” the block and copy paste from there but that’s impractical for large linked blocks.

In my particular case I’m linking a large topographic plan and sometimes I wan’t to copy some polyline but having to open this large drawing in a new rhino instance just to do that is overkill.
Another problem is that the insert is positioned differently so I would have to realign the pasted objects.

Its a pity if there’s no better way to do this since we can already select nested entities.
Is there a simpler way to copy a nested entity???

Thanks

What I usually do with large blocks is to copy it in place and explode.You’ll get all the objects of the block selected. Now just deselect the curves you need and hit Delete to delete the rest. Its a lot faster than BlockEdit huge files.

Hi |ruisantosfortes,

I’ve attached a zip file with 3 rhinoscripts.
DirectObjectsBlockAccess.zip
Unzip it to a folder where you can keep them and drag&drop each file over Rhino.
It will register an alias that will run the script.

ExtractObjectsFromBlock.rvb: copy-extract objects from a block.
AddObjectsToBlock.rvb : add object to the selected block
DeleteObjectsFromBlock.rvb : delete/remove objects from a block

Note that these scripts are presented “as is”, make sure to if needed
double check results and operate on non-critical files.

@Pascal I think these should be default commands/functionality for V6.
Blockedit it too tedious for many block manipulations.

HTH
-Willem

2 Likes

Thanks Willem! These are quite useful tools.

… is not needed anymore. You can just double-click *.rvb files now. :slight_smile:

Not over here…
I have linked .rvb files to Notepad++.

Are you saying .rvb files are linked by the Rhino installer?
That is good to know!

-Willem

I had .rvb files open by NP++ too… til I installed SR4.

Now I’ve got this new .rvb icon:

Personally, I’d rather have them open in a text editor, as I am always opening rvb’s to look at or modify… But most users would rather not, I guess. I did notice that all the plug-in icons went black as well…
–Mitch

Yea, I did change it back to open with NP++ cause most of the time when I click on it I want to edit the script too.

But the icon is nice.
And we have a new worksession icon too!

Someone had the creativity-cap on… :slight_smile:

Hmph… network issues… I responded to this multiple times with no result, then they all showed up at once. I tried to delete, hopefully that worked. At any rate, the question I have, Willem, is how should nested blocks be handled?
-Pascal

Good question,
I’m not that much into Blocks but my first thought is to handle them as blocks:

To me going into block edit is just like going down one level. So if on that level I encounter another Block
I can go down again. With my scripts I think I can run blockedit and once on the level of that block I can operate on blocks that are inside that block.

BlockEdit is good to “manage” the Block, see the nested Blocks and their structure.
If I want to edit things like the geometry inside, add or remove objects, the blockedit dialog is just dead weight.

Blockedit should remain in it’s functionality, but I suggest to have additional tools to do quick edits

  • ExtractObjectsFromBlock
  • AddObjectsToBlock
  • DeleteObjectsFromBlock

I can imagine sub-selection working as well, yet a warning should be in place to inform that a block definition is edited and not just some random (grouped) set of geometry.

my2c
-Willem

Hey guys,
At least in Rhino 5 this works:

ALL YOU HAVE TO DO IS EXPLODE THE OBJECTS YOU WANT TO EXTRACT.