Class SwitchableBodyAPI
Last update: 09.03.2026Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for
public static class SwitchableBodyAPI
Inheritance
object ← SwitchableBodyAPI
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
CreateSwitchableBody(SubSystemDocument, IEnumerable<Obj>, Obj?, string, SymmetricType)
Create
[NotNull(new string[] { "doc", "bodies" })]
public static Obj CreateSwitchableBody(this SubSystemDocument doc, IEnumerable<Obj> bodies, Obj? selectedBody = null, string name = "", SymmetricType symmetricType = SymmetricType.None)
Parameters
The
bodies IEnumerable<Obj>
The connectable bodies of a switchable body.
selectedBody Obj?
The selected connectable body of a switchable body.
name string
The name of a switchable body.
symmetricType SymmetricType
The symmetric type of the new
Returns
The new
Exceptions
ArgumentNullException
Will be thrown if 'doc', 'bodies' argument is null.
ArgumentException
Will be thrown if the type of 'bodies', 'selectedBody' is not
ArgumentException
Will be thrown if the element of 'bodies' does not contain 'selectedBody'.