Control the Visibility of Mesh Edges

Hello all,

I have a faceted object. It’s a Mesh, pushed to a Brep and then created as native Revit geometry.

I want to be able to control the internal mesh to turn it off from view and just see an outline. The Visibility Graphics settings aren’t much help. I’m stumped for ideas on how to clean this up.

Any thoughts?

It is formed from a lofted Brep, then I turn it to a mesh to use Noise4D to give the surface a random look, then I turn it back into a brep to make it a revit family. I’m wondering if there’s a better workflow to get the desired effect of a randomized surface.

1 Like

Hi Scott,

There were changes to Revit 2023+ on edge display, what version and type of Element are you working with?

I’m working in Revit version 2024 and I’m working in the planting category.

Does that help?

Can you post the family?

I’m not seeing mesh edges here…

I’m in the middle of changing the workflow to take a brep, break it into points and rebuild it as a brep after I added noise to move the surface points around randomly.

I’m using Component Family Form rather than direct shape to create native revit geometry. Using a brep removes the issue I have but because it’s smooth I also don’t have an outline in elevation. Interestingly it makes the element super light to just modify the berep and push that in as native geometry. I have 4000 elements and no lag.

Hi @scottyvalentine,

We have added ‘Component Family Mesh’ component to allow meshes on Family definitions.

RiR-FamilyMesh.gh (49.4 KB)

Is available on v1.22 and will be on 1.21 next week.

1 Like

Wow. that’s great. So does that mean any closed mesh can be brought to Revit as native geometry with this node?

This new node allows to push a mesh into a Family.

To push a mesh directly into the project you can use ‘Direct Shape (Mesh)’ or ‘Direct Shape (Geometry)’

This same as before but using DirectShape.

RiR-DirectShapeMesh.gh (39.0 KB)

This is available on the version you already have installed. But you can not control visibility or line style per subcategory here.

Hi @kike

How do I plug visibility settings into this setup?

Thank you

Scott

Hi @scottyvalentine,

Unfortunately Revit API do not provide a way to control Visibility when a mesh is used as family geometry.

Hmm ok. That’s odd. I guess a reason not to use a mesh as a family. I’ll have another look at the possible alternatives tomorrow if there are any.

Thanks Kike

I looked inside the mesh families and there’s no option to control the visibility of the mesh in there either. The workaround I’m using is putting the mesh components on sub-categories so I can switch off the sub-categories in plan view. I do wonder what the reasoning for not offering visibility options for mesh items.

1 Like

we are doing something similar on a civil project.

Its seems to be a real mess in terms of what visbility setting work and in which view.

ie. In plan views a mesh form doesn’t display cut or surface patterns, however in section, the mesh form will display cut patterns but not surface patterns…

Odd.

I attempted to convert the mesh to breps so it could be pushed into Revit as native geometry but that only sometimes worked. Some items convert perfectly, others partially and others not at all.

yer i also just tried in revit 25 and i can now get cut visbility working on a mesh form, however throw a plan region in there and its cant recognise any depths with the plan region over the top. plan regions do however work great on brep forms and can create mid brep cuts etc.

1 Like