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

Change the background image file path

danny.lewisA9QBW
Advocate

Change the background image file path

danny.lewisA9QBW
Advocate
Advocate

I've seen lots of forum postings about changing the background colour, but I can't find anything about changing the background to the 'background image' and then providing what the path should be.

 

...shouldn't be too hard right?

Reply
Accepted solutions (2)
866 Views
4 Replies
Replies (4)

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @danny.lewisA9QBW 

 

See these quick iLogic examples

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

oInput = InputRadioBox("Select one", "Use Image", "Don't Use Image", True, "iLogic")

oSchemes = ThisApplication.ColorSchemes

If oInput = True Then
	oSchemes.BackgroundType = BackgroundTypeEnum.kImageBackgroundType
	ThisApplication.ActiveColorScheme.ImageFullFileName = "C:\Temp\BG1.jpg"
Else
	oSchemes.BackgroundType = BackgroundTypeEnum.kOneColorBackgroundType
End If

 

 

 

 

oInput = InputRadioBox("Select one", "Use Image1", "Use Image2", True, "iLogic")

If oInput = True Then	
	oPath = "C:\Temp\BG1.jpg"
Else
	oPath = "C:\Temp\BG2.jpg"
End If

oSchemes = ThisApplication.ColorSchemes
oSchemes.BackgroundType = BackgroundTypeEnum.kImageBackgroundType
ThisApplication.ActiveColorScheme.ImageFullFileName = oPath

 

jjstr8
Collaborator
Collaborator
Accepted solution

Are you looking for Application.ActiveColorScheme.ImageFullFileName?

0 Likes

danny.lewisA9QBW
Advocate
Advocate

I was looking for the where I would even put that path in Yes.  The help files were pretty thin on details when you look up 'Background Image', it just gives the enum value stuff; nothing else.

0 Likes

jjstr8
Collaborator
Collaborator
I agree. Since BackgroundType applies to all color schemes, you would think that the help file would spell that out better in ColorScheme Object.
0 Likes