Skip to main content
Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for SwitchableBody class.

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 SwitchableBody

Parameters

doc SubSystemDocument The SubSystemDocument to create a switchable body. 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 SwitchableBody.

Returns

Obj The new SwitchableBody object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘doc’, ‘bodies’ argument is null. ArgumentException Will be thrown if the type of ‘bodies’, ‘selectedBody’ is not IConnectable. ArgumentException Will be thrown if the element of ‘bodies’ does not contain ‘selectedBody’.