ScriptSpot

Script

Instantly Auto Edges

By Anubis · 2010-01-17

Version
1.0
Version requirement
Tested on 3ds Max 2009
Date updated
2010-01-17
Votes
27
Description

Performs auto edge on all selected Editable Meshes,
making imported Revit or AutoCAD meshes more readable.

Additional Info

[*] UNDO is turned OFF, so use Max Hold commands before execution! [*] Hold CTRL key to enter threshold value (else will used default value = 5) Speed test (PC with 4GB Ram): Scene with all unique objects and 9 million edges end for 3.141 sec. Which means almost 3 million edges per second ! Also large scenes with many instances end in no time !
Attachments

Tags: clean up, autocad, autoedges, revit, fbx, display, visibility, anubis, Editable Mesh, mapped, fast

Comments (4)

convert to editable poly

d1myan · 2025-01-20

Thanks a lot for the script, it helped a lot. Is it possible to add convert to editablepoly while saving instances?

Grazie

Fabrizio17 · 2023-04-01

Your script save my time after meny years that I spend for optimize STEP or IGES files. I admit I have like a drug dependance by optimizing also non visible object, but your job is a disinctoxicant medicine for me. Thank you

no prob ;)

Anubis · 2013-07-10

Here is a quick function for this purpose:

fn selEdgeVis objs = (
    for o in objs do (
        edgeSelSet = #()
        for f = 1 to o.numFaces do
        for e = 1 to 3 where (getEdgeVis o f e) do
            append edgeSelSet (((f - 1) * 3) + e)
        setEdgeSelection o edgeSelSet
    )
)

and to edit the script just...

(
    --// >> insert above function here <<
    mapped fn setVisibilityEdges ...
    ...
    ...
    else (
        ...
        ...
        format "\nTotal Time:\t\t% sec.\n" ...
        --// >> insert next line code here:
        selEdgeVis filtSet
    )
)

that's it :)

Idea

rs3d · 2013-07-10

Would be great if you select the Visible Edges right after the Auto Edge.