Move a profile of the form, specified by a reference, and an offset vector.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic void MoveProfile(
int profileIndex,
XYZ offset
)
Public Sub MoveProfile (
profileIndex As Integer,
offset As XYZ
)
public:
void MoveProfile(
int profileIndex,
XYZ^ offset
)
member MoveProfile :
profileIndex : int *
offset : XYZ -> unit Parameters
- profileIndex Int32
- Index to specify the profile.
- offset XYZ
- The vector by which the element is to be moved.
Examplepublic void MoveForm(Form form)
{
int profileCount = form.ProfileCount;
if (form.ProfileCount > 0)
{
int profileIndex = 0;
if (form.CanManipulateProfile(profileIndex))
{
XYZ offset = new XYZ(-25, 0, 0);
form.MoveProfile(profileIndex, offset);
}
}
}
See Also