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: 

Change the background image file path

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
danny.lewisA9QBW
738 Views, 4 Replies

Change the background image file path

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?

4 REPLIES 4
Message 2 of 5

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

 

Message 3 of 5
jjstr8
in reply to: danny.lewisA9QBW

Are you looking for Application.ActiveColorScheme.ImageFullFileName?

Message 4 of 5
danny.lewisA9QBW
in reply to: jjstr8

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.

Message 5 of 5
jjstr8
in reply to: danny.lewisA9QBW

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

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report