Skip to content
On this page

[mxcad_2d API documentation] (../README. md)/[2d] (../modules/2d. md)/MxCADUI

Interface: MxCADUI

2d.MxCADUI

The MxCADUI module provides interfaces for plugin programs to use

Table of contents

Properties

Properties

getServerConfig

getServerConfig: () => any

Type declaration

▸ (): any

Get the mxServerConfig. json file configuration

Returns

any


getUploadFileConfig

getUploadFileConfig: () => { baseUrl: string ; cutDwgUrl: string ; mxfilepath: string ; printPdfUrl: string ; saveDwgUrl: string ; saveUrl: string }

Type declaration

▸ (): Object

Get file download configuration

Returns

Object

NameType
baseUrlstring
cutDwgUrlstring
mxfilepathstring
printPdfUrlstring
saveDwgUrlstring
saveUrlstring

init

init: (plugin: MxCADPluginBase) => void

Type declaration

▸ (plugin): void

initialization

Parameters
NameTypeDescription
Plugin[MxCADPluginBase] (../classes/2d. MxCADPluginBase. md)Basic Configuration
Returns

void


mxcad

mxcad: McObject

MXCAD object


mxmap

mxmap: MxMap

Mxmap object


uploadFile

uploadFile: (uploadFile_call: (param: any) => void, isReloadFile: boolean) => void

Type declaration

▸ (uploadFile_call, isReloadFile): void

Upload a file, format it, and use it for subsequent processing.

Parameters
NameType
uploadFile_call(param: any) => void
isReloadFileboolean
Returns

void