Jump to content

ssget sequence mode ssget incorrect


rodrigo_sjc_sp

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...