Site Logo
Site Logo
 
It is currently Sun Apr 02, 2017 7:01 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: to move many object
PostPosted: Sat Feb 04, 2017 5:29 pm 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
hi,
in this way i insert many object in a variable of type "list (of psentity)
obj = psm.SelectedItems

the object is different type curve, compcurve surface
now i need to move and rotate all object
can i use ipsmoveable / ipsroteable type ?
How ?

Thanks


Top
 Profile  
 
 Post subject: Re: to move many object
PostPosted: Sat Feb 04, 2017 6:32 pm 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
If you:
Dim itemsToMove As New List(Of IPSMovable)
Then add the items one by one to the list:
For Each item As PSEntity in model.SelectedItems
itemsToMove.Add(item)
Next

Now you can use:
PSEntityMover.MoveEntities(itemsToMove)

I think that syntax is about right!


Top
 Profile  
 
 Post subject: Re: to move many object
PostPosted: Sat Feb 04, 2017 7:01 pm 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
Thanks !
It's ok !

...... but today isn't saturday ? :lol: :lol:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB