I am having an issue using directshape. I had it working fine yesterday morning and I cannot seem to get it to import geometry anymore. You can see by my screen shot it creates it in dynamo it just won’t bring it in to Revit. Any help on this would be greatly appreciated.
I have actual tried just about everything, from only having just the element coming in and I get the same results. As far as the material, I do have them already made.
Just tired that and nothing. Below is the error I keep getting. Seems to be repeating for each piece of geometry it is trying to import. Warning: DirectShape.ByGeometry operation failed. The type initializer for ‘Revit.Elements.DirectShape’ threw an exception.DirectShape.ByGeometry operation failed. The type initializer for ‘Revit.Elements.DirectShape’ threw an exception.
Clayton, I experienced the same problem today, trying to get 3D MEP Spaces and finally managed to find where the problem was. Its coming from the Amount of Names not matching the Amount of 3D solids you want to create, each one of the newly created Direct Shapes needs a different name (different type name). Make sure in the model that you don’t have Spaces with blank names! Put a Watch Node just after Element.GetParameterValueByName and after the Flatten (which is just after Element.Geometry). The two Watch nodes need to have the same amount of Data - 20 Names vs 20 Solids. And instead of the OOTB DirectShape.ByGeometry use the Spirng Nodes one suggested by KULKUL. Hopefully this will help!
Hello. I have one question. I create many solids and i use option SolidBySweep.I wont to export this in Revit in some family but, i cant. I used the option SPRINGS.FAMILYINSTANCE.BYGEOMETRY and I created more families and more types. I want all solids to be placed in one family. Can someone help me?
Hi everyone,
I’m just getting started on this workflow and cannot seem to progress beyond this step.
Has anyone encountered this error before?
Any ideas on how to proceed from here?