TopologyAPI#
Interface TopologyAPI
Hierarchy
- TopologyAPI
Methods
Methods
add
- addTopology To Selection(handle): Promise<void> 
- 
Adds one or multiple Topology elements to the current selection. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or the list of Topology Elements which should be added to the current selection. 
 Returns Promise<void>
- 
clear
create
- createCircular Arc Descriptor(point0, point1, point2): { 
 descriptor: TopologyCircularArcDescriptor;
 type: CIRCULAR_ARC;
 }
- 
Create Circular arc descriptor by the three specified points. Parameters- 
point0: [number, number, number]The first point. 
- 
point1: [number, number, number]The second point. 
- 
point2: [number, number, number]The third point. 
 Returns {
 descriptor: TopologyCircularArcDescriptor;
 type: CIRCULAR_ARC;
 }- 
descriptor: TopologyCircularArcDescriptorThe attributes of the Topological Element. 
- 
type: CIRCULAR_ARCThe syb type of the Topological Element. 
 
- 
get
- getSelected Topology Handles(): TopologyHandle[] 
- 
Returns a list of all selected topology elements. Returns TopologyHandle[]A List of all selected Topology elements. 
get
- getShape Handle(handle): TopologyHandle 
- 
Returns a handle to the corresponding Shape of the specified Topology Element. Parameters- 
handle: TopologyHandleThe Topology Handle. 
 Returns TopologyHandle- The corresponding Shape of the specified Topology Element.
 
- 
get
- getTopology Type(handle): TopologyType 
- 
Returns the type of the given topology element Parameters- 
handle: TopologyHandleThe TopologyHandle. 
 Returns TopologyTypeThe type of the given topology element 
- 
is
- isTopology Selected(handle): boolean 
- 
Checks if the specified Topology Element is part of the current selection. Parameters- 
handle: TopologyHandleThe topology element which should be checked if it selected. 
 Returns booleanA boolean value which indicates if the specified Topology Element is part of the current selection or not. 
- 
map
- mapInternal To Original Topology Handles(handles): Promise<OriginalTopologyHandle[]> 
- 
Maps the given webvis internal topology handles to original topology handles. Parameters- 
handles: TopologyHandle[]A list of webvis internal topology handles. 
 Returns Promise<OriginalTopologyHandle[]>Promise<Array<OriginalTopologyHandle|undefined>> - A list of the corresponding original topology handles. 
- 
map
- mapOriginal To Internal Topology Handles(nodeID, handles): Promise<TopologyHandle[]> 
- 
Maps the given original topology handles to webvis internal topology handles. Parameters- 
nodeID: numberThe Node which specifies the Part the topology relates to. 
- 
handles: OriginalTopologyHandle[]A list of original topology handles. 
 Returns Promise<TopologyHandle[]>Promise<Array<TopologyHandle|undefined>> - A list of the corresponding webvis internal topology handles. 
- 
remove
- removeTopology From Selection(handle): Promise<void> 
- 
Removes one or multiple Topology elements to the current selection. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or a list of Topology Elements which should be removed from the current selection. 
 Returns Promise<void>
- 
request
- requestTopology Descriptor(handle): Promise<TopologyDescriptor> 
- 
Returns a detailed description of the Topology Element. Parameters- 
handle: TopologyHandleThe Topology Element. 
 Returns Promise<TopologyDescriptor>The detailed description of the Topological Element. 
- 
set
- setTopology Property<T>(handle, property, value): Promise<PromiseSettledResult<void>[]> 
- 
Sets a Property of one or multiple Topology Elements. Type Parameters- 
T extends keyof TopologyPropertyTypeMap
 Parameters- 
handle: TopologyHandle | TopologyHandle[]
- 
property: TThe property which should be set. 
- 
value: TopologyPropertyTypeMap[T]
 Returns Promise<PromiseSettledResult<void>[]>
- 
set
- setTopology Selection(handle): Promise<void> 
- 
Selects the specified Topology Elements. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or a list of Topology Elements to select. 
 Returns Promise<void>
- 
The TopologyAPI provides multiple functionalities to operate on the Topology level of a Part.