Dorian Gray Posted March 9, 2010 Posted March 9, 2010 Does anyone know how I can write the ssx lisp into a script, however the script has a lisp functions as follows (in RED). I can select the xrefs using ssget but would like to use ssx to select so I can clip, but can't seem to get autocad to read the ssx bit, what am I doing wrong? when the script runs command line states: Error: no function definition: SSX If I prefix with command it reads: Command: ssx Unknown command "SSX". This a section of the script.... (if (= drawxref xref01) (progn (command "tilemode" "0") (command "ucs" "w") (command "_.MSPACE" "-view" "R" "sht-01-sc1000") (command "tilemode" "1") (command "-view" "R" "sht-01-sc1000") (command "insert" "S:/standard/ACAD/HEASTD/STD-Blocks/Sheets/a3_sht_sc1000.dwg" "0,0" "1" "1" "0") (command "ucs" "w") (command "-xref" "overlay" "HEA-GEN-XRF-RG000-DE-design-sc1000" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "HEA-GEN-XRF-RG000-CA-exist-cadast-bdny" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "HEA-GEN-XRF-GT000-GT-borehole-locations" "0,0" "1" "1" "0") (command "-xref" "overlay" "HEA-GEN-XRF-PT000-PT-pavement" "0,0" "1" "1" "0") (command "-xref" "overlay" "HEA-GEN-XRF-DC000-DR-basins" "0,0" "1" "1" "0") (command "-xref" "overlay" "HEA-GEN-XRF-DC000-DR-basins-labels" "0,0" "1" "1" "0") (command "-xref" "overlay" "HEA-GEN-XRF-DC000-DR-culvert-labels" "0,0" "1" "1" "0") (command "-xref" "overlay" "HEA-GEN-XRF-DC000-DR-culvert-locations" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref " "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref" "0,0" "1" "1" "0") ;(command "-xref" "overlay" "xref" "0,0" "1" "1" "0") (command "-xref" "Detach" "HEA-GEN-XRF-RG000-SH-sheets-sc1000") (command "-view" "R" "sht-01-sc1000") (ssx "" "") ;(ssget "x" '((0 . "INSERT")(2 . "HEA-GEN-XRF*"))) (command "xclip" "p" "" "New" "Rectangular" "0,0" "385.000,239.136") (command "ucs" "w") (command "-xref" "overlay" "HEA-GEN-XRF-RG000-SH-sheets-sc1000" "0,0" "1" "1" "0") )) Cheers Quote
alanjt Posted March 10, 2010 Posted March 10, 2010 It's possible, but not advised. (c:SSX) will execute the Lisp routine (SSX is a lisp routine within Express Tools or are they still called Bonus Tools in 2k?). Are you just trying to create a specific selection? Just use ssget to create a selection set and sssetfirst to select your selection set. For example: (setq ss (ssget "_X" '((0 . "INSERT")))) (sssetfirst nil ss) OR (sssetfirst nil (ssget "_X" '((0 . "INSERT"))))) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.