Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class SwitchableBody

Last update: 16.07.2025

Namespace: VM.Managed.DAFUL
Assembly: VMDFBase.dll

This class is to represent the switchable body.

public class SwitchableBody : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IMarkerCreatable, IConnectable, IMarkerParent, IEntityRelation, IHasBody, ITemplateObject, IArgument, IContainer, ILinkContainer, IOwned, IHasID, IReferencable, IInterface, IMultiChangable

Inheritance

object ← ObservableObject ← LinkableBase ← ObjectBase ← Object ← SubEntity ← SwitchableBody

Implements

IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IMarkerCreatable, IConnectable, IMarkerParent, IEntityRelation, IHasBody, ITemplateObject, IArgument, IContainer, ILinkContainer, IOwned, IHasID, IReferencable, IInterface, IMultiChangable

Inherited Members

SubEntity.Initialize(Unit.ConvertFactor), SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool), SubEntity.FixUp(ObjectBase), SubEntity.WriteTemplateImpl(XmlWriter), SubEntity.ReadTemplateImpl(XmlReader), SubEntity.Name, SubEntity.FullName, SubEntity.NonSymmetricName, SubEntity.DisplayName, SubEntity.IsEnabled, SubEntity.Comment, Object.GetKey(), Object.Initialize(Unit.ConvertFactor), Object.SetIconColor(Canvas), Object.OnDeserialization(object), Object.CustomGetObjectData(SerializationInfo, StreamingContext), Object.RollbackEvent(), Object.OnDeserializedCore(object), Object.Key, Object.UntypedEventCore, Object.EventCore, Object.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray(T[], T[]), ObjectBase.IsEqualList(List, List), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

SwitchableBody()

Initializes a new instance of the class.

public SwitchableBody()

SwitchableBody(string)

Initializes a new instance of the class.

public SwitchableBody(string strName)

Parameters

strName string

Name of the STR.

Properties

ActiveConnectableObject

Gets or sets the active connectable object.

public IConnectable ActiveConnectableObject { get; set; }

Property Value

IConnectable

ActiveConnectableObjectName

Gets or sets the name of the active connectable object.

public string ActiveConnectableObjectName { get; set; }

Property Value

string

ArgumentType

Gets the type of the argument

public ArgumentTypes ArgumentType { get; }

Property Value

ArgumentTypes

Body

Gets the body.

public IBody Body { get; }

Property Value

IBody

ConnectableBody

Gets the connectable body.

public ObjectBase ConnectableBody { get; }

Property Value

ObjectBase

ConnectableFullName

Gets the full name of the connectable.

public string ConnectableFullName { get; }

Property Value

string

ConnectableName

Gets the name of the connectable.

public string ConnectableName { get; }

Property Value

string

ConnectableObjectNames

Gets or sets the connectable object names.

public string[] ConnectableObjectNames { get; set; }

Property Value

string[]

ConnectablePosition

Sets the connectable position.

public Vector ConnectablePosition { set; }

Property Value

Vector

ConnectablePostfixName

Sets the postfix name of the connectable.

public string ConnectablePostfixName { set; }

Property Value

string

Connectors

Gets or sets the connectors.

public IConnectable[] Connectors { get; set; }

Property Value

IConnectable[]

Markers

Gets or sets marker dictionary.

public NamedObjectDictionary<marker> Markers { get; set; }

Property Value

NamedObjectDictionaryMarker&gt;

ParentType

Gets the type of the marker's parent.

public MarkerParentType ParentType { get; }

Property Value

MarkerParentType

ReferenceFrameType

Gets the type of the marker's reference frame.

public MarkerReferenceFrameType ReferenceFrameType { get; }

Property Value

MarkerReferenceFrameType

ReferenceType

Gets the type of the array for argument.

public string ReferenceType { get; }

Property Value

string

SymmetricManagers

Gets or sets the symmetric manager dictionary.

public NamedObjectDictionary<symmetricmanager> SymmetricManagers { get; set; }

Property Value

NamedObjectDictionary

Methods

AddConnectableObject(IConnectable)

Adds the connectable object.

public void AddConnectableObject(IConnectable ic)

Parameters

ic IConnectable

The connectable object.

FixUp(ObjectBase)

Before destroy the old object, perform a work.

public override bool FixUp(ObjectBase ob)

Parameters

ob ObjectBase

The old object.

Returns

bool

true if success; otherwise, false.

GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)

Gets the object information for model navigator [implementation].

protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlEle, bool bHasChild)

Parameters

xmlDom XmlDocument

The XmlDocument for object.

xmlEle XmlElement

The XmlElement for object.

bHasChild bool

if set to true [has child].

Returns

bool

true if success; otherwise, false.

Initialize(ConvertFactor)

Initializes member through unit convert factor.

public override void Initialize(Unit.ConvertFactor factor)

Parameters

factor Unit.ConvertFactor

The unit convert factor.

LinkRequestUpdate(object, LinkEventArgs)

Request for update the linked object.

protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

RemoveConnectableObject(IConnectable)

Removes the connectable object.

public bool RemoveConnectableObject(IConnectable ic)

Parameters

ic IConnectable

The connectable object.

Returns

bool

Connect with Ansys