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

Inheritance

object ← TopologyAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

ChangeEdgeColor(IDocument, IEnumerable<Obj>, Color?, SetColorType)

Change the topology edge.

Parameters

document IDocument The document to change the topology edge. edges IEnumerable<Obj> The edges of the topology. color Color? The color of the topology. setColor SetColorType The falg of color setting of the topology.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘edges’ argument is null. ArgumentException Will be thrown if the type of ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if the type of ‘edges’ is not Edge.

ChangeFaceColor(IDocument, IEnumerable<Obj>, Color?, SetColorType)

Change the topology face.

Parameters

document IDocument The document to change the topology face. faces IEnumerable<Obj> The faces of the topology. color Color? The color of the topology. setColor SetColorType The falg of color setting of the topology.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘faces’ argument is null. ArgumentException Will be thrown if the type of ‘document’ is not SubSystemDocument and PartDocument. ArgumentException Will be thrown if the type of ‘faces’ is not Face.