This website requires JavaScript.

查询模块
更新时间:2024-12-12 17:32
47830
0
文档错误过时,
我要反馈

函数

gkl_json script_get_steps (const gkl_json &param, gkl_string &errorStr) 获取job的所有step 名字数组 更多...

 gkl_json script_get_layers (const gkl_json &param, gkl_string &errorStr) 获取层数组 更多...

 gkl_json script_profile_boundbox (const gkl_json &param, gkl_string &errorStr) 获取profile size 更多...

 gkl_json script_repeats_boundbox (const gkl_json &param, gkl_string &errorStr) 获取所有repeat 的边界矩形 更多...

 gkl_json script_step_boundbox (const gkl_json &param, gkl_string &errorStr) 获取step boundbox,boundbox 不包含profile的尺寸, boundbox 只含有 feature和repeat 更多...

 gkl_json script_layer_boundbox (const gkl_json &params, gkl_string &errorString) 层边界范围 更多...

 gkl_json script_selection_boundbox (const gkl_json &param, gkl_string &errorStr) 获取所有选中图形的边界矩形 更多...

 gkl_json script_get_selection (const gkl_json &param, gkl_string &errorStr) 获取所有选中的feature handle 更多...

 gkl_json script_get_selection_count (const gkl_json &param, gkl_string &errorStr) 获取所有选中的feature的数目 更多...

 gkl_json script_layer_features (const gkl_json &params, gkl_string &errorString) 获取层所有feature id集合 更多...

 gkl_json script_layer_symbols (const gkl_json &params, gkl_string &errorString) 获取层中symbol表 更多...

 gkl_json script_layer_tools (const gkl_json &params, gkl_string &errorString) 获取层的刀具表,道具表获取的单位只返回mm单位,不支持英制单位返回 更多...

 gkl_json script_layer_update_tools (const gkl_json &params, gkl_string &errorString) 更新刀具表 更多...

 gkl_json script_layer_features_count (const gkl_json &params, gkl_string &errorString) 获取层所有feature id集合 更多...

 gkl_json script_feature_descript (const gkl_json &param, gkl_string &errorString) 获取层所有feature id集合 更多...

 gkl_json script_layer_area (const gkl_json &param, gkl_string &errorString) 获取铜面积 更多...

 gkl_json script_layer_expose_area (const gkl_json &param, gkl_string &errorString) 获取expose面积 更多...

 详细描述

函数说明

◆ script_feature_descript()

gkl_json script_feature_descript(const gkl_json & param,gkl_string & errorString )

获取层所有feature id集合

参见

script_feature_descript()

参数

[in]jsonid信息

    {    "class":12,    "insid":1203    }

返回

string "tl,id:289,#4,pad,x=5.05146,y=0.47244,angle=0,x_mirr=false,y_mirr=false,dcode:11,r41.339,POS"

◆ script_get_layers()

gkl_json script_get_layers(const gkl_json & param,gkl_string & errorStr )

获取层数组

参见

script_get_layers()

参数

[in]无参

返回

数组对象

    [        {            "context" : "board",            --板属性           board-板 misc-杂层            "layername" : "tp",             --层名            "polarity" : true,              --层极性           true正性 false 负性            "start" : "",                   --机械层 起始层名            "end" : "",                     --机械层 终止层名            "order":2,                      --层排序序号            "layertype" : "solder_paste"    --层类型           signal-线路                                                                power_ground-电源(线路)                                                                mixed-混合层                                                                solder_mask-阻焊                                                                silk_screen-丝印                                                                solder_paste-贴片                                                                drill-钻孔                                                                rout-锣带                                                                document-文档                                                                component-元器件                                                                mask-掩膜层                                                                cond_paste-钢网层                                                                coverlay- 覆盖膜层                                                                covercoat-覆膜层                                                                drawing-标注层        },        {            "context" : "board",            "end" : "",            "layername" : "to",            "polarity" : true,            "start" : "",            "order":1,                      --层排序序号            "layertype" : "silk_screen"        }    ]

◆ script_get_selection()

gkl_json script_get_selection(const gkl_json & param,gkl_string & errorStr )

获取所有选中的feature handle

参见

script_get_selection()

参数

[in]string"E:\\test_unit\\info.txt" --— 将数据写入的目标文件,文件路径为空或者文件路径不合法,则直接用网络方式返回

返回

array --— 文件路径为空返回 数据信息,有效路径则返回空

    [        {            "class":12,            "insid":1203,            "tl,id:289,#4,pad,x=5.05146,y=0.47244,angle=0,x_mirr=false,y_mirr=false,dcode:11,r41.339,POS"        },        {            "class":15,            "insid":3256,            "tl,id:289,#4,pad,x=5.05146,y=0.47244,angle=0,x_mirr=false,y_mirr=false,dcode:11,r41.339,POS"        }    ]

◆ script_get_selection_count()

gkl_json script_get_selection_count(const gkl_json & param,gkl_string & errorStr )

获取所有选中的feature的数目

参见

script_get_selection_count()

返回

int –返回选中元素数目

◆ script_get_steps()

gkl_json script_get_steps(const gkl_json & param,gkl_string & errorStr )

获取job的所有step 名字数组

参见

script_get_steps()

参数

[in]无参

返回

["org","edit","set"] json字符串数组

◆ script_layer_area()

gkl_json script_layer_area(const gkl_json & param,gkl_string & errorString )

获取铜面积

参见

script_layer_area()

参数

[in]jsonid信息

    {    "step":"edit",              ---step名字    "layer":"tl",               ---层名字    "affectNC":true,                ---NC 钻孔层是否影响    "affectName":"drl",         ---机械层    "thinkness":0.0             ---板厚    }

返回

    {         "area": 501.32         ---单位为inch时,返回平方inch,单位为mm时,返回平方mm         "factor":0.21          ---返回比率    }

◆ script_layer_boundbox()

gkl_json script_layer_boundbox(const gkl_json & params,gkl_string & errorString )

层边界范围

参见

script_layer_boundbox()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"tl"        //层名字    }

返回

返回 step下 层名为tl的边界矩形

    {        "left":0.2,             //单位随当前系统的单位设置        "right":1.23,        "bottom":0.3,        "top":2.0    }

◆ script_layer_expose_area()

gkl_json script_layer_expose_area(const gkl_json & param,gkl_string & errorString )

获取expose面积

参见

script_layer_expose_area()

参数

[in]jsonid信息

    {    "step":"edit",              ---step名字    "layer":"tl",                   ---层名字    "mask":"ts",                    ---掩码层    "affectNC":true,                ---NC 钻孔层是否影响    "affectName":"drl",         ---机械层    "thinkness":0.0             ---板厚    }

返回

    {         "area": 501.32         ---单位为inch时,返回平方inch,单位为mm时,返回平方mm         "factor":0.21          ---返回比率    }

◆ script_layer_features()

gkl_json script_layer_features(const gkl_json & params,gkl_string & errorString )

获取层所有feature id集合

参见

script_layer_features()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"tl",       //层名字        "filepath":"E:\\test_unit\\info.txt"   ----- 将数据写入的目标文件,文件路径为空或者文件路径不合法,则直接用网络方式返回    }

返回

array --— 文件路径为空返回 数据信息,有效路径则返回空

    [        {            "class":12,            "insid":1203,            "feature":"tl,id:289,#4,pad,x=5.05146,y=0.47244,angle=0,x_mirr=false,y_mirr=false,dcode:11,r41.339,POS"        },        {            "class":15,            "insid":3256,            "feature":"tl,id:289,#4,pad,x=5.05146,y=0.47244,angle=0,x_mirr=false,y_mirr=false,dcode:11,r41.339,POS"        }    ]

◆ script_layer_features_count()

gkl_json script_layer_features_count(const gkl_json & params,gkl_string & errorString )

获取层所有feature id集合

参见

script_layer_features()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"tl",       //层名字    }

返回

int --— 返回feature数目

◆ script_layer_symbols()

gkl_json script_layer_symbols(const gkl_json & params,gkl_string & errorString )

获取层中symbol表

参见

script_layer_symbols()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"tl",       //层名字        "filepath":"E:\\test_unit\\info.txt"   ----- 将数据写入的目标文件,文件路径为空或者文件路径不合法,则直接用网络方式返回    }

返回

array --— 文件路径为空返回 数据信息,有效路径则返回空

    [        {            "class":12,            "insid":1203,            "descript":"r100"        },        {            "class":15,            "insid":3256,            "descript":"rect1300x500"        }    ]

◆ script_layer_tools()

gkl_json script_layer_tools(const gkl_json & params,gkl_string & errorString )

获取层的刀具表,道具表获取的单位只返回mm单位,不支持英制单位返回

参见

script_layer_tools()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"drl",      //层名字        "filepath":"E:\\test_unit\\info.txt"   ----- 将数据写入的目标文件,文件路径为空或者文件路径不合法,则直接用网络方式返回    }

返回

array --— 文件路径为空返回 数据信息,有效路径则返回空

    [       {          "id" : 15,                                        ----刀数据库id   不可修改          "toolnumber_src" : 2,                             ----刀号,获取的原始刀号  不可修改          "toolnumber" : 2,                                 ----修改后的刀号  可修改          "toolname" : "T02",                               ----刀名          "drilltype" : "plated",                           ----刀类型 plated 通孔 nonplated非通孔 via孔  laser激光孔          "holetype" : "孔",                             ----刀成型类型 孔,槽,锣          "finishsize" : "0.7112",                          ----完成孔径 单位都是mm          "drillsize" : 0.84999999999999998,                ----钻孔孔径 单位都是mm          "ptol" : 0.0,                                     ----正公差 单位都是mm          "ntol" : 0.0,                                     ----负公差 单位都是mm          "slot" : "",                                      ----槽长或者锣长 单位都是mm          "count" : 48,                                     ----钻孔数量            "remark" : ""                                     ----刀表标识,用户自定义标识,备注       }    ]

◆ script_layer_update_tools()

gkl_json script_layer_update_tools(const gkl_json & params,gkl_string & errorString )

更新刀具表

参见

script_layer_tools()

参数

[in]json对象

    {        "stepname":"edit",      //step名字        "layername":"drl",      //层名字        "tools":        [            {                  "id" : 15,                                        ----刀数据库id   不可修改                  "toolnumber_src" : 2,                             ----刀号,获取的原始刀号  不可修改                  "toolnumber" : 2,                                 ----修改后的刀号  可修改                  "toolname" : "T02",                               ----刀名                  "drilltype" : "plated",                           ----刀类型 plated 通孔 nonplated非通孔 via孔  laser激光孔                  "holetype" : "孔",                             ----刀成型类型 孔,槽,锣                  "finishsize" : "0.7112",                          ----完成孔径 单位都是mm                  "drillsize" : 0.84999999999999998,                ----钻孔孔径 单位都是mm                  "ptol" : 0.0,                                     ----正公差 单位都是mm                  "ntol" : 0.0,                                     ----负公差 单位都是mm                  "slot" : "",                                      ----槽长或者锣长 单位都是mm,字符串为浮点数字                  "count" : 48,                                     ----钻孔数量                  "remark" : ""                                     ----刀表标识,用户自定义标识,备注            }        ]

◆ script_profile_boundbox()

gkl_json script_profile_boundbox(const gkl_json & param,gkl_string & errorStr )

获取profile size

参见

script_profile_boundbox()

参数

[in]string"edit" step名字

返回

gkl_json //返回profile的边界矩形信息

    {        "left":0.0,        "right";1.12,        "bottom":0,        "top":0.52    }

◆ script_repeats_boundbox()

gkl_json script_repeats_boundbox(const gkl_json & param,gkl_string & errorStr )

获取所有repeat 的边界矩形

参见

script_repeats_boundbox()

参数

[in]string"edit" step名字

返回

gkl_json //返回profile的边界矩形信息

    {        "left":0,        "right";1.12,        "bottom":0,        "top":0.52    }

◆ script_selection_boundbox()

gkl_json script_selection_boundbox(const gkl_json & param,gkl_string & errorStr )

获取所有选中图形的边界矩形

参见

script_selection_boundbox()

返回

json

    {        "left":0.2,             //单位随当前系统的单位设置        "right":1.23,        "bottom":0.3,        "top":2.0    }

◆ script_step_boundbox()

gkl_json script_step_boundbox(const gkl_json & param,gkl_string & errorStr )

获取step boundbox,boundbox 不包含profile的尺寸, boundbox 只含有 feature和repeat

参见

script_step_boundbox()

参数

[in]string"edit" step名字

返回

gkl_json //返回profile的边界矩形信息

    {        "left":0,        "right";1.12,        "bottom":0,        "top":0.52    }
互动评论 0
注意:此留言仅作为嘉立创与客户日常交流之用,回复不是很及时,急切问题请联系我司工作人员处理!
登录注册 后才可以留言哦!
  • PCB帮助文档
  • SMT帮助文档
  • 钢网帮助文档
  • PCB讨论
  • SMT讨论
  • 钢网讨论