Class OperationAPI
Last update: 16.07.2025Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for operation class.
public static class OperationAPI
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
ChangeEnableState(Obj, bool)
[NotNullObj(new string[] { "enableObj" })]
public static void ChangeEnableState(this Obj enableObj, bool isEnable = true)
Parameters
enableObj Obj
isEnable bool
ChangeEnableState(IEnumerable<Obj>, bool)
[NotNull(new string[] { "enableObjs" })]
public static void ChangeEnableState(this IEnumerable<Obj> enableObjs, bool isEnable = true)
Parameters
enableObjs IEnumerable<Obj>
isEnable bool
ChangeInterface(Obj, bool)
[NotNullObj(new string[] { "interfaceObj" })]
public static void ChangeInterface(this Obj interfaceObj, bool isInterface = false)
Parameters
interfaceObj Obj
isInterface bool
ChangeVisibleState(Obj, bool)
[NotNullObj(new string[] { "visibleObj" })]
public static void ChangeVisibleState(this Obj visibleObj, bool isVisible = true)
Parameters
visibleObj Obj
isVisible bool
ChangeVisibleState(IEnumerable<Obj>, bool)
[NotNull(new string[] { "visibleObjs" })]
public static void ChangeVisibleState(this IEnumerable<Obj> visibleObjs, bool isVisible = true)
Parameters
visibleObjs IEnumerable<Obj>
isVisible bool
Delete(Obj)
Delete the entity.
[NotNullObj(new string[] { "entity" })]
public static void Delete(this Obj entity)
Parameters
entity Obj
The entity to be deleted.
Exceptions
Will be thrown if 'entity' arguments are empty.
Will be thrown if document of 'entity' arguments are empty.
Duplicate(Obj)
[NotNullObj(new string[] { "entity" })]
public static void Duplicate(this Obj entity)
Parameters
entity Obj
Duplicate(IEnumerable<Obj>)
[NotNull(new string[] { "entities" })]
public static void Duplicate(this IEnumerable<Obj> entities)
Parameters
entities IEnumerable<Obj>
Flip(Obj)
[NotNullObj(new string[] { "entity" })]
public static void Flip(this Obj entity)
Parameters
entity Obj
Flip(IEnumerable<Obj>)
[NotNull(new string[] { "entities" })]
public static void Flip(this IEnumerable<Obj> entities)
Parameters
entities IEnumerable<Obj>
SetTransparency(Obj, ExpressionValueVariable)
[NotNullObj(new string[] { "body" })]
public static void SetTransparency(this Obj body, ExpressionValueVariable transparency)
Parameters
body Obj
transparency ExpressionValueVariable
UpdateCADName(Obj, string)
[NotNull(new string[] { "cadBody" })]
[NotNullOrEmpty(new string[] { "strName" })]
public static void UpdateCADName(this Obj cadBody, string strName)
Parameters
cadBody Obj
strName string
UpdateName(Obj, string)
[NotNull(new string[] { "nameObj" })]
[NotNullOrEmpty(new string[] { "strName" })]
public static void UpdateName(this Obj nameObj, string strName)
Parameters
nameObj Obj
strName string
UpdateSymmetric(Obj, bool)
[NotNullObj(new string[] { "symMgr" })]
public static void UpdateSymmetric(this Obj symMgr, bool symmetric = true)
Parameters
symMgr Obj
symmetric bool