Rotating items in selection set

Rotating items in selection set

Anonymous
Not applicable
238 Views
4 Replies
Message 1 of 5

Rotating items in selection set

Anonymous
Not applicable
I have created a selection set of all the items on a particular layer.
Is i t possible to then rotate the selectio set?
any help will be appreciated
thanks

--
Thomas Tavrides
Machine Designer
Century Design Company

(708) 598-5111 x114
0 Likes
239 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You can't rotate the selection set itself but you can rotate each item
within it:

For i = 0 To ss.Count - 1
ss.Item(i).Rotate basePoint, rotationAngle
Next

--
Visit me at http://www2.stonemedia.com/franko

"Tom Tavrides" wrote in message
news:ef03a7f.-1@WebX.SaUCah8kaAW...
> I have created a selection set of all the items on a particular layer.
> Is i t possible to then rotate the selectio set?
> any help will be appreciated
> thanks
>
> --
> Thomas Tavrides
> Machine Designer
> Century Design Company
>
> (708) 598-5111 x114
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Thanks Frank that worked.
I need to continualy rotate these items, perhaps i should make them into a
block.
Can i just add all items in the SS to a block or is it possible to add all
items from a particular layer straight to a block
tom t
0 Likes
Message 4 of 5

Anonymous
Not applicable
You can add any AcadEntity object to a block. Use the CopyObjects method of
the AcadDocument class to do this. If the objects you want to block are in a
selection set, there is an example at my web site showing how to use a
selection set to add items to a block definition. Look at How Do I? ->
Visual Basic -> Use existing objects to create a block definition? As for
adding all items from a given layer, you can use a selection set to grab
everything on a given layer then use the same technique to add the selection
set to your block definition.

--
Visit me at http://www2.stonemedia.com/franko

"Tom Tavrides" wrote in message
news:ef03a7f.1@WebX.SaUCah8kaAW...
> Thanks Frank that worked.
> I need to continualy rotate these items, perhaps i should make them into a
> block.
> Can i just add all items in the SS to a block or is it possible to add all
> items from a particular layer straight to a block
> tom t
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Frank
That worked out great
tom
0 Likes