Class SwitchableBodyAPI
Last update: 16.07.2025Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for
public static class SwitchableBodyAPI
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Methods
CreateSwitchableBody(SubSystemDocument, IEnumerable, 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
doc SubSystemDocument
The
bodies IEnumerableObj>
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
Will be thrown if 'doc', 'bodies' argument is null.
Will be thrown if the type of 'bodies', 'selectedBody' is not
Will be thrown if the element of 'bodies' does not contain 'selectedBody'.