乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
楼主: andy_lee

[编程交流] lisp需要一些修改。

[复制链接]

27

主题

146

帖子

119

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
137
发表于 2022-7-5 23:11:18 | 显示全部楼层
回复

使用道具 举报

27

主题

146

帖子

119

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
137
发表于 2022-7-5 23:14:36 | 显示全部楼层
Hi ! hanhphuc, now is ok! Thank you very much!
回复

使用道具 举报

27

主题

146

帖子

119

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
137
发表于 2022-7-5 23:18:46 | 显示全部楼层
 
Hi hanhphuc,
Use a period of time, not very convenient.  Enter --"O"  Choose "A" &"B" ,It is easy to go wrong.
Can use the DCL? like this:
233937st8ccccuc28r2c3p.png
 
I have already made SLD files:
SLD.zip
回复

使用道具 举报

5

主题

956

帖子

963

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-5 23:22:46 | 显示全部楼层
 
 
actually you don't need to enter "options" every time for "A or B", the "option" value you enter will be set as default for the next typical sessions, so you just pick point without "options" anymore..
  1. Pick Point or [Options]  ?
in red are default value
same as dcl, you only call it when you need to change its settings, not every time run it pops up then not user friendly
回复

使用道具 举报

27

主题

146

帖子

119

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
137
发表于 2022-7-5 23:26:08 | 显示全部楼层
 
Yes, not every time run it pops up then not user friendly, but Dcl more intuitive.
回复

使用道具 举报

5

主题

956

帖子

963

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-5 23:28:37 | 显示全部楼层
 
 

[code]http://www.cadtutor.net/forum/showthread.php?87818-A-lisp-need-some-modify./page2 (if (null *fb_user*)   (setq *fb_user* (mapcar 'itoa '(1 0 1 0)))   ) ;_ end of if(defun fbdia (/ radio dcl_id path dcl) (setq        radio '("radio1" "radio2" "radioA" "radioB" )path  (getenv "temp"))  ('((f lst /)    (setq f (open f "w"))    (mapcar ''(($) (write-line $ f)) lst)    (close f)    (setq f nil)    )   (setq dcl (strcat path "\\tmp.dcl"))   '("icon_fbox_img : image {"     "        color                   = 0;"     "        width                   = 40;"     "        aspect_ratio            = 0.75;"     "        allow_accept            = true;"     "        fixed_height            = true;"     "        fixed_width             = true;"     "}"     ""     ""     "fbox: dialog {"     "\tlabel=\"Fillet Box settings\";"     "        key = \"dcl_title\";"     ""     ": paragraph{"     "        : text_part{"     "\tlabel =\"Choose options \";"     "\t//alignment = centered;"     "}"     "  }      "     "        :column {"     "                :row { "     "                    :column {"         "                      :icon_fbox_img {key = \"SH-CENTRE\";}"     "                    }"     "                    :column {             "          "                      :icon_fbox_img {key = \"SH-EDGE\";}"     "                    }"     "                 }"     "}"     " :column{fixed_width=true;//alignment=centered;"     " :boxed_radio_row{label=\"Draw method\";"     "\t:radio_button{label=\"Pick centre                                         \";key=\"[color="red"]radio1\";}//value=\"0\";"     "        :radio_button{label=\"Pick side                                       \";key=\"[color="red"]radio2\";}//value=\"1\""     "}"     "}"     "           :column {"     "                 :row { "     "                    :column {"          "                      :icon_fbox_img {key = \"SH-P2P\";}"     "                    } "     "                    :column {"          "                      :icon_fbox_img {key = \"SH-C2C\";}"     "                    }"     "                 } "     "        }"     "        "     "        spacer_1;"     " :column{fixed_width=true;//alignment=centered;"     " :boxed_radio_row{label=\"Mode\";"     "           :radio_button{label=\"A:Edge to Edge                                 \";key=\"[color="red"]radioA\";}//value=\"0\""     "           :radio_button{label=\"B:Radii to radii                               \";key=\"[color="red"]radioB\";}//value=\"1\";"     "           }"     "}"     "        :column{fixed_width=true;alignment=centered;"     "        : paragraph{"     "        : text_part{"     "\tlabel =\"Fillet box : hanhphuc 2014\";"     "\talignment = centered;"     "}"     "  }      "     "        :row {"     " \t  spacer_0;"     "           ok_cancel;"     "        }"     "}"     "}"     )   ) (setq dcl_id (load_dialog dcl)) (new_dialog "fbox" dcl_id) (mapcar ''((a)     ('((i sld)        (setq x (dimx_tile i))        (setq y (dimy_tile i))        (start_image i)        (fill_image 0 0 x y -2)        (slide_image 0 0 x y sld)        (end_image)        )      a      (strcat [color="red"]path "\\" a) ;
回复

使用道具 举报

5

主题

956

帖子

963

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-5 23:36:15 | 显示全部楼层
radio is key name, not sld name. you just need changing the path! never change the slide name!!
回复

使用道具 举报

5

主题

956

帖子

963

银币

初来乍到

Rank: 1

铜币
35
发表于 2022-7-5 23:38:08 | 显示全部楼层
the slide must be put in support folder, or create it. or try to put in short name path, ie: "C:\\LISP\\"
回复

使用道具 举报

27

主题

146

帖子

119

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
137
发表于 2022-7-5 23:41:18 | 显示全部楼层
 
Thank you ,my friend ,
 
I put sld file and lisp in support folder, the same folder , How to modify the path?
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-11 06:11 , Processed in 0.817606 second(s), 70 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表