Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Raster image selection

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
918 Views, 8 Replies

Raster image selection

Hello--I would like to be able to create a button macro that will take a
selection set and select only raster images. Can anyone tell me how to do
that?

Thanks!

Mike Mattson
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

Mike

(ssget "X" '((0 . "IMAGE"))) ;select all images
(ssget '((0 . "IMAGE"))) ;user select with filter for images

Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
Message 3 of 9
Anonymous
in reply to: Anonymous

Just one note, which I'm sure both of you know about. If you want to have
the user select the images, the you also need to make sure that imageframe
is turn on. It doesn't look like there is a variable the controls this.

--
Kevin Nehls


"Jürg Menzi" wrote in message
news:3D5029E1.2095E785@bluewin.ch...
> Mike
>
> (ssget "X" '((0 . "IMAGE"))) ;select all images
> (ssget '((0 . "IMAGE"))) ;user select with filter for images
>
> Cheers
> --
> Juerg Menzi
> MENZI ENGINEERING GmbH, Switzerland
> http://www.menziengineering.ch
Message 4 of 9
Anonymous
in reply to: Anonymous

Jurg,

When I use the second of your suggestions--(ssget '((0 . "IMAGE")))--it
allows a selection of objects but doesn't catch the raster images. The
image frames are turned on and visible, the layer is not locked. Any ideas?

Mike Mattson

"Jürg Menzi" wrote in message
news:3D5029E1.2095E785@bluewin.ch...
> Mike
>
> (ssget "X" '((0 . "IMAGE"))) ;select all images
> (ssget '((0 . "IMAGE"))) ;user select with filter for images
>
> Cheers
> --
> Juerg Menzi
> MENZI ENGINEERING GmbH, Switzerland
> http://www.menziengineering.ch
Message 5 of 9
Anonymous
in reply to: Anonymous

Mike

(ssget '((0 . "IMAGE"))) works for me in A14, A2k, A2ki and A2k2...

Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
Message 6 of 9
Anonymous
in reply to: Anonymous

Works for me too. Mike, that filter should be filtering out everything
except image objects.

--
Kevin Nehls
Message 7 of 9
BGERICKO
in reply to: Anonymous

If I use the selection set to include the raster image (below) how do I use that info to change the raster image to another layer.

(setq ss (ssget "X" '((0 . "IMAGE"))))

 

Say the Image is located on Layer 50 based on the selection set and I want to put it on Layer 0. How would I write the lisp code to make that change.

 

Thanks.

Message 8 of 9
Kent1Cooper
in reply to: BGERICKO


@BGERICKO wrote:

.... Say the Image is located on Layer 50 ... and I want to put it on Layer 0. How would I write the lisp code to make that change. ....


One way:

(command "_.chprop" ss "" "_layer" "0" "")

Kent Cooper, AIA
Message 9 of 9
BGERICKO
in reply to: Kent1Cooper

Thanks for the reply, I figured it was a simple code statement.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost