05-17-2021
12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2021
12:25 PM
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?
Solved! Go to Solution.
05-17-2021
01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2021
01:20 PM
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
05-17-2021
01:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2021
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2021
01:31 PM
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.
05-17-2021
01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
05-17-2021
01:59 PM
I agree. Since BackgroundType applies to all color schemes, you would think that the help file would spell that out better in ColorScheme Object.