Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic Button on Quick Access Toolbar

19 REPLIES 19
Reply
Message 1 of 20
ngnam1988
1239 Views, 19 Replies

Dynamic Button on Quick Access Toolbar

Dears,

Happy New Year! to Everyone...

I'm trying to add a dynamic button in Quick Access Button as this Design Doctor Button. So when I open an item (Part/Assembly/Drawing) It'll checking something and return the result by visible/highlight button icon.

 

ngnam1988_0-1704096093297.png

I mean it'll working:
1. After opened an item (part/assembly/drawing...) button icon show a warning and show this icon

ngnam1988_1-1704096392527.png

2. If everything are fixed/nothing wrong it'll show this icon
 

ngnam1988_2-1704096518143.png

Please help me the guide how to do that. Thank you very much!

19 REPLIES 19
Message 2 of 20

I can help you writing an add in...

You need to change the icon to achieve this.

Let me know if an add in is ok.

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 3 of 20

Great!
I’m trying done it with my Add-in. Please, guide to me how to do it.
Thanks,
Message 4 of 20

Could you send me the two different icons either per private message or via this forum?

And also the conditions for each icon. 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 5 of 20

I think you need something similar to this.

The button Green will get Red if the file is Dirtied and need a save.

The button Red will get Green again after save of the file.

Please watch the movie....

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 6 of 20

This looks pretty awesome. How did you program that?
Message 7 of 20

Yes, I'm finding something like it, that can change button icon dynamic.
Thanks!

Message 8 of 20

I can't send files direct from private message,

ngnam1988_0-1704150323727.png

 


Could you try with any icon that you have?
Thanks,

Message 9 of 20

sure take a look at the MP4

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 10 of 20

What are the conditions to change the Icon for your program.
What is the trigger to be wrong or right is the question.
I have programmed this with the "Dirty mark" Status at the moment for showing you.

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 11 of 20

My trigger would be whenever a new document of a particular part is created.

 

For example when a new sheet metal document is created, enable a particular button. The button should be disabled in all other documents (including old sheet metal documents).

Message 12 of 20

Means:

Only If a new sheet-metal part file is created the button must be Green.

For all other parts it must be Red, Include old (non new) sheet metal parts.

For non new parts the button must also be Green.

Is this correct?

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 13 of 20

Yup! I'll be very grateful if you can show me how to do that.
Message 14 of 20

Dear @bradeneuropeArthur ,

I wanna it check something as the template when item opened. Ex: List of users parameter/kind of item; Dim overrides in drawing; Scale that used of all views are in Standard?... After checked/fixed and saved it'll return done icon.

Maybe I'll have some idea, but at the moment  I wanna got solution to change icon as your video shown.

Thanks!

Message 15 of 20

Hi @bradeneuropeArthur 
Could you please help us to share the code that can change the icon as your video?
I'll try to do the conditions to change the icon by myself.

Thank you very much!

Message 16 of 20

@ngnam1988 

I have send you  a PM with some additional questions.

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 17 of 20


@abdullah_elq wrote:
This looks pretty awesome. How did you program that?

Do you also need support same as @ngnam1988 does?

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 18 of 20

Yes please

Message 19 of 20

Hi @bradeneuropeArthur 
I can control enable/disable buttons (enable after something is checked)  - but can't change them as your shown.

-Quick Access Toolbar

ngnam1988_0-1705917202675.png

-Ribbon Tabs

ngnam1988_1-1705917220517.png

Could you guide to me how to do it? Thanks,

Message 20 of 20

@ngnam1988

I have asked/send you a while ago per message if you can send me the content of your add-in file.

Did not get a reply from you.

If I have that I can update and you can paste it in your code.

 

Please see your message...

 

Regards,

 

Arthur

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report