2024 Method
Changes 0
M

Form.MoveProfile

Description:
Move a profile of the form, specified by a reference, and an offset vector.
public void MoveProfile(
	int profileIndex,
	XYZ offset
)
  • Int32
    profileIndex
    Index to specify the profile.
  • offset
    The vector by which the element is to be moved.
public void MoveForm(Form form)
{
    int profileCount = form.ProfileCount;
    if (form.ProfileCount > 0)
    {
        int profileIndex = 0;   // modify the first form only
        if (form.CanManipulateProfile(profileIndex))
        {
            XYZ offset = new XYZ(-25, 0, 0);
            form.MoveProfile(profileIndex, offset);
        }
    }
}