Macro question

Macro question

dames123
Advocate Advocate
353 Views
3 Replies
Message 1 of 4

Macro question

dames123
Advocate
Advocate

Is there a way to treat a Setup entity as a folder in a macro?

 

When you use INPUT ENTITY MULTIPLE toolpath and your toolpath are in a folder under the toolpath tree, the dropdown shows the folder and the toolpath under it. If the toolpath are in a setup, all you get are the toolpaths in a random order with no reference to a setup.

 

If you use INPUT ENTITY MULTIPLE setup you just get a list of setups with no toolpath shown.

 

Is there a command to show a setup and the toolpaths under it in a dropdown?

 

Thanks.

 

 

0 Likes
354 Views
3 Replies
Replies (3)
Message 2 of 4

kevin.hammond3WX4X
Advocate
Advocate

Try this

 

Entity list $Set = INPUT ENTITY Setup "pick"
Activate Setup $Set.name
STRING LIST n = extract(components(entity('setup','')), 'name')
STRING LIST TP = INPUT ENTITY MULTIPLE TOOLPATH "pick Toolpaths" "" $n

0 Likes
Message 3 of 4

dames123
Advocate
Advocate

Thanks Kevin.

 

That certainly selects the toolpaths but it doesn't correspond to the correct selection. For example, if I select "Rough" toolpath in the dropdown, it performs the macro function (collision check in this case) on an entirely different toolpath under that setup. Setups are tied to the Toolpaths tree folder somehow but they don't act the same. And the ordering is random when selected by a macro.

 

What I'm really looking for is the way ENTITY LIST $ents = INPUT ENTITY MULTIPLE toolpath "Select Toolpaths" behaves when toolpaths are under the Toolpaths tree folder. You can select the folder in the dropdown and all toolpaths are selected under it.

 

dames_WKQ27869AUZJ_0-1692725292607.png

I wish Setups acted this same way but perhaps there is no API for this function.

 

In any case I appreciate the help.

 

David

0 Likes
Message 4 of 4

kevin.hammond3WX4X
Advocate
Advocate

I agree, that Setups seem to behave differently,  I have no further answers for this.

Perhaps raise it as a helpdesk ticket, you might some help from someone more advanced than myself

0 Likes