(defun c:tt()
(setvar "CMDECHO" 0)
(command "OPENDCL")
(dcl_project_import
'("YWt6A+IGAACPDOsDBuL76rU0Yj9q+IHgshbXXfI0CCd2ZJw4jkydG1daJwb393d6/S8FnPO6dcYu"
"D+0GfT+pxE7x3jg/7cMaH777cZ59dk+3sPPpsNedMomK8RxrQw3ARNmARAPU1G2gy/mybQX9UELt"
"gGRw/p0C3q5knNQyXftYqt1/C2Y8TdTvOHMiy+wcqdWrWshVnasW6jYphN7yq1anp5CzLOAr0uum"
"cax5Khs+mcbc4Cy76rJiatUnymWqJVl086yTNAhK1+BaXPYV7Kz+OU7w8hrkA9mZ5r5auC51Dfas"
"0lltHMRus3Anb40ngcrj9N6P7ukLpbKzUo8pnFWcV5x9uu6tMhfOoO8mmPqc2fdhRp8CAXqNKxHh"
"hkWPYI9Ul9FtIW6xbplHH8DaBCiix2f4GIB0O7wqe+c4u/RZulYsEp9D8OryosDFb2aBM6EtmK8e"
"WUqtMNQyUbtpbblWgUaHCfw01qBQK5hluxFtEW8RbFHvAF+XiaMNjLg9W/IJtttR6Rk6EKPWigxC"
"66Ef5jus41mAls2osTJu8YcLC7CT84Q6gC+c4mUPFhE6Z3SCQkNNaQY1EopkG52sJYltwVsgWDBt"
"Qdotj0wCVLN804HwmAltEW7RbsHci2yakV+APNmeWY8LLiOzkVErhfEBdBCKAK1TgmmS4LjhX0G6"
"60qBDzAD0oF7kxhlwyFFD3kPVU8BW+Aug5fVH6UBY7eMYA==")
)
(if (dcl-Form-IsActive TREES/Form1)
()
(progn
;(dcl_project_load "C:\\Users\\Administrator\\Desktop\\hanfengbianhao.odcl" T)
(dcl_form_show TREES/Form1)
)
)
(setq lst (list
(list
'("PN系列" "pnstyle")
(list
"pnstyle"
'("PN2.5" "pn2.5")
(list
"pn2.5"
'("1" "1")
(list
"1"
'("1" "11")
(list
"11"
'("1" "111")
'("2" "211")
'("3" "311")
'("4" "411")
'("5" "511")
'("6" "611")
)
'("2" "21")
'("3" "31")
'("4" "41")
'("5" "51")
'("6" "61")
)
'("2" "2")
'("3" "3")
'("4" "4")
(list
"4"
'("1" "14")
'("2" "24")
'("3" "34")
'("4" "44")
'("5" "54")
'("6" "64")
)
'("5" "5")
'("6" "6")
)
'("PN4.0" "pn4.0")
'("PN16" "pn16")
'("PN25" "pn25")
'("PN45" "pn45")
)
)
(list
'("class系列" "classstyle")
(list
"classstyle"
'("class2.5" "class2.5")
(list
"class2.5"
'("class1" "class1")
(list
"class1"
'("class1" "class11")
(list
"class11"
'("class1" "class111")
'("class2" "class211")
'("class3" "class311")
'("class4" "class411")
'("class5" "class511")
'("class6" "class611")
)
'("class2" "class21")
'("class3" "class31")
'("class4" "class41")
'("class5" "class51")
'("class6" "class61")
)
'("class2" "class2")
'("class3" "class3")
'("class4" "class4")
(list
"class4"
'("class1" "class14")
'("class2" "class24")
'("class3" "class34")
'("class4" "class44")
'("class5" "class54")
'("class6" "class64")
)
'("class5" "class5")
'("class6" "class6")
)
'("class4.0" "class4.0")
'("class16" "class16")
'("class25" "class25")
'("class45" "class45")
)
)
)
)
(odcl-add_items lst TREES/Form1/树1)
(princ "\n加载完成!")
(prin1)
)
(defun odcl-add_items(lst TreeControl / addlist lstchild parentkey)
(foreach lstParent lst
(dcl_Tree_AddParent TreeControl (list (car lstParent)))
(setq parentkey (cadar lstParent) lstChild (cadr lstParent))
(defun addlist(lst key / key1 kl x)
(setq lstt (cdr lst))
(foreach x lstt
(if (listp (cadr x))
(progn (setq key1 (car x)) (addlist x key1))
(dcl_Tree_AddChild TreeControl (list (append (list key) x)))
)
)
)
(addlist lstChild parentkey)
)
)
(defun c:tt()
(setvar "CMDECHO" 0)
(command "OPENDCL")
(dcl_project_load "C:\\Users\\Administrator\\Desktop\\flagetools.odcl" T)
;(dcl_project_import
; '
;)
;(loadodcllst)
(if (dcl-Form-IsActive flagetools/MainFrm)
()
(dcl_form_show flagetools/MainFrm)
)
(setq flangelst
(list
(list
'("PN系列(欧洲体系)" "pnstyle")
(list
"pnstyle"
'("<PL> ————— 板式平焊———法兰" "PL_pnfalge")
(list
"PL_pnfalge"
'("PN2.5———DN10" "PL-PN2.5-DN10")
'("PN2.5———DN15" "PL-PN2.5-DN15")
'("PN2.5———DN20" "PL-PN2.5-DN20")
'("PN2.5———DN25" "PL-PN2.5-DN25")
'("PN2.5———DN32" "PL-PN2.5-DN32")
'("PN2.5———DN40" "PL-PN2.5-DN40")
'("PN2.5———DN50" "PL-PN2.5-DN50")
'("PN2.5———DN65" "PL-PN2.5-DN65")
'("PN2.5———DN80" "PL-PN2.5-DN80")
'("PN2.5———DN100" "PL-PN2.5-DN100")
'("PN2.5———DN125" "PL-PN2.5-DN125")
'("PN2.5———DN150" "PL-PN2.5-DN150")
'("PN2.5———DN200" "PL-PN2.5-DN200")
'("PN2.5———DN250" "PL-PN2.5-DN250")
'("PN2.5———DN300" "PL-PN2.5-DN300")
'("PN2.5———DN350" "PL-PN2.5-DN350")
'("PN2.5———DN400" "PL-PN2.5-DN400")
'("PN2.5———DN450" "PL-PN2.5-DN450")
'("PN2.5———DN500" "PL-PN2.5-DN500")
'("PN2.5———DN600" "PL-PN2.5-DN600")
'("PN2.5———DN700" "PL-PN2.5-DN700")
'("PN2.5———DN800" "PL-PN2.5-DN800")
'("PN2.5———DN900" "PL-PN2.5-DN900")
'("PN2.5———DN1000" "PL-PN2.5-DN1000")
'("PN2.5———DN1200" "PL-PN2.5-DN1200")
'("PN2.5———DN1400" "PL-PN2.5-DN1400")
'("PN2.5———DN1600" "PL-PN2.5-DN1600")
'("PN2.5———DN1800" "PL-PN2.5-DN1800")
'("PN2.5———DN2000" "PL-PN2.5-DN2000")
'("PN6.0———DN10" "PL-PN6.0-DN10")
'("PN6.0———DN15" "PL-PN6.0-DN15")
'("PN6.0———DN20" "PL-PN6.0-DN20")
'("PN6.0———DN25" "PL-PN6.0-DN25")
'("PN6.0———DN32" "PL-PN6.0-DN32")
'("PN6.0———DN40" "PL-PN6.0-DN40")
'("PN6.0———DN50" "PL-PN6.0-DN50")
'("PN6.0———DN65" "PL-PN6.0-DN65")
'("PN6.0———DN80" "PL-PN6.0-DN80")
'("PN6.0———DN100" "PL-PN6.0-DN100")
'("PN6.0———DN125" "PL-PN6.0-DN125")
'("PN6.0———DN150" "PL-PN6.0-DN150")
'("PN6.0———DN200" "PL-PN6.0-DN200")
'("PN6.0———DN250" "PL-PN6.0-DN250")
'("PN6.0———DN300" "PL-PN6.0-DN300")
'("PN6.0———DN350" "PL-PN6.0-DN350")
'("PN6.0———DN400" "PL-PN6.0-DN400")
'("PN6.0———DN450" "PL-PN6.0-DN450")
'("PN6.0———DN500" "PL-PN6.0-DN500")
'("PN6.0———DN600" "PL-PN6.0-DN600")
'("PN10.0———DN10" "PL-PN10.0-DN10")
'("PN10.0———DN15" "PL-PN10.0-DN15")
'("PN10.0———DN20" "PL-PN10.0-DN20")
'("PN10.0———DN25" "PL-PN10.0-DN25")
'("PN10.0———DN32" "PL-PN10.0-DN32")
'("PN10.0———DN40" "PL-PN10.0-DN40")
'("PN10.0———DN50" "PL-PN10.0-DN50")
'("PN10.0———DN65" "PL-PN10.0-DN65")
'("PN10.0———DN80" "PL-PN10.0-DN80")
'("PN10.0———DN100" "PL-PN10.0-DN100")
'("PN10.0———DN125" "PL-PN10.0-DN125")
'("PN10.0———DN150" "PL-PN10.0-DN150")
'("PN10.0———DN200" "PL-PN10.0-DN200")
'("PN10.0———DN250" "PL-PN10.0-DN250")
'("PN10.0———DN300" "PL-PN10.0-DN300")
'("PN10.0———DN350" "PL-PN10.0-DN350")
'("PN10.0———DN400" "PL-PN10.0-DN400")
'("PN10.0———DN450" "PL-PN10.0-DN450")
'("PN10.0———DN500" "PL-PN10.0-DN500")
'("PN10.0———DN600" "PL-PN10.0-DN600")
'("PN16.0———DN10" "PL-PN16.0-DN10")
'("PN16.0———DN15" "PL-PN16.0-DN15")
'("PN16.0———DN20" "PL-PN16.0-DN20")
'("PN16.0———DN25" "PL-PN16.0-DN25")
'("PN16.0———DN32" "PL-PN16.0-DN32")
'("PN16.0———DN40" "PL-PN16.0-DN40")
'("PN16.0———DN50" "PL-PN16.0-DN50")
'("PN16.0———DN65" "PL-PN16.0-DN65")
'("PN16.0———DN80" "PL-PN16.0-DN80")
'("PN16.0———DN100" "PL-PN16.0-DN100")
'("PN16.0———DN125" "PL-PN16.0-DN125")
'("PN16.0———DN150" "PL-PN16.0-DN150")
'("PN16.0———DN200" "PL-PN16.0-DN200")
'("PN16.0———DN250" "PL-PN16.0-DN250")
'("PN16.0———DN300" "PL-PN16.0-DN300")
'("PN16.0———DN350" "PL-PN16.0-DN350")
'("PN16.0———DN400" "PL-PN16.0-DN400")
'("PN16.0———DN450" "PL-PN16.0-DN450")
'("PN16.0———DN500" "PL-PN16.0-DN500")
'("PN16.0———DN600" "PL-PN16.0-DN600")
'("PN25.0———DN10" "PL-PN25.0-DN10")
'("PN25.0———DN15" "PL-PN25.0-DN15")
'("PN25.0———DN20" "PL-PN25.0-DN20")
'("PN25.0———DN25" "PL-PN25.0-DN25")
'("PN25.0———DN32" "PL-PN25.0-DN32")
'("PN25.0———DN40" "PL-PN25.0-DN40")
'("PN25.0———DN50" "PL-PN25.0-DN50")
'("PN25.0———DN65" "PL-PN25.0-DN65")
'("PN25.0———DN80" "PL-PN25.0-DN80")
'("PN25.0———DN100" "PL-PN25.0-DN100")
'("PN25.0———DN125" "PL-PN25.0-DN125")
'("PN25.0———DN150" "PL-PN25.0-DN150")
'("PN25.0———DN200" "PL-PN25.0-DN200")
'("PN25.0———DN250" "PL-PN25.0-DN250")
'("PN25.0———DN300" "PL-PN25.0-DN300")
'("PN25.0———DN350" "PL-PN25.0-DN350")
'("PN25.0———DN400" "PL-PN25.0-DN400")
'("PN25.0———DN450" "PL-PN25.0-DN450")
'("PN25.0———DN500" "PL-PN25.0-DN500")
'("PN25.0———DN600" "PL-PN25.0-DN600")
'("PN40.0———DN10" "PL-PN40.0-DN10")
'("PN40.0———DN15" "PL-PN40.0-DN15")
'("PN40.0———DN20" "PL-PN40.0-DN20")
'("PN40.0———DN25" "PL-PN40.0-DN25")
'("PN40.0———DN32" "PL-PN40.0-DN32")
'("PN40.0———DN40" "PL-PN40.0-DN40")
'("PN40.0———DN50" "PL-PN40.0-DN50")
'("PN40.0———DN65" "PL-PN40.0-DN65")
'("PN40.0———DN80" "PL-PN40.0-DN80")
'("PN40.0———DN100" "PL-PN40.0-DN100")
'("PN40.0———DN125" "PL-PN40.0-DN125")
'("PN40.0———DN150" "PL-PN40.0-DN150")
'("PN40.0———DN200" "PL-PN40.0-DN200")
'("PN40.0———DN250" "PL-PN40.0-DN250")
'("PN40.0———DN300" "PL-PN40.0-DN300")
'("PN40.0———DN350" "PL-PN40.0-DN350")
'("PN40.0———DN400" "PL-PN40.0-DN400")
'("PN40.0———DN450" "PL-PN40.0-DN450")
'("PN40.0———DN500" "PL-PN40.0-DN500")
'("PN40.0———DN600" "PL-PN40.0-DN600")
)
'("<SO> —————带颈平焊———法兰" "SO_pnfalge")
(list
"SO_pnfalge"
'("PN6.0———DN10" "SO-PN6.0-DN10")
'("PN6.0———DN15" "SO-PN6.0-DN15")
'("PN6.0———DN20" "SO-PN6.0-DN20")
'("PN6.0———DN25" "SO-PN6.0-DN25")
'("PN6.0———DN32" "SO-PN6.0-DN32")
'("PN6.0———DN40" "SO-PN6.0-DN40")
'("PN6.0———DN50" "SO-PN6.0-DN50")
'("PN6.0———DN65" "SO-PN6.0-DN65")
'("PN6.0———DN80" "SO-PN6.0-DN80")
'("PN6.0———DN100" "SO-PN6.0-DN100")
'("PN6.0———DN125" "SO-PN6.0-DN125")
'("PN6.0———DN150" "SO-PN6.0-DN150")
'("PN6.0———DN200" "SO-PN6.0-DN200")
'("PN6.0———DN250" "SO-PN6.0-DN250")
'("PN6.0———DN300" "SO-PN6.0-DN300")
'("PN6.0———DN350" "SO-PN6.0-DN350")
'("PN10.0———DN10" "SO-PN10.0-DN10")
'("PN10.0———DN15" "SO-PN10.0-DN15")
'("PN10.0———DN20" "SO-PN10.0-DN20")
'("PN10.0———DN25" "SO-PN10.0-DN25")
'("PN10.0———DN32" "SO-PN10.0-DN32")
'("PN10.0———DN40" "SO-PN10.0-DN40")
'("PN10.0———DN50" "SO-PN10.0-DN50")
'("PN10.0———DN65" "SO-PN10.0-DN65")
'("PN10.0———DN80" "SO-PN10.0-DN80")
'("PN10.0———DN100" "SO-PN10.0-DN100")
'("PN10.0———DN125" "SO-PN10.0-DN125")
'("PN10.0———DN150" "SO-PN10.0-DN150")
'("PN10.0———DN200" "SO-PN10.0-DN200")
'("PN10.0———DN250" "SO-PN10.0-DN250")
'("PN10.0———DN300" "SO-PN10.0-DN300")
'("PN10.0———DN350" "SO-PN10.0-DN350")
'("PN10.0———DN400" "SO-PN10.0-DN400")
'("PN10.0———DN450" "SO-PN10.0-DN450")
'("PN10.0———DN500" "SO-PN10.0-DN500")
'("PN10.0———DN600" "SO-PN10.0-DN600")
'("PN16.0———DN10" "SO-PN16.0-DN10")
'("PN16.0———DN15" "SO-PN16.0-DN15")
'("PN16.0———DN20" "SO-PN16.0-DN20")
'("PN16.0———DN25" "SO-PN16.0-DN25")
'("PN16.0———DN32" "SO-PN16.0-DN32")
'("PN16.0———DN40" "SO-PN16.0-DN40")
'("PN16.0———DN50" "SO-PN16.0-DN50")
'("PN16.0———DN65" "SO-PN16.0-DN65")
'("PN16.0———DN80" "SO-PN16.0-DN80")
'("PN16.0———DN100" "SO-PN16.0-DN100")
'("PN16.0———DN125" "SO-PN16.0-DN125")
'("PN16.0———DN150" "SO-PN16.0-DN150")
'("PN16.0———DN200" "SO-PN16.0-DN200")
'("PN16.0———DN250" "SO-PN16.0-DN250")
'("PN16.0———DN300" "SO-PN16.0-DN300")
'("PN16.0———DN350" "SO-PN16.0-DN350")
'("PN16.0———DN400" "SO-PN16.0-DN400")
'("PN16.0———DN450" "SO-PN16.0-DN450")
'("PN16.0———DN500" "SO-PN16.0-DN500")
'("PN16.0———DN600" "SO-PN16.0-DN600")
'("PN25.0———DN10" "SO-PN25.0-DN10")
'("PN25.0———DN15" "SO-PN25.0-DN15")
'("PN25.0———DN20" "SO-PN25.0-DN20")
'("PN25.0———DN25" "SO-PN25.0-DN25")
'("PN25.0———DN32" "SO-PN25.0-DN32")
'("PN25.0———DN40" "SO-PN25.0-DN40")
'("PN25.0———DN50" "SO-PN25.0-DN50")
'("PN25.0———DN65" "SO-PN25.0-DN65")
'("PN25.0———DN80" "SO-PN25.0-DN80")
'("PN25.0———DN100" "SO-PN25.0-DN100")
'("PN25.0———DN125" "SO-PN25.0-DN125")
'("PN25.0———DN150" "SO-PN25.0-DN150")
'("PN25.0———DN200" "SO-PN25.0-DN200")
'("PN25.0———DN250" "SO-PN25.0-DN250")
'("PN25.0———DN300" "SO-PN25.0-DN300")
'("PN25.0———DN350" "SO-PN25.0-DN350")
'("PN25.0———DN400" "SO-PN25.0-DN400")
'("PN25.0———DN450" "SO-PN25.0-DN450")
'("PN25.0———DN500" "SO-PN25.0-DN500")
'("PN25.0———DN600" "SO-PN25.0-DN600")
'("PN40.0———DN10" "SO-PN40.0-DN10")
'("PN40.0———DN15" "SO-PN40.0-DN15")
'("PN40.0———DN20" "SO-PN40.0-DN20")
'("PN40.0———DN25" "SO-PN40.0-DN25")
'("PN40.0———DN32" "SO-PN40.0-DN32")
'("PN40.0———DN40" "SO-PN40.0-DN40")
'("PN40.0———DN50" "SO-PN40.0-DN50")
'("PN40.0———DN65" "SO-PN40.0-DN65")
'("PN40.0———DN80" "SO-PN40.0-DN80")
'("PN40.0———DN100" "SO-PN40.0-DN100")
'("PN40.0———DN125" "SO-PN40.0-DN125")
'("PN40.0———DN150" "SO-PN40.0-DN150")
'("PN40.0———DN200" "SO-PN40.0-DN200")
'("PN40.0———DN250" "SO-PN40.0-DN250")
'("PN40.0———DN300" "SO-PN40.0-DN300")
'("PN40.0———DN350" "SO-PN40.0-DN350")
'("PN40.0———DN400" "SO-PN40.0-DN400")
'("PN40.0———DN450" "SO-PN40.0-DN450")
'("PN40.0———DN500" "SO-PN40.0-DN500")
'("PN40.0———DN600" "SO-PN40.0-DN600")
)
'("<WN>—————带颈对焊———法兰" "WN_pnfalge")
(list
"WN_pnfalge"
'("PN10.0———DN10" "WN-PN10.0-DN10")
'("PN10.0———DN15" "WN-PN10.0-DN15")
'("PN10.0———DN20" "WN-PN10.0-DN20")
'("PN10.0———DN25" "WN-PN10.0-DN25")
'("PN10.0———DN32" "WN-PN10.0-DN32")
'("PN10.0———DN40" "WN-PN10.0-DN40")
'("PN10.0———DN50" "WN-PN10.0-DN50")
'("PN10.0———DN65" "WN-PN10.0-DN65")
'("PN10.0———DN80" "WN-PN10.0-DN80")
'("PN10.0———DN100" "WN-PN10.0-DN100")
'("PN10.0———DN125" "WN-PN10.0-DN125")
'("PN10.0———DN150" "WN-PN10.0-DN150")
'("PN10.0———DN200" "WN-PN10.0-DN200")
'("PN10.0———DN250" "WN-PN10.0-DN250")
'("PN10.0———DN300" "WN-PN10.0-DN300")
'("PN10.0———DN350" "WN-PN10.0-DN350")
'("PN10.0———DN400" "WN-PN10.0-DN400")
'("PN10.0———DN450" "WN-PN10.0-DN450")
'("PN10.0———DN500" "WN-PN10.0-DN500")
'("PN10.0———DN600" "WN-PN10.0-DN600")
'("PN10.0———DN700" "WN-PN10.0-DN700")
'("PN10.0———DN800" "WN-PN10.0-DN800")
'("PN10.0———DN900" "WN-PN10.0-DN900")
'("PN10.0———DN1000" "WN-PN10.0-DN1000")
'("PN10.0———DN1200" "WN-PN10.0-DN1200")
'("PN10.0———DN1400" "WN-PN10.0-DN1400")
'("PN10.0———DN1600" "WN-PN10.0-DN1600")
'("PN10.0———DN1800" "WN-PN10.0-DN1800")
'("PN10.0———DN2000" "WN-PN10.0-DN2000")
'("PN16.0———DN10" "WN-PN16.0-DN10")
'("PN16.0———DN15" "WN-PN16.0-DN15")
'("PN16.0———DN20" "WN-PN16.0-DN20")
'("PN16.0———DN25" "WN-PN16.0-DN25")
'("PN16.0———DN32" "WN-PN16.0-DN32")
'("PN16.0———DN40" "WN-PN16.0-DN40")
'("PN16.0———DN50" "WN-PN16.0-DN50")
'("PN16.0———DN65" "WN-PN16.0-DN65")
'("PN16.0———DN80" "WN-PN16.0-DN80")
'("PN16.0———DN100" "WN-PN16.0-DN100")
'("PN16.0———DN125" "WN-PN16.0-DN125")
'("PN16.0———DN150" "WN-PN16.0-DN150")
'("PN16.0———DN200" "WN-PN16.0-DN200")
'("PN16.0———DN250" "WN-PN16.0-DN250")
'("PN16.0———DN300" "WN-PN16.0-DN300")
'("PN16.0———DN350" "WN-PN16.0-DN350")
'("PN16.0———DN400" "WN-PN16.0-DN400")
'("PN16.0———DN450" "WN-PN16.0-DN450")
'("PN16.0———DN500" "WN-PN16.0-DN500")
'("PN16.0———DN600" "WN-PN16.0-DN600")
'("PN16.0———DN700" "WN-PN16.0-DN700")
'("PN16.0———DN800" "WN-PN16.0-DN800")
'("PN16.0———DN900" "WN-PN16.0-DN900")
'("PN16.0———DN1000" "WN-PN16.0-DN1000")
'("PN16.0———DN1200" "WN-PN16.0-DN1200")
'("PN16.0———DN1400" "WN-PN16.0-DN1400")
'("PN16.0———DN1600" "WN-PN16.0-DN1600")
'("PN16.0———DN1800" "WN-PN16.0-DN1800")
'("PN16.0———DN2000" "WN-PN16.0-DN2000")
'("PN25.0———DN10" "WN-PN25.0-DN10")
'("PN25.0———DN15" "WN-PN25.0-DN15")
'("PN25.0———DN20" "WN-PN25.0-DN20")
'("PN25.0———DN25" "WN-PN25.0-DN25")
'("PN25.0———DN32" "WN-PN25.0-DN32")
'("PN25.0———DN40" "WN-PN25.0-DN40")
'("PN25.0———DN50" "WN-PN25.0-DN50")
'("PN25.0———DN65" "WN-PN25.0-DN65")
'("PN25.0———DN80" "WN-PN25.0-DN80")
'("PN25.0———DN100" "WN-PN25.0-DN100")
'("PN25.0———DN125" "WN-PN25.0-DN125")
'("PN25.0———DN150" "WN-PN25.0-DN150")
'("PN25.0———DN200" "WN-PN25.0-DN200")
'("PN25.0———DN250" "WN-PN25.0-DN250")
'("PN25.0———DN300" "WN-PN25.0-DN300")
'("PN25.0———DN350" "WN-PN25.0-DN350")
'("PN25.0———DN400" "WN-PN25.0-DN400")
'("PN25.0———DN450" "WN-PN25.0-DN450")
'("PN25.0———DN500" "WN-PN25.0-DN500")
'("PN25.0———DN600" "WN-PN25.0-DN600")
'("PN40.0———DN10" "WN-PN40.0-DN10")
'("PN40.0———DN15" "WN-PN40.0-DN15")
'("PN40.0———DN20" "WN-PN40.0-DN20")
'("PN40.0———DN25" "WN-PN40.0-DN25")
'("PN40.0———DN32" "WN-PN40.0-DN32")
'("PN40.0———DN40" "WN-PN40.0-DN40")
'("PN40.0———DN50" "WN-PN40.0-DN50")
'("PN40.0———DN65" "WN-PN40.0-DN65")
'("PN40.0———DN80" "WN-PN40.0-DN80")
'("PN40.0———DN100" "WN-PN40.0-DN100")
'("PN40.0———DN125" "WN-PN40.0-DN125")
'("PN40.0———DN150" "WN-PN40.0-DN150")
'("PN40.0———DN200" "WN-PN40.0-DN200")
'("PN40.0———DN250" "WN-PN40.0-DN250")
'("PN40.0———DN300" "WN-PN40.0-DN300")
'("PN40.0———DN350" "WN-PN40.0-DN350")
'("PN40.0———DN400" "WN-PN40.0-DN400")
'("PN40.0———DN450" "WN-PN40.0-DN450")
'("PN40.0———DN500" "WN-PN40.0-DN500")
'("PN40.0———DN600" "WN-PN40.0-DN600")
'("PN63.0———DN10" "WN-PN63.0-DN10")
'("PN63.0———DN15" "WN-PN63.0-DN15")
'("PN63.0———DN20" "WN-PN63.0-DN20")
'("PN63.0———DN25" "WN-PN63.0-DN25")
'("PN63.0———DN32" "WN-PN63.0-DN32")
'("PN63.0———DN40" "WN-PN63.0-DN40")
'("PN63.0———DN50" "WN-PN63.0-DN50")
'("PN63.0———DN65" "WN-PN63.0-DN65")
'("PN63.0———DN80" "WN-PN63.0-DN80")
'("PN63.0———DN100" "WN-PN63.0-DN100")
'("PN63.0———DN125" "WN-PN63.0-DN125")
'("PN63.0———DN150" "WN-PN63.0-DN150")
'("PN63.0———DN200" "WN-PN63.0-DN200")
'("PN63.0———DN250" "WN-PN63.0-DN250")
'("PN63.0———DN300" "WN-PN63.0-DN300")
'("PN63.0———DN350" "WN-PN63.0-DN350")
'("PN63.0———DN400" "WN-PN63.0-DN400")
'("PN100.0———DN10" "WN-PN100.0-DN10")
'("PN100.0———DN15" "WN-PN100.0-DN15")
'("PN100.0———DN20" "WN-PN100.0-DN20")
'("PN100.0———DN25" "WN-PN100.0-DN25")
'("PN100.0———DN32" "WN-PN100.0-DN32")
'("PN100.0———DN40" "WN-PN100.0-DN40")
'("PN100.0———DN50" "WN-PN100.0-DN50")
'("PN100.0———DN65" "WN-PN100.0-DN65")
'("PN100.0———DN80" "WN-PN100.0-DN80")
'("PN100.0———DN100" "WN-PN100.0-DN100")
'("PN100.0———DN125" "WN-PN100.0-DN125")
'("PN100.0———DN150" "WN-PN100.0-DN150")
'("PN100.0———DN200" "WN-PN100.0-DN200")
'("PN100.0———DN250" "WN-PN100.0-DN250")
'("PN100.0———DN300" "WN-PN100.0-DN300")
'("PN100.0———DN350" "WN-PN100.0-DN350")
'("PN160.0———DN10" "WN-PN160.0-DN10")
'("PN160.0———DN15" "WN-PN160.0-DN15")
'("PN160.0———DN20" "WN-PN160.0-DN20")
'("PN160.0———DN25" "WN-PN160.0-DN25")
'("PN160.0———DN32" "WN-PN160.0-DN32")
'("PN160.0———DN40" "WN-PN160.0-DN40")
'("PN160.0———DN50" "WN-PN160.0-DN50")
'("PN160.0———DN65" "WN-PN160.0-DN65")
'("PN160.0———DN80" "WN-PN160.0-DN80")
'("PN160.0———DN100" "WN-PN160.0-DN100")
'("PN160.0———DN125" "WN-PN160.0-DN125")
'("PN160.0———DN150" "WN-PN160.0-DN150")
'("PN160.0———DN200" "WN-PN160.0-DN200")
'("PN160.0———DN250" "WN-PN160.0-DN250")
'("PN160.0———DN300" "WN-PN160.0-DN300")
)
'("<IF> ————————整体—————法兰" "IF_pnfalge")
'("<SW>——————承插焊————法兰" "SW_pnfalge")
'("<TJ>————————螺纹—————法兰" "TJ_pnfalge")
'("<PJ/SE>——对焊环松套——法兰" "PJ/SE_pnfalge")
'("<PJ/RJ>——平焊环松套——法兰" "PJ/RJ_pnfalge")
'("<BL>——————法兰盖————————" "BL_pnfalge")
'("<BL(S)>——衬里法兰盖——————" "BL(S)_pnfalge")
)
)
(list
'("Class系列(美洲体系)" "classstyle")
(list
"classstyle"
'("<SO> —————带颈平焊———法兰" "SO_classsfalge")
'("<WN>—————带颈对焊———法兰" "WN_classsfalge")
'("<LMN>—————长高颈————法兰" "LMN_classsfalge")
'("<IF> ————————整体—————法兰" "IF_classsfalge")
'("<SW>——————承插焊————法兰" "SW_classsfalge")
'("<Th>————————螺纹—————法兰" "Th_classsfalge")
'("<LF/SE>——对焊环松套——法兰" "LF/SEE_classsfalge")
'("<BL>—————— 法兰盖————————" "BL_classsfalge")
)
)
)
)
(odcl-add_items flangelst flagetools/MainFrm/flangetree)
(dcl-Tree-ExpandItem flagetools/MainFrm/flangetree "pnstyle" 1)
(dcl-Tree-ExpandItem flagetools/MainFrm/flangetree "classstyle" 1)
(dcl-Tree-SelectItem flagetools/MainFrm/flangetree "PL-PN2.5-DN10")
(dcl-ListBox-Clear flagetools/MainFrm/flseasur)
(dcl-ListBox-AddList flagetools/MainFrm/flseasur '("<RF>突面" "<FM>凹面" "< M >凸面" "< T >榫面" "< G >槽面" "<FF>全平面" "<RJ>环链接面"))
(dcl-ListBox-SetCurSel flagetools/MainFrm/flseasur 0)
(dcl-Control-SetPicture flagetools/MainFrm/PictureBox11 100)
(setq valuelst (BF-str->lst (dcl-Tree-GetSelectedItem flagetools/MainFrm/flangetree) "-"))
(if (= (car valuelst) "PL")(SetTextStr (list (list flagetools/MainFrm/TextBox24 (nth 0 valuelst)) (list flagetools/MainFrm/TextBox12 (substr (nth 1 valuelst) 3)) (list flagetools/MainFrm/TextBox25 (substr (nth 2 valuelst) 3)))))
(princ "\n加载完成!")
(prin1)
)
(defun c:flagetools/MainFrm/flseasur#OnSelChanged (ItemIndexOrCount Value /)
(dcl-Control-SetPicture flagetools/MainFrm/PictureBox11 (+ 100 ItemIndexOrCount))
)
(defun c:flagetools/MainFrm/flangetree#OnClicked (/)
(setq
FLstyle1 (dcl-Tree-GetSelectedItem flagetools/MainFrm/flangetree)
FLstyle2 (dcl-Tree-GetParentItem flagetools/MainFrm/flangetree FLstyle1)
FLstyle3 (dcl-Tree-GetParentItem flagetools/MainFrm/flangetree FLstyle2)
valuelst (BF-str->lst (dcl-Tree-GetSelectedItem flagetools/MainFrm/flangetree) "-")
deftabnum (dcl-TabStrip-GetCurSel flagetools/MainFrm/TabStrip1)
)
(cond
((= FLstyle2 "pnstyle") (setq num 3))
((= FLstyle2 "classstyle") (setq num 6))
(T (setq num nil))
)
(if (and num (= 2 (length valuelst)))
(SetTextStr (list
(list flagetools/MainFrm/TextBox24 (nth 0 valuelst))
(list flagetools/MainFrm/TextBox12 (substr (nth 1 valuelst) num))
(list flagetools/MainFrm/TextBox25 (substr (nth 2 valuelst) 3))
)
)
)
(cond
((or (= FLstyle1 "PL_pnfalge") (= FLstyle2 "PL_pnfalge")) (if (/= deftabnum 0) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 0)))
((or (= FLstyle1 "SO_pnfalge") (= FLstyle2 "SO_pnfalge")) (if (/= deftabnum 1) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 1)))
((or (= FLstyle1 "WN_pnfalge") (= FLstyle2 "WN_pnfalge")) (if (/= deftabnum 2) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 2)))
((or (= FLstyle1 "IF_pnfalge") (= FLstyle2 "IF_pnfalge")) (if (/= deftabnum 6) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 3)))
((or (= FLstyle1 "SW_pnfalge") (= FLstyle2 "SW_pnfalge")) (if (/= deftabnum 4) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 4)))
((or (= FLstyle1 "TJ_pnfalge") (= FLstyle2 "TJ_pnfalge")) (if (/= deftabnum 5) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 5)))
((or (= FLstyle1 "PJ/SE_pnfalge") (= FLstyle2 "PJ/SE_pnfalge")) (if (/= deftabnum 6) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 6)))
((or (= FLstyle1 "PJ/RJ_pnfalge") (= FLstyle2 "PJ/RJ_pnfalge")) (if (/= deftabnum 7) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 7)))
((or (= FLstyle1 "BL_pnfalge") (= FLstyle2 "BL_pnfalge")) (if (/= deftabnum 8) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 8)))
((or (= FLstyle1 "BL(S)_pnfalge") (= FLstyle2 "BL(S)_pnfalge")) (if (/= deftabnum 9) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 9)))
((or (= FLstyle1 "SO_classsfalge") (= FLstyle2 "SO_classsfalge")) (if (/= deftabnum 10) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 10)))
((or (= FLstyle1 "WN_classsfalge") (= FLstyle2 "WN_classsfalge")) (if (/= deftabnum 11) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 11)))
((or (= FLstyle1 "LMN_classsfalge") (= FLstyle2 "LMN_classsfalge")) (if (/= deftabnum 12) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 12)))
((or (= FLstyle1 "IF_classsfalge") (= FLstyle2 "IF_classsfalge")) (if (/= deftabnum 13) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 13)))
((or (= FLstyle1 "SW_classsfalge") (= FLstyle2 "SW_classsfalge")) (if (/= deftabnum 14) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 14)))
((or (= FLstyle1 "Th_classsfalge") (= FLstyle2 "Th_classsfalge")) (if (/= deftabnum 15) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 15)))
((or (= FLstyle1 "LF/SEE_classsfalge") (= FLstyle2 "LF/SEE_classsfalge")) (if (/= deftabnum 16) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 16)))
((or (= FLstyle1 "BL_classsfalge") (= FLstyle2 "BL_classsfalge")) (if (/= deftabnum 17) (dcl-TabStrip-SetCurSel flagetools/MainFrm/TabStrip1 17)))
)
)
;;;name:BF-str->lst
;;;desc:字符串转成列表--leemac
;;;arg:str:字符串
;;;arg:del:分隔符
;;;return:字符串列表
;;;example:(BF-str->lst "a-b-c" "-")=>("a" "b" "c)
(defun BF-str->lst (str del / pos)
(if (setq pos (vl-string-search del str))
(cons (substr str 1 pos)
(BF-str->lst (substr str (+ pos 1 (strlen del))) del)
)
(list str)
)
)
;;;name:BF-str->lst
;;;desc:批量设置odcl中TextBox的值
;;;arg:lsts:TextBox的名称和值表
;;;example:(SetTextStr (list (list flagetools/MainFrm/TextBox24 "1") (list flagetools/MainFrm/TextBox25 "2") (list flagetools/MainFrm/TextBox12 "3")))
(defun SetTextStr(lst)
(foreach x lst (dcl-Control-SetText (car x) (cadr x)))
)
;;;
(defun odcl-add_items(lst TreeControl / addlist lstchild parentkey)
(foreach lstParent lst
(dcl_Tree_AddParent TreeControl (list (car lstParent)))
(setq parentkey (cadar lstParent) lstChild (cadr lstParent))
(defun addlist(lst key / key1 kl x)
(setq lstt (cdr lst))
(foreach x lstt
(if (listp (cadr x))
(progn (setq key1 (car x)) (addlist x key1))
(dcl_Tree_AddChild TreeControl (list (append (list key) x)))
)
)
)
(addlist lstChild parentkey)
)
)
;多层表添加到tree控件
;(defun odcl_tree_addlist(LST TreeControl / KEY addlist)
; (SETQ KEY (dcl_Tree_AddParent TreeControl (list (list (car lst)))))
; (defun addlist(lst key / x key1 kl)
; (foreach x lst
; (if (listp x)
; (setq key1 (dcl_Tree_AddChild TreeControl (list (list key (car x))))
; kl (addlist (cdr x) key1)
; )
; (setq key1 (dcl_Tree_AddChild TreeControl (LIST (list key x))))
; )
; )
; );defun addlist
; (addlist (cdr lst) key)
; (PRINC)
;)
;
;(setq lst
; (LIST "总分类"
; "A没有子分类"
; "B没有子分类"
; POP1
; (LIST "分类1"
; "分类11"
; (LIST "分类12"
; "分类121"
; (LIST "分类122"
; "分类1221"
; "分类1222"
; "分类1223"
; )
; "分类123"
; "分类124"
; "分类125"
; "分类126"
; "分类127"
; )
; "分类13"
; )
; POP2
; (LIST "分类2"
; "分类21"
; "分类22"
; "分类23"
; "分类24"
; "分类25"
; "分类26"
; )
; POP3
; (LIST "分类3"
; "分类31"
; "分类32"
; "分类33"
; "分类34"
; "分类35"
; "分类36"
; "分类37"
; "分类38"
; "分类39"
; )
; )
;)