Код: Выделить всё
Extrusion voidExtrusion = familyDoc.FamilyCreate.NewExtrusion(
false, // Create a void
curveArrArray,
sketchPlane,
holeDepth // Depth of the extrusion
);
Код: Выделить всё
// Enable geometry cutting if supported
Parameter voidCutsGeometryParam = voidExtrusion.get_Parameter(BuiltInParameter.VOID_CUTS_GEOMETRY);
if (voidCutsGeometryParam != null && !voidCutsGeometryParam.IsReadOnly)
{
voidCutsGeometryParam.Set(1);
}
Я пробовал использовать API NewExtrusionForm Revit
Код: Выделить всё
public Form NewExtrusionForm(
bool isSolid,
ReferenceArray profile,
XYZ direction
)
Код: Выделить всё
Autodesk.Revit.Exceptions InvalidOperationException - The attempted operation is not permitted in this type of familyПодробнее здесь: https://stackoverflow.com/questions/791 ... d-in-revit
Мобильная версия