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.  [ 7 posts ] 
Author Message
 Post subject: from list(of psentity ) to listo (of psline)
PostPosted: Fri Dec 02, 2016 4:25 pm 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
hi,


dim linee as list(of psline )

linee(0) contain a line
and i've to make 5 copies of this line.

linee(0).movebyVector(vector,4)

now i add the created items in the list
for conta as integer = 1 to 4
linee.add (ps.createditems(conta-1))
next

this is correct way ?

otherwise i can declare a TmpLine as list (of psentity)
tmpline = linee(0).movebyvector(vector,copies)
but in this way i've a list of psentity (tmpline) but need a list of psline !!!!

thanks


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Tue Dec 06, 2016 11:38 pm 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
The first one looks fine. What is your issue with it?


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Wed Dec 07, 2016 12:06 am 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
No problem !
just to know if it is the correct way and if it is the fastest Because with 100/150 line it's slow


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Wed Dec 07, 2016 11:44 pm 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
In that case I think you can do the following to move multiple items in one go rather than looping:

Dim listOfLines As New List(Of IPSMoveable)
listOfLines.Add(...) ' You need to populate the list here
PSEntityMover.MoveEntitiesByVector(listOfLines, vector, 1)


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Thu Dec 08, 2016 12:59 am 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
what is ipsmoveable ?
The procedure also applies to project a list of lines on a surface? you can give an example
Thanks


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Mon Dec 12, 2016 10:21 am 
Offline
DELCAM Staff
DELCAM Staff

Joined: Tue Mar 17, 2009 2:30 pm
Posts: 108
IPSMoveable is an interface that anything that is movable implements. PSLines implement this interface so can be added to a List(Of IPSMoveable).


Top
 Profile  
 
 Post subject: Re: from list(of psentity ) to listo (of psline)
PostPosted: Mon Dec 12, 2016 3:49 pm 
Offline
DELCAM Guru
DELCAM Guru

Joined: Tue Nov 07, 2006 1:16 pm
Posts: 75
ok
thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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