MoI discussion forum
MoI discussion forum

Full Version: Delete objects by name, pattern matching, regex, etc

From: fcwilt
14 Mar   [#1]
Hi,

Is there any way to delete objects by matching part of a name?

I'm working with a step file that seems to have included every nut, bolt and washer - hundreds of them.

I'm try to clean out unneeded things like to the par down the size of the file and make it easier to work with.

Thanks.

Frederick
From: Michael Gibson
14 Mar   [#2] In reply to [#1]
Hi Frederick, there is selection by name with wildcard characters.

Type the Tab key which will put keyboard focus into the XYZ input in the bottom toolbar, then type your wildcard pattern and push enter.

The wildcard characters are * and ?
* matches any sequence and ? matches any single character.

So for example if have names like "nextbox" and "box8229" you can put *box* and that will select anything that contains "box" in it with anything before or after.

If you put box* that would only match box8229 and not nextbox.

That will select the objects, then use delete to remove them.

- Michael
From: fcwilt
14 Mar   [#3] In reply to [#2]
Hi Michael,

That is fantastic.

Frederick