mxcad API 文档 / 3d / MdGeDocShapeTool
Class: MdGeDocShapeTool
3d.MdGeDocShapeTool
所有类的父类, 除去MdGeTopo以及MdGeBrep
Hierarchy
↳
MdGeDocShapeTool
Table of contents
Constructors
Properties
Methods
- AddComponent
- AddShape
- AddSubShape
- AutoNaming
- BaseLabel
- ComputeShapes
- ComputeSimpleShapes
- Expand
- FindComponent
- FindMainShape
- FindMainShapeUsingMap
- FindShape
- FindSubShape
- GetComponents
- GetFreeShapes
- GetLocation
- GetReferredShape
- GetShape
- GetShapes
- GetSubShapes
- Init
- IsAssembly
- IsComponent
- IsCompound
- IsFree
- IsReference
- IsShape
- IsSimpleShape
- IsSubShape
- IsTopLevel
- NbComponents
- NewShape
- RemoveComponent
- RemoveShape
- Search
- SetAutoNaming
- SetLocation
- SetShape
- UpdateAssemblies
- getImp
- initTempObject
Constructors
constructor
• new MdGeDocShapeTool(p
)
Parameters
Name | Type |
---|---|
p | object | MdGeLabel |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
AddComponent
▸ AddComponent(assembly
, comp
, Loc
): MdGeLabel
Parameters
Name | Type |
---|---|
assembly | MdGeLabel |
comp | MdGeLabel |
Loc | MdGeLocation |
Returns
AddShape
▸ AddShape(S
, makeAssembly
, makePrepare
): MdGeLabel
Parameters
Name | Type |
---|---|
S | MdGeShape |
makeAssembly | boolean |
makePrepare | boolean |
Returns
AddSubShape
▸ AddSubShape(shapeL
, sub
): MdGeLabel
Parameters
Name | Type |
---|---|
shapeL | MdGeLabel |
sub | MdGeShape |
Returns
AutoNaming
▸ AutoNaming(): boolean
Returns
boolean
BaseLabel
▸ BaseLabel(): MdGeLabel
Returns
ComputeShapes
▸ ComputeShapes(L
): void
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
void
ComputeSimpleShapes
▸ ComputeSimpleShapes(): void
Returns
void
Expand
▸ Expand(Shape
): boolean
Parameters
Name | Type |
---|---|
Shape | MdGeLabel |
Returns
boolean
FindComponent
▸ FindComponent(theShape
): MdGeLabelSequence
Parameters
Name | Type |
---|---|
theShape | MdGeShape |
Returns
FindMainShape
▸ FindMainShape(sub
): MdGeLabel
Parameters
Name | Type |
---|---|
sub | MdGeShape |
Returns
FindMainShapeUsingMap
▸ FindMainShapeUsingMap(sub
): MdGeLabel
Parameters
Name | Type |
---|---|
sub | MdGeShape |
Returns
FindShape
▸ FindShape(S
, findInstance
): MdGeLabel
Parameters
Name | Type |
---|---|
S | MdGeShape |
findInstance | boolean |
Returns
FindSubShape
▸ FindSubShape(shapeL
, sub
): MdGeLabel
Parameters
Name | Type |
---|---|
shapeL | MdGeLabel |
sub | MdGeShape |
Returns
GetComponents
▸ GetComponents(L
, getsubchilds
): MdGeLabelSequence
Parameters
Name | Type |
---|---|
L | MdGeLabel |
getsubchilds | boolean |
Returns
GetFreeShapes
▸ GetFreeShapes(): MdGeLabelSequence
Returns
GetLocation
▸ GetLocation(L
): MdGeLocation
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
GetReferredShape
▸ GetReferredShape(L
): MdGeLabel
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
GetShape
▸ GetShape(L
): MdGeShape
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
GetShapes
▸ GetShapes(): MdGeLabelSequence
Returns
GetSubShapes
▸ GetSubShapes(L
): MdGeLabelSequence
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
Init
▸ Init(): void
Returns
void
IsAssembly
▸ IsAssembly(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsComponent
▸ IsComponent(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsCompound
▸ IsCompound(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsFree
▸ IsFree(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsReference
▸ IsReference(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsShape
▸ IsShape(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsSimpleShape
▸ IsSimpleShape(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
IsSubShape
▸ IsSubShape(shapeL
, sub?
): boolean
Parameters
Name | Type |
---|---|
shapeL | MdGeLabel |
sub? | MdGeShape |
Returns
boolean
IsTopLevel
▸ IsTopLevel(L
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
Returns
boolean
NbComponents
▸ NbComponents(L
, getsubchilds
): number
Parameters
Name | Type |
---|---|
L | MdGeLabel |
getsubchilds | boolean |
Returns
number
NewShape
▸ NewShape(): MdGeLabel
Returns
RemoveComponent
▸ RemoveComponent(comp
): void
Parameters
Name | Type |
---|---|
comp | MdGeLabel |
Returns
void
RemoveShape
▸ RemoveShape(L
, removeCompletely
): boolean
Parameters
Name | Type |
---|---|
L | MdGeLabel |
removeCompletely | boolean |
Returns
boolean
Search
▸ Search(S
, findInstance
, findComponent
, findSubshape
): MdGeLabel
Parameters
Name | Type |
---|---|
S | MdGeShape |
findInstance | boolean |
findComponent | boolean |
findSubshape | boolean |
Returns
SetAutoNaming
▸ SetAutoNaming(V
): void
Parameters
Name | Type |
---|---|
V | boolean |
Returns
void
SetLocation
▸ SetLocation(theShapeLabel
, theLoc
): MdGeLabel
Parameters
Name | Type |
---|---|
theShapeLabel | MdGeLabel |
theLoc | MdGeLocation |
Returns
SetShape
▸ SetShape(L
, S
): void
Parameters
Name | Type |
---|---|
L | MdGeLabel |
S | MdGeShape |
Returns
void
UpdateAssemblies
▸ UpdateAssemblies(): void
Returns
void
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void