Setups - order of the toolpaths

Setups - order of the toolpaths

deactivated_JanNavratil
Advocate Advocate
1,085 Views
6 Replies
Message 1 of 7

Setups - order of the toolpaths

deactivated_JanNavratil
Advocate
Advocate

Hello,

 

are we able to get the order in which are toolpaths in setup?

The standard way do not work, I still see the order in which toolpath were in standard tree and not in the setup.

JanNavratil_0-1673249249032.png

 

Can you please advise?

 

Thanks,

Jan

 

0 Likes
Accepted solutions (1)
1,086 Views
6 Replies
Replies (6)
Message 2 of 7

urizenYHS3W
Advocate
Advocate
Accepted solution

components(entity('setup','name'))

Message 3 of 7

deactivated_JanNavratil
Advocate
Advocate

Thank you !

0 Likes
Message 4 of 7

iamcdn79
Mentor
Mentor

Do you know how to get the toolpath dialog list of toolpaths order to match the order of the toolpaths in the setups?

 

Right now the dialog list is in order the of when the toolpaths were created. 

 

In the pic I want toolpath 2651 to show up first in the dialog list then #7 #2652 #8 etc.

 

iamcdn79_1-1673527489472.png

 

 

 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 5 of 7

urizenYHS3W
Advocate
Advocate

Cycle through setups and get the toolpaths, add each name to a list.

STRING LIST li = {}
FOREACH s IN folder('setup') {
  FOREACH t IN components(s) {
   int x = add_last(li, t.name)
  }
}

STRING LIST tps = INPUT ENTITY MULTIPLE TOOLPATH "pick tps" "" $li
0 Likes
Message 6 of 7

iamcdn79
Mentor
Mentor

Ok thanks, that helped but how do I select just that selected setup toolpath? 

 

In my previous macro I had 

 

 

	STRING TOOLPATHName=''
 ENTITY LIST $Selected_Toolpath = INPUT ENTITY MULTIPLE TOOLPATH "Select Toolpaths For Sub Program List"
 FOREACH $tp IN $Selected_Toolpath {
 
 ACTIVATE TOOLPATH $tp

 

 

But now I have to change that to something else, I tried this but it goes through every toolpath not just the selected one

 

STRING LIST li = {}
FOREACH s IN folder('setup') {
  FOREACH t IN components(s) {
   int x = add_last(li, t.name)
  }
}

STRING LIST tps = INPUT ENTITY MULTIPLE TOOLPATH "pick tps" "" $li

 FOREACH $tps IN $li {


  ACTIVATE TOOLPATH $tps 

 

 

 

 

 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 7 of 7

urizenYHS3W
Advocate
Advocate

Activate the setup you want. Then

STRING LIST n = extract(components(entity('setup','')), 'name')
STRING LIST tps = INPUT ENTITY MULTIPLE TOOLPATH "pick tps" "" $n

0 Likes