Help with VBA Form to Update Company Logo in Inventor Drawing Template Based on Sheet Size

Help with VBA Form to Update Company Logo in Inventor Drawing Template Based on Sheet Size

shubham.raturi2308
Enthusiast Enthusiast
156 Views
1 Reply
Message 1 of 2

Help with VBA Form to Update Company Logo in Inventor Drawing Template Based on Sheet Size

shubham.raturi2308
Enthusiast
Enthusiast

Hello Everyone,

I’m working on an Autodesk Inventor drawing template with multiple sheet sizes (A1, A2, etc.), each with its own border. The drawing border includes a company logo that I need to update based on user input.

I want to create a VBA form with two drop-down lists:

  1. Sheet Size (A1, A2, etc.)
  2. Company Logo (to select the logo)

The form should update the drawing with the correct border and company logo based on the selected options.

Questions:

  1. How do I link the combo boxes to dynamically update the logo in the drawing template?
  2. Any VBA code examples for updating the logo based on user selection?

Any help would be appreciated!

Thank you!



@WCrihfield, @jnowel , @Michael.Navara , @Curtis_Waguespack , @Andrii_Humeniuk , @JelteDeJong , @J-Camper , @A.Acheson , @bradeneuropeArthur 

0 Likes
Accepted solutions (1)
157 Views
1 Reply
Reply (1)
Message 2 of 2

A.Acheson
Mentor
Mentor
Accepted solution

Hi @shubham.raturi2308 

You will need to create multiple title blocks with size and logo changes (your variations)  and then switch these out an in via code. This sample here creates a titleblock but you can ignore this and skip to the insertion stage.

  1. Create your combo box in VBA and get it to fire off a message.
  2. Next get your titleblock code to switch a titleblock with hard coded string.
  3. Next combine the two and take the string from combo box query and insert to titleblock sub routine. 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes