Skip to content
On this page

mxcad API 文档 / MdGeDocShapeTool

Class: MdGeDocShapeTool

所有类的父类, 除去MdGeTopo以及MdGeBrep

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeDocShapeTool(p)

Parameters

NameType
pobject | MdGeLabel

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

AddComponent

AddComponent(assembly, comp, Loc): MdGeLabel

Parameters

NameType
assemblyMdGeLabel
compMdGeLabel
LocMdGeLocation

Returns

MdGeLabel


AddShape

AddShape(S, makeAssembly, makePrepare): MdGeLabel

Parameters

NameType
SMdGeShape
makeAssemblyboolean
makePrepareboolean

Returns

MdGeLabel


AddSubShape

AddSubShape(shapeL, sub): MdGeLabel

Parameters

NameType
shapeLMdGeLabel
subMdGeShape

Returns

MdGeLabel


AutoNaming

AutoNaming(): boolean

Returns

boolean


BaseLabel

BaseLabel(): MdGeLabel

Returns

MdGeLabel


ComputeShapes

ComputeShapes(L): void

Parameters

NameType
LMdGeLabel

Returns

void


ComputeSimpleShapes

ComputeSimpleShapes(): void

Returns

void


Expand

Expand(Shape): boolean

Parameters

NameType
ShapeMdGeLabel

Returns

boolean


FindComponent

FindComponent(theShape): MdGeLabelSequence

Parameters

NameType
theShapeMdGeShape

Returns

MdGeLabelSequence


FindMainShape

FindMainShape(sub): MdGeLabel

Parameters

NameType
subMdGeShape

Returns

MdGeLabel


FindMainShapeUsingMap

FindMainShapeUsingMap(sub): MdGeLabel

Parameters

NameType
subMdGeShape

Returns

MdGeLabel


FindShape

FindShape(S, findInstance): MdGeLabel

Parameters

NameType
SMdGeShape
findInstanceboolean

Returns

MdGeLabel


FindSubShape

FindSubShape(shapeL, sub): MdGeLabel

Parameters

NameType
shapeLMdGeLabel
subMdGeShape

Returns

MdGeLabel


GetComponents

GetComponents(L, getsubchilds): MdGeLabelSequence

Parameters

NameType
LMdGeLabel
getsubchildsboolean

Returns

MdGeLabelSequence


GetFreeShapes

GetFreeShapes(): MdGeLabelSequence

Returns

MdGeLabelSequence


GetLocation

GetLocation(L): MdGeLocation

Parameters

NameType
LMdGeLabel

Returns

MdGeLocation


GetReferredShape

GetReferredShape(L): MdGeLabel

Parameters

NameType
LMdGeLabel

Returns

MdGeLabel


GetShape

GetShape(L): MdGeShape

Parameters

NameType
LMdGeLabel

Returns

MdGeShape


GetShapes

GetShapes(): MdGeLabelSequence

Returns

MdGeLabelSequence


GetSubShapes

GetSubShapes(L): MdGeLabelSequence

Parameters

NameType
LMdGeLabel

Returns

MdGeLabelSequence


Init

Init(): void

Returns

void


IsAssembly

IsAssembly(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsComponent

IsComponent(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsCompound

IsCompound(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsFree

IsFree(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsReference

IsReference(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsShape

IsShape(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsSimpleShape

IsSimpleShape(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


IsSubShape

IsSubShape(shapeL, sub?): boolean

Parameters

NameType
shapeLMdGeLabel
sub?MdGeShape

Returns

boolean


IsTopLevel

IsTopLevel(L): boolean

Parameters

NameType
LMdGeLabel

Returns

boolean


NbComponents

NbComponents(L, getsubchilds): number

Parameters

NameType
LMdGeLabel
getsubchildsboolean

Returns

number


NewShape

NewShape(): MdGeLabel

Returns

MdGeLabel


RemoveComponent

RemoveComponent(comp): void

Parameters

NameType
compMdGeLabel

Returns

void


RemoveShape

RemoveShape(L, removeCompletely): boolean

Parameters

NameType
LMdGeLabel
removeCompletelyboolean

Returns

boolean


Search(S, findInstance, findComponent, findSubshape): MdGeLabel

Parameters

NameType
SMdGeShape
findInstanceboolean
findComponentboolean
findSubshapeboolean

Returns

MdGeLabel


SetAutoNaming

SetAutoNaming(V): void

Parameters

NameType
Vboolean

Returns

void


SetLocation

SetLocation(theShapeLabel, theLoc): MdGeLabel

Parameters

NameType
theShapeLabelMdGeLabel
theLocMdGeLocation

Returns

MdGeLabel


SetShape

SetShape(L, S): void

Parameters

NameType
LMdGeLabel
SMdGeShape

Returns

void


UpdateAssemblies

UpdateAssemblies(): void

Returns

void


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject