Objects with no vertices or faces are being categorised as SpeckleMeshes

The default structural model in revit has quite a few objects that get categorised as meshes when they should be just plain SpeckleObjects in my opinion. Notice how there’s no geometry data but there’s plenty inside the properties object. Is this a bug or am I supposed to account for empty meshes locally? Here’s the JSON:

            "private": false,
            "canRead": [],
            "canWrite": [],
            "anonymousComments": false,
            "comments": [],
            "name": null,
            "geometryHash": null,
            "hash": "7367993e06e814bb111881b11eced486",
            "applicationId": "7588cba1-a054-4f65-a71e-8733428a4a3c-00150569",
            "properties": {
                "parameters": {
                    "End Treatment At End": "None",
                    "Bar Length": 5088.006400454777,
                    "__unitType::Bar Length": "UT_Reinforcement_Length",
                    "Quantity": 1,
                    "Mark": "",
                    "Hook At Start": "Stirrup/Tie Seismic - 135 deg.",
                    "Partition": "",
                    "Layout Rule": 0,
                    "Phase Created": "New Construction",
                    "End Treatment At Start": "None",
                    "Spacing": 0,
                    "__unitType::Spacing": "UT_Reinforcement_Spacing",
                    "Shape Image": "<None>",
                    "Host Mark": "",
                    "Reinforcement Volume": 255.85130570835247,
                    "__unitType::Reinforcement Volume": "UT_Reinforcement_Volume",
                    "Geometry": 0,
                    "E": 0,
                    "__unitType::E": "UT_Reinforcement_Length",
                    "D": 0,
                    "__unitType::D": "UT_Reinforcement_Length",
                    "G": 0,
                    "__unitType::G": "UT_Reinforcement_Length",
                    "F": 0,
                    "__unitType::F": "UT_Reinforcement_Length",
                    "A": 0,
                    "__unitType::A": "UT_Reinforcement_Length",
                    "C": 0,
                    "__unitType::C": "UT_Reinforcement_Length",
                    "B": 4921.347120023622,
                    "__unitType::B": "UT_Reinforcement_Length",
                    "O": 0,
                    "__unitType::O": "UT_Reinforcement_Length",
                    "H": 0,
                    "__unitType::H": "UT_Reinforcement_Length",
                    "K": 0,
                    "__unitType::K": "UT_Reinforcement_Length",
                    "J": 0,
                    "__unitType::J": "UT_Reinforcement_Length",
                    "R": 0,
                    "__unitType::R": "UT_Reinforcement_Length",
                    "Style": 1,
                    "Rebar Number": "42",
                    "Total Bar Length": 5090,
                    "__unitType::Total Bar Length": "UT_Reinforcement_Length",
                    "Stirrup/Tie Attachment": 0,
                    "Image": "<None>",
                    "Hook At End": "Stirrup/Tie Seismic - 135 deg.",
                    "Design Option": "Main Model",
                    "Schedule Mark": "16",
                    "Host Category": 6,
                    "Comments": "",
                    "Shape": "Stirrup - T17",
                    "Phase Demolished": "None",
                    "Bar Diameter": 8,
                    "__unitType::Bar Diameter": "UT_Bar_Diameter",
                    "Estimated Reinforcement Volume": 255.85130570835247,
                    "__unitType::Estimated Reinforcement Volume": "UT_Reinforcement_Volume",
                    "Quantity By Rebar Set": 1,
                    "Minimum bar length": 5088.006400454777,
                    "__unitType::Minimum bar length": "UT_Reinforcement_Length",
                    "Category": "Structural Rebar",
                    "Family and Type": "Rebar Bar: Structural Rebar 1",
                    "Family": "Rebar Bar",
                    "Distribution Type": 0,
                    "Maximum bar length": 5088.006400454777,
                    "__unitType::Maximum bar length": "UT_Reinforcement_Length",
                    "Standard Bend Diameter": 50,
                    "__unitType::Standard Bend Diameter": "UT_Bar_Diameter",
                    "Bend Diameter": 50,
                    "__unitType::Bend Diameter": "UT_Bar_Diameter",
                    "Type": "Structural Rebar 1",
                    "Type Id": "1316392"
            "deleted": false,
            "parent": null,
            "children": [],
            "ancestors": [],
            "_id": "5e39438418f3f42b91b1a90c",
            "type": "Mesh/GenericElement",
            "vertices": [],
            "faces": [],
            "owner": "5d5290d83bdc8f3939743fb8",
            "__v": 0,
            "createdAt": "2020-02-04T10:12:20.419Z",
            "updatedAt": "2020-02-04T10:12:20.419Z"

If I’m correct, the "type": "Mesh/... is added so that the viewer can display the elements correctly (right @dimitrie ?) .

The reason why there is no geometry is probably that the converter failed to get the actual mesh geometry out of this element. Being it classified as GenericElement I’m assuming it’s not a conventional Revit element, correct? If so, that’s probably why it failed.

Happy to have a look if you can share the part of the model affected!

See this is the weird part, there’s only about 400 geometry objects in the original revit model but an additional 400 or so of these generic elements with no vertices are also in the stream. There are a few “Mesh/GenericElement” objects that do have actual geometry attached so I wouldn’t say that it’s all generic elements that are the problem.

So there is no part of the model being affected since I receive the whole thing just fine. I just get extra junk objects along with it that don’t serve any purpose.

I’m not really a revit user at all this is just from the default structural model.

One theory I have is that the revit client accidentally duplicated all the objects in the stream but didn’t copy the geometry which is why I have 400 actual meshes and 400 empty meshes.

Hard to say without seeing the model… I’d suggest to try selecting the elements by category instead of by selection, as it might have contributed to picking up extra stuff maybe.