Description after Filename in Browser Tree

Description after Filename in Browser Tree

checkcheck_master
Advocate Advocate
538 Views
2 Replies
Message 1 of 3

Description after Filename in Browser Tree

checkcheck_master
Advocate
Advocate

I would like to show the Description after the Filename/Part Number in the Browser Tree.

This was posted a long time ago.

You can do that with this rule:

oDoc.DisplayName = iProperties.Value("Project", "Part Number") ' & " - " & iProperties.Value("Project", "Description")

The disadvantage, however, is that this is recorded in the files and if you want to switch between whether or not a description is visible, all files have to be saved again.
Does anyone have experience with iterate the browser tree and then mention the description without affecting the files?

 

In practice, not every user is charmed by this info in the browser tree, which is why it seems useful to me to be able to switch between them quickly.

 

0 Likes
539 Views
2 Replies
Replies (2)
Message 2 of 3

Michael.Navara
Advisor
Advisor

In my opinion this is not possible.

In model tree is displayed Occurrence.Name.  By default this is derived from Document.DisplayName. Occurrence name can be overriden, but this information is stored in AssemblyDocument and this must be saved. 

You can override tool tip of the BrowserNode, but for display you need to hover the node by mouse.

michaelnavara_0-1633531182859.png

 

The second possibility is to implement your own tree browser and there you can display anything you want, but it is not easy task with lot of code.

 

 

 

0 Likes
Message 3 of 3

checkcheck_master
Advocate
Advocate

Thanks Michael for your response,

 

Reading your argument, I think it is indeed difficult.
Writing my own browser through code is not really my intention now.
Especially since you made me aware of the Browser Node Tooltip.
I've played with it a bit and it seems to work.
Only I don't know how to reset the value of the Browser Node Tooltip.

Once the tooltip has been adjusted it seems useful when it can be reset.
I've emptied them but can't get them back, not even when I reload the assy.

Anyone?

 

0 Likes