Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
convert polyline - Bad SSGET list
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi all
I'm new to lisp so this may seem like a silly question but i just cannot seem to get this thing to work.
I have a data structure called LayerList in the format [LIST "LayerName" "Linetype" Thickness Color]
I then use the following piece of code to go through the structure selecting polylines and converting all polylines on a given layer to the correct thickness
(foreach layr layerlist
(setq player (car layr))
(if (setq ss (ssget "x" '((0 . "*polyLINE") (8 . player ) )))
(command "pedit" "m" ss "" "w" 0.15 "")
(princ "\nNo polylines exist!")
)
)
However all i keep getting is Bad SSGET list value at the command line,
What am i doing wrong??
Nik
Solved! Go to Solution.
Re: convert polyline - Bad SSGET list
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Solved it, I changed the code as follows
(foreach layr layerlist
(if (setq ss (ssget "_x" (list'(0 . "*POLYLINE") (cons 8 (car layr)) ) ))
(command "pedit" "m" ss "" "w" 0.15 "")
(princ)
)
)
Re: convert polyline - Bad SSGET list
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Good for you for figuring it out. I would, however, suggest that you stick with the word Width [as in the name of the option used in your Pedit command] rather than referring to an object's Thickness. Polylines [and many other entity types] can also have Thickness, which has a specific [and different from Width] definition in AutoCAD: their dimension in the up-off-the-page Z direction.
Re: convert polyline - Bad SSGET list
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Will do. Thanks Kent
