更新内容:

1.文件操作功能: 读写CAD文件,支持的文件格式dwg、dxf、dwf

2.增加导出pdf功能

3.增加图纸浏览: 视区放大、缩小,ZoomW、(一键适应全屏)功能,和相关函数

4. 增参数化绘图: 绘直线、圆、圆弧、PL线、、文字,点,块函数,绘制标记

5. 增加构造选择集,,遍历数据库,读写扩展数据,扩展记录,夹点显示,框选和多选,夹点功能,相关接口和函数,取所有图层,取图纸最小外函数,与用户单选对象函数,图上取点类

6. 增加打开图纸完成,初始化完成,对象选择,鼠标移动等事件,相关接口

7. 增加回退

8.MxFunction主要函数:

  • public static native void setShowFileBrowse(boolean iShow);
    public static native void setShowUpToolBar(boolean iShow);
    public static native void setShowDownToolBar(boolean iShow);
    public static native void setShowReturnButton(boolean iShow);
    public static native void enableSelect(boolean isEnable);
    public static native void openFile(String sFile);
    public static native void openFileEx(String sFile,int iRC);
    public static native boolean writeFile(String sFile);
    public static native void doCommand(int iCommand);
    public static native  void doThreadCommand(int iCommand);
    public static native void setToolFile(String sFile);
    public static native void setMenuFile(String sFile);
    public static native  void setLanguage(String sLanguage);
    public static native  void zoomAll();
    public static native  void initWorkDir(String sDir);
    public static native  String getWorkDir();
    public static native  void sendStringToExecute(String sCmd);
    public static native int zoomW( double dLBx, double dLBy, double dRTx, double dRTy);
    public static native int  zoomCenter( double dCenterX, double dCenterY);
    public static native int  zoomScale( double dScale);
    public static native double[]  viewToDoc( double dVx, double dVy );
    public static native double[]  docToView( double dDx, double dDy );
    public static native void  deleteObject( long lId);
    public static native  long findEntAtPoint(double dX,double dY,String sType);
    public static native  boolean setxDataString(long lId,String sDataName,String sVal);
    public static native  String   getxDataString(long lId,String sDataName);
    public static native   long  drawImageMark(String imageFile, double dDx, double dDy, double dScale);
    public static native   long  drawImage(String imageFile, double dDx, double dDy, double dScale);
    public static native   long  drawImage2(String imageFile, double dDx1, double dDy1, double dDx2, double dDy2);
    public static native  String   getTypeName(long lId);
    public static native  void    setViewColor(int iR, int iG, int iB);
    public static native void     enableUndo();
    public static native  void    initMxDraw(boolean is,String s1,String s2,String s3,String s4);
    public static native  String   getPreviewFile(String sFile);
    public  static native long[]  getAllLayer();
    public  static native double[] calcArc(double dX1, double dY1, double dX2, double dY2, double dBulge);
    public  static native double[] getMcDbDatabaseBound();

9.新增加的类

  • McDbArc,McDbCircle,McDbCrve,McDbEntity,McDbLayerTableRecord,McDbLine,McDbMText,McDbObject,McDbPoint,McDbPolyline,McDbText,McDbDbgSelset,McDbDbgUiPrPoint,McDbgUtils

android版控件2018.1.12最新更新_android