Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class ObjectControlAPI

Last update: 09.03.2026

Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll

This class implements APIs for object control.

public static class ObjectControlAPI

Inheritance

object ← ObjectControlAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

RotateObjectsDegree(IEnumerable<Obj>, Vector, Vector, double)

Rotate given by using rotation axis and angle(degree).

[NotNull(new string[] { "objs" })]
[NotZeroMagnitude(new string[] { "direction" })]
public static void RotateObjectsDegree(IEnumerable<Obj> objs, Vector position, Vector direction, double rotateAngleDegree)

Parameters

objs IEnumerable<Obj>

The collection of to rotate.

position Vector

The position of the axis.

direction Vector

The direction vetor of the rotation axis.

rotateAngleDegree double

The rotation angle.

Exceptions

ArgumentNullException

Will be thrown when the collection of objects is null.

ArgumentException

Will be thrown if the magnitude of 'direction' is 0.

TransformObjects(IEnumerable<Obj>, TMatrix)

Transform given by using .

[NotNull(new string[] { "objs" })]
public static void TransformObjects(IEnumerable<Obj> objs, TMatrix transform)

Parameters

objs IEnumerable<Obj>

The collection of to transform.

transform TMatrix

The

Exceptions

ArgumentNullException

Will be thrown when the collection of objects is null.

Connect with Ansys