Skip to content

Created DirectShape is not extracted through forge. #29

@maxstefaniv

Description

@maxstefaniv

Hello,
I generated (in debug mode an addin) DirectShape as a Volume of a Room as in:
https://github.com/jeremytammik/RoomVolumeDirectShape

Rooms are generated and REVIT file is saved correctly, then I send it to FORGE for processing and I extract Model View Metadata Properties (mvmp) and the OBJ.

The issue is that MVMP does not contain any information of recently generated room volumes, the object is:

DirectShape ds = DirectShape.CreateElement(doc, _id_category_for_direct_shape);

                    ds.ApplicationId = id_addin;
                    ds.ApplicationDataId = r.UniqueId;
                    ds.SetShape(geo.ToList<GeometryObject>());
                    ds.get_Parameter(_bip_properties).Set(json);
                    ds.Name = "Room_Max_is_an_okayish_dev_" + r.Name;

The question here is: how should I modify it so it will be included in the extraction mvmp.json?
I suspect I need to tag it somehow or add it to some sort of collection.

Please help.
Thank you in advance.

EDIT:
I suspect this is highly related to my issue:
https://thebuildingcoder.typepad.com/blog/2019/05/generate-directshape-element-to-represent-room-volume.html#9.3
But I dont know how to change this phase. This might be what I need?

Also autodesk viewer will not display this DirectShapes created through addin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions