本帖最后由 lee50310 于 2024-1-31 11:56 编辑
來源出處: http://www.theswamp.org/index.php?topic=42413.0
來源出處下載之程式 無法正常執行(需自行修正)
;-------------------------------------------------
在此處下載可正常執行
部份程式碼:
- (and
- (setq tmp (vl-filename-mktemp nil nil ".dcl"))
- (setq des (open tmp "w"))
- (foreach line
- '(
- "blockpreview : dialog"
- "{"
- " label = "图块预览";"
- " spacer;"
- " : column"
- " {"
- " : row"
- " {"
- " : list_box { key = "lst"; width = 30.0; fixed_width = true; }"
- " spacer;"
- " : image"
- " {"
- " key = "img";"
- " width = 33.5;"
- " aspect_ratio = 1.0;"
- " fixed_width = true;"
- " fixed_height = true;"
- " }"
- " }"
- " :boxed_column {"
- " : edit_box {"
- " label="图块名称:";"
- " mnemonic ="B";"
- " key = "blk_name";"
- " edit_width=6;"
- " }"
- " : edit_box {"
- " label="X 比例:";"
- " mnemonic ="X";"
- " key = "x_sca";"
- " edit_width=6;"
- " }"
- " : edit_box {"
- " label="Y 比例:";"
- " mnemonic ="Y";"
- " key = "y_sca";"
- " edit_width=6;"
- " }"
- " : edit_box {"
- " label="Z 比例:";"
- " mnemonic ="Z";"
- " key = "z_sca";"
- " edit_width=6;"
- " }"
- " : edit_box {"
- " label="旋转角度:";"
- " mnemonic ="R";"
- " key = "r_angle";"
- " edit_width=6;"
- " }"
- " } //end boxed_column"
- " }"
- " spacer;"
- " ok_only;"
- "}"
- )
- (write-line line des)
- )
- (not (setq des (close des)))
- (< 0 (setq dcl (load_dialog tmp)))
- (new_dialog "blockpreview" dcl)
-
- )
源碼功能與圖二相同可預覽可插入圖塊功能尚未達到的部份: 1.帶有文字的圖塊 ,文字無法被預覽 , 2.帶有剖面線圖塊,剖面線無法被預覽
其他功能皆正常,功能未達到的部份可自行研究
|