Change the background image file path

Change the background image file path

danny.lewisA9QBW
Advocate Advocate
955 Views
4 Replies
Message 1 of 5

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?

Accepted solutions (2)
956 Views
4 Replies
Replies (4)
Message 2 of 5

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

 

EESignature

Message 3 of 5

jjstr8
Collaborator
Collaborator
Accepted solution

Are you looking for Application.ActiveColorScheme.ImageFullFileName?

0 Likes
Message 4 of 5

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
Message 5 of 5

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