Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Tool tags

kukelyk
Advisor

Tool tags

kukelyk
Advisor
Advisor

Could anyone please describe how the tool tags works?

What is its goal?

 

I see that in the database manager I can edit, and I can set the filter in the tool database search form.

But how can I set one of them for a specific tool?

 

Thanks in advance

0 Likes
Reply
Accepted solutions (2)
829 Views
6 Replies
Replies (6)

jonathan.artiss
Alumni
Alumni
Accepted solution

HI @kukelyk

 

Thank you for posting on the Autodesk PowerMill Forum!

 


@kukelyk wrote:

Could anyone please describe how the tool tags works?

What is its goal?

 

I see that in the database manager I can edit, and I can set the filter in the tool database search form.

But how can I set one of them for a specific tool?

 

Thanks in advance


Tool tags are another way to search your tool database for specific tool types, finishers, roughers etc.

 

Have a look here for how to set up and manage your tools using tool tags. 

 

Cheers,


Jonathan Artiss
Application Engineer
Submitting & Viewing Support Requests | Web Support | Phone Support

kukelyk
Advisor
Advisor

Thanks Jonathan,

so I cannot add tags to the tool entities, only for the tool database records, right?

0 Likes

jonathan.artiss
Alumni
Alumni

@kukelyk

 


@kukelyk wrote:

Thanks Jonathan,

so I cannot add tags to the tool entities, only for the tool database records, right?


You can only add the tags from the database and it is only intended for searching. 

 

If you have any other questions about this please let me know. 

 

Cheers,


Jonathan Artiss
Application Engineer
Submitting & Viewing Support Requests | Web Support | Phone Support
0 Likes

5axes
Advisor
Advisor
Accepted solution

As mentionned by @jonathan.artiss the tags is used for searching the database.

 

tags.jpg

 

But you can use it in your macro for ... What you want or what you need Smiley LOL

 

Get the Tag List

STRING LIST Tag_T=$entity('Tool','').tags
print=$Tag_T[0]

 

or get a Tag

 

STRING CTag_Tool=$entity('Tool','').tags[0]

 

 

Add a Tag

 

 

int Nb_Tag=add_last(entity('tool','').tags, 'Finishing' )

 

5axes
Advisor
Advisor

Sample Macro code

// Find a tag in the tool list of the project
STRING LIST STag={'Finishing'}
FOREACH tl IN FOLDER('tool') {
   STRING $TName = $tl.name
   IF Size(INTERSECTION($STag, $tl.tags))>0 {
	MESSAGE INFO "Tool Tag founded in $TName"
   }
}

// List the Tool Tags of the project
STRING LIST TTag={}
FOREACH tl IN FOLDER('tool') {
   IF SIZE($tl.tags) >0 {
		FOREACH Tg IN $tl.tags {
			INT Nb=add_last($TTag,$Tg)
		}
   }
}
INT Rmove=remove_duplicates($TTag)
STRING Msg = 'Tool Tag in Project'
FOREACH Tg IN $TTag {
	$Msg = $Msg + crlf + $Tg
}
MESSAGE INFO $Msg

Anonymous
Not applicable

Thanks for this tools.

0 Likes