找回密码
 注册
关于网站域名变更的通知
查看: 568|回复: 5
打印 上一主题 下一主题

新手求解惑 axlGRPDrwRectangle参数问题

[复制链接]
  • TA的每日心情
    开心
    2021-9-16 15:41
  • 签到天数: 1 天

    [LV.1]初来乍到

    跳转到指定楼层
    1#
    发表于 2021-9-26 19:37 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    本帖最后由 mycoal 于 2021-9-27 16:23 编辑

    各位路过的大神,请问一下这个画矩形的函数,后面的这个坐标参数这么写有问题吗?还有就是前面的参数handle到底该写啥?看了帮助文件知道是定义图形类型为矩形的,但是到底该写什么呢?
    axlCmdRegister("hello",'hello)
    defun( hello ()

    axlGRPDrwRectangle(handle '(-1000 1000) '(1000 1000)))

    )

    ————————————————————————
    我想实现的功能是在一个圆内,从中心点开始以一定间距拼矩形,初始的矩形是有的,其实最方便的是复制,不过为了后面判断矩形是否在圆内,所以想采用两点的方法来画矩形。现在是画第一个矩形,skill用过没接触过怎么写,见笑~


    该用户从未签到

    2#
    发表于 2021-9-27 15:13 | 只看该作者
    https://www.eda365.com/forum.php?mod=viewthread&tid=532053
    你参考一下

    点评

    这个帖子有看到,里面列了很多专有的函数,axlGRPDrwRectangle也在列不过没有注释。[/backcolor]  详情 回复 发表于 2021-9-27 16:19
  • TA的每日心情
    开心
    2021-9-16 15:41
  • 签到天数: 1 天

    [LV.1]初来乍到

    3#
     楼主| 发表于 2021-9-27 16:19 | 只看该作者
    pchmiao 发表于 2021-9-27 15:13
    https://www.eda365.com/forum.php?mod=viewthread&tid=532053
    你参考一下

    这个帖子有看到,里面列了很多专有的函数,axlGRPDrwRectangle也在列不过没有注释。
  • TA的每日心情
    开心
    2022-5-6 15:29
  • 签到天数: 34 天

    [LV.5]常住居民I

    4#
    发表于 2021-9-29 10:36 | 只看该作者
    你需要的函数是
    axlDBCreateRectangle()

    axlDBCreateRectangle(
    l_bBox
    [g_fill]
    [t_layer]
    [t_netname]
    [o_parent]
    )
    ⇒ l_result/nil

    Arguments
    l_bBox Bounding box of the rectangle: Lower left and upper right corners
    of rectangle
    g_fill If t then the fill is solid. If nil (default) then the rectangle is
    unfilled.
    t_layer Layer to which to add the rectangle. Default is the active layer.
    t_netname Name of net to which the rectangle is to belong. This argument
    is meaningful only if the rectangle is being added on an Etch
    layer.

    o_parent dbid of object of which the rectangle is to be a part. Use either
    the dbid of a symbol instance or use nil to specify the design
    itself.

  • TA的每日心情
    开心
    2022-5-6 15:29
  • 签到天数: 34 天

    [LV.5]常住居民I

    5#
    发表于 2021-9-29 10:55 | 只看该作者
    axlGRPDrwRectangle   需要   axlGRPDrwInit   初始化

    axlGRPDrwInit
    axlGRPDrwInit(
    r_form
    t_field
    t_func
    )
    ⇒ r_graphics/nil

    Description
    Sets up necessary data structures for triggering the graphics callback into the graphics field.
    Arguments
    r_form Handle of the form.
    t_field Name of field into which the package should draw. (Only
    THUMBNAIL fields are supported.)
    t_func Name of the drawing callback function. Callback function is
    invoked with the graphics handle as the parameter.
    Value Returned
    r_graphics Graphics package handle.
    nil Failed to set up necessary data structures for triggering the
    graphics callback due to invalid arguments.

    点评

    就是要先运行 axlGRPDrwInit来得到r_graphics这个参数的意思吗?谢谢!没人指教一下,这些浅显的东西看资料也很难看明白我再去研究一下axlGRPDrwInit这个函数。  详情 回复 发表于 2021-9-30 13:14
  • TA的每日心情
    开心
    2021-9-16 15:41
  • 签到天数: 1 天

    [LV.1]初来乍到

    6#
     楼主| 发表于 2021-9-30 13:14 | 只看该作者
    leilei4908 发表于 2021-9-29 10:55
    axlGRPDrwRectangle   需要   axlGRPDrwInit   初始化

    axlGRPDrwInit

    就是要先运行 axlGRPDrwInit来得到r_graphics这个参数的意思吗?谢谢!没人指教一下,这些浅显的东西看资料也很难看明白我再去研究一下axlGRPDrwInit这个函数。
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-6-3 23:06 , Processed in 0.093750 second(s), 24 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

    快速回复 返回顶部 返回列表