rodrigo_sjc_sp Posted March 7, 2013 Share Posted March 7, 2013 Hi I have this code (setq i 0) (setq sel (ssget '((0 . "LWPOLYLINE")))) (repeat (sslength sel) (setq entpl (ssname sel i)) (setq lentpl (entget entpl)) (setq layerpl (cdr (assoc 8 lentpl))) (setq aberto (cdr (assoc 70 lentpl))) (if (member (strcase layerpl) lista_layers_hatch) (progn (setq j 0) (setq lis_coords '()) (repeat (length lentpl) (if (= (car (nth j lentpl)) 10) (setq lis_coords (append lis_coords (list (cdr (nth j lentpl))))) ) (setq j (+ j 1)) ) (print "008") (setq seldiv (ssget "wp" lis_coords (list (cons 0 "LWPOLYLINE") (cons 8 "Ptest,Ptest2") ) ) ) (print "009") In Windows xp , vista is ok, but in windows 8 64 bits i have the return "008" ; erro: sequence of characters of mode ssget incorrect Is it the windows 8 64? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 7, 2013 Share Posted March 7, 2013 Try: (ssget "[color=red][highlight]_[/highlight][/color]WP" lis_coords ... ) Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted March 7, 2013 Author Share Posted March 7, 2013 Lee, It worked What is the difference between "wp" and "_WP" thank you Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 7, 2013 Share Posted March 7, 2013 What is the difference between "wp" and "_WP" Firstly, note that the modes are case-insensitive, so "_wp" would also work (but I personally prefer to use uppercase for ssget mode strings). The underscore allows for non-English versions of AutoCAD (since the WP mode may use different initials in a different language). See here for more information on command prefixes. Quote Link to comment Share on other sites More sharing options...
rodrigo_sjc_sp Posted March 7, 2013 Author Share Posted March 7, 2013 Lee, You're right. The system was developed for autoCad English and was running a version of autoCad Portuguese The former developer did not put the (_), now fix already in the system. thank you Quote Link to comment Share on other sites More sharing options...
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.