Skip to content

FreeFormElement.UpdateSolidGeometry

Public Class

Updates the geometry of the FreeForm element to the given shape preserving References to the existing geometry where possible (see remarks for rules).

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public void UpdateSolidGeometry(
Solid newGeometry
)

Parameters

newGeometry Solid

The new geometry to set in the FreeForm element.

Exceptions

Exception

Condition


ArgumentNullException

A non-optional argument was null


Remarks

Rules for preserving References:

  • First preserve faces as Reference when exclusively coincident with existing faces.
  • Then preserve faces as Reference if exclusively parallel to existing faces.
  • Then preserve faces as Reference if exclusive at small angle to the existing faces.
  • Any other faces are will not be preserved as a Reference.

Edges are preserved as References if and only if exclusively bound to faces that are also preserved as References.