- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I know this question was asked last year and I tried the examples but still found no solution.
I tried:
with no luck.
As you can see in picture01 the parameter "Cut with Voids When Loaded" is yes. You can also see my void volume body inside the family.
Inside the project the family is hosted on a floor, or better said the Floor is the Work-Plane.
See picture02.
When I try:
FamilyInstance instance = _doc.Create.NewFamilyInstance(reference, location, new XYZ(0, 0, 0), symbol); Parameter parameter = instance.get_Parameter(BuiltInParameter.INSTANCE_FREE_HOST_OFFSET_PARAM); parameter.Set(-50 / 304.8); try { InstanceVoidCutUtils.AddInstanceVoidCut(_doc, floor, instance); } catch (Exception) { throw; }
I get this exception:
I've just started with Revit Programming in C#. Maybe it is just one thing what I'm missing or doing wrong. Can somebody give me a little hint.
Thanks in advance.
Annie
Solved! Go to Solution.