Removing visible edges from imported FBX models
 
 
 

Use this script to hide any unwanted edges from imported models, typically Revit models loaded in 3ds Max using FBX.

To use the script, select any objects in the scene you want to hide edges and drag and drop the following script in the 3ds Max viewport.

NoteThis script filters out any non-editable meshes so it does not work for Epoly Patches or other entities.
function setVisibilityEdges obj = (
  subobjectLevel = 2
  edgeSelSet=#() -- Init. an Array
       for face = 1 to obj.numfaces do -- Go through all faces
             for edge = 1 to 3 do -- And for every of the 3 edges
             append edgeSelSet (((face-1)*3)+edge) --collect the edge
       meshop.autoedge obj edgeSelSet 5 type:#setclear -- Select all visible edges
       --update obj
)
for obj in Selection do try
  (
       if (classof obj == Editable_Mesh) do setVisibilityEdges obj
  )catch
       (
       enablesceneredraw()
       redrawviews()
       )
enablesceneredraw()
redrawviews()