Skip to content

Releases: TicTac-93/cleanDWG

Clean DWG

28 Aug 15:16
Compare
Choose a tag to compare

Clean DWG

v1.2.0

A 3dsMax script that will clean up Block/Style Parent dummy objects in imported DWGs and convert all 'VIZBlock' and 'Linked Geometry' objects to Editable Meshes. Instancing is preserved during this conversion.

Install by copying the cleanDWG folder to your 3ds Max scripts directory.
Run in 3ds Max using with the MaxScript snippet:
python.ExecuteFile @"C:\path\to\cleanDWG\cleanDWG.py"


Please note that while this operation is undoable, to prevent freezing
it flushes the undo cache just before running. You will not be able
to undo previous work after cleaning up.

This script operates on selected objects, optionally expanding that selection to include
their entire hierarchy of parents, children, etc. You may also choose to run the script
on every object in the scene, which in the case of large numbers of objects can be faster
than trying to expand a selection. While the script doesn't enforce this, it's
recommended that you select entire object hierarchies, rather than individual objects.

To use, run the script, select any options you want, select the objects
that you want to clean up, and then press the Clean Block/Style Parents button.
Depending on the number of objects you have selected this may take a while,
but should be fairly fast for selections with less than 10,000 objects.
Note that the "Expand Selection" option will greatly slow down the script
when large numbers of object are selected.

Clean DWG

02 Apr 20:12
Compare
Choose a tag to compare

Clean DWG

v1.1.0

A 3dsMax script that will clean up Block/Style Parent dummy objects in imported DWGs.

Install by copying the cleanDWG folder to your 3ds Max scripts directory.
Run in 3ds Max using with the MaxScript snippet:
python.ExecuteFile @"C:\path\to\cleanDWG\cleanDWG.py"


Please note that while this operation is undoable, to prevent freezing
it flushes the undo cache just before running. You will not be able
to undo previous work after cleaning up.

This script operates on selected objects, optionally expanding that selection to include
their entire hierarchy of parents, children, etc. You may also choose to run the script
on every object in the scene, which in the case of large numbers of objects can be faster
than trying to expand a selection. While the script doesn't enforce this, it's
recommended that you select entire object hierarchies, rather than individual objects.

To use, run the script, select any options you want, select the objects
that you want to clean up, and then press the Clean Block/Style Parents button.
Depending on the number of objects you have selected this may take a while,
but should be fairly fast for selections with less than 10,000 objects.
Note that the "Expand Selection" option will greatly slow down the script
when large numbers of object are selected.

Clean DWG

01 Apr 14:55
Compare
Choose a tag to compare

Initial Release of the Clean DWG script

A 3dsMax script that will clean up Block/Style Parent dummy objects in imported DWGs.

Install by copying the cleanDWG folder to your 3ds Max scripts directory.
Run in 3ds Max using with the MaxScript snippet:
python.ExecuteFile @"C:\path\to\cleanDWG\cleanDWG.py"


This script will operate only on selected objects. In the future,
I'd like to expand it to search for relatives (parents and children) of
the current selection, but for now you must make sure that you have
all objects in a hierarchy selected. The recommended way to do this is
by selecting top-level objects in the Scene Explorer, and then using the
Select Children option.

To use, run the script and then select the objects (remember, Parents and Children,)
that you want to clean up. Then, simply press the Clean Block Parents.
Depending on the number of objects you have selected this may take a while,
but should be fairly fast for selections with less than 10,000 objects.
This operation is undoable, but don't be surprised if Max hangs up while
undoing / redoing.

In this release, the script will not delete the old Block/Style Parent
objects, and instead sort them into a layer. After that, it's
up to the user to delete them. This will likely be changed in a future
release.