Revit 2025 API
FormConstrain |
Constrain form profiles using the specified profile as primary. This is an advanced version of property "AreProfilesConstrained", allowing specify the primary profile.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public void ConstrainProfiles( int primaryProfileIndex )
Public Sub ConstrainProfiles ( primaryProfileIndex As Integer )
public: void ConstrainProfiles( int primaryProfileIndex )
member ConstrainProfiles : primaryProfileIndex : int -> unit
Parameters
- primaryProfileIndex Int32
- Index to specify the profile used as primary profile.

Exception | Condition |
---|---|
InvalidOperationException | This operation can only be performed on a swept blend form. |
See Also