Issue with Displaying Palette Text on Application Start

Issue with Displaying Palette Text on Application Start

p_krola
Enthusiast Enthusiast
291 Views
1 Reply
Message 1 of 2

Issue with Displaying Palette Text on Application Start

p_krola
Enthusiast
Enthusiast

I need help with an issue I'm facing. I want to display a palette with text that I send from a command when the application starts. I wrote a function to send a sample test:

p_krola_0-1718186373147.png

This function works fine when I call it, for example, in:

p_krola_1-1718186413392.png

However, when I try to call it right after creating the palette in the start() function, it doesn't execute palette_incoming. As a result, the data I wanted to send doesn't appear in the palette. Here is my palette_incoming function:

Start():

p_krola_2-1718186590482.png

palette_incoming():

p_krola_3-1718186636368.png

Here are the console logs:

p_krola_4-1718186757580.png

Can someone suggest a way to trigger palette_incoming?

 

 

 

 

 

 

 

0 Likes
292 Views
1 Reply
Reply (1)
Message 2 of 2

kandennti
Mentor
Mentor

Hi @p_krola -San.

 

Since we cannot test it, it may not be the correct answer.

 

I have created an add-in that displays the palette when the application is launched and published it here.

https://github.com/kantoku-code/Fusion360_Developers_Small_ToolKit/tree/main 

 

I used the WorkspaceActivated event to call the palette.

https://github.com/kantoku-code/Fusion360_Developers_Small_ToolKit/blob/main/Developers_Small_ToolKi... 

 

I have emptied the list holding the handler in the handler to prevent it from being called multiple times.

https://github.com/kantoku-code/Fusion360_Developers_Small_ToolKit/blob/main/Developers_Small_ToolKi... 

0 Likes