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: 

graphics internal ilogic settings

0 REPLIES 0
Reply
Message 1 of 1
maxim.teleguz
136 Views, 0 Replies

graphics internal ilogic settings

see working code for one set of options, how can i enable the commented out options?

Imports Inventor
Imports System.Runtime.InteropServices
Imports Microsoft.Win32
Imports System.Windows.Forms
Dim olist As New ArrayList

SendKeys.SendWait("{ESC}")
AppActivate(ThisApplication.Caption)

On Error Resume Next
Dim selectCmd As ControlDefinition
    selectCmd = ThisApplication.CommandManager.ControlDefinitions.Item("AppContextual_CancelCmd")
    selectCmd.Execute

olist.Add("kFullGraphicsOptimization")
olist.Add("kDriverGraphicsOptimization")
olist.Add("kRecommendedGraphicsOptimization")
olist.Add("kConservativeGraphicsOptimization")

G = InputListBox("Prompt", olist, G, Title := "Title", ListName := "List")

If G = "Run_Anything" Then
G = InputBox("Prompt", "Run command -(FWxViewCommands)", "AppOpenCommandWindowCmd")
End If

If G = "" Then : Return : Else
	'we know what this is so what are all the other options?
	'ThisApplication.HardwareOptions.GraphicsSettingType = 'kConservativeGraphicsSetting 'kPerformanceGraphicsSetting 'kQualityGraphicsSetting
	
	'GraphicsLevelsOfDetailEnum
		'kCoarseRes
		'kFullScreenHighRes
		'kMediumRes
		'kMereDotRes
		'kVeryCoarseRes
		'kZoomedInHighRes

	'GraphicsDriverTypeEnum
		'kConservativeOpenGLGraphicsDriver
		'kDirect3D10GraphicsDriver
		'kDirect3D11GraphicsDriver
		'kDirect3DGraphicsDriver
		'kOpenGLGraphicsDriver
		'kSoftwareGraphics
	
	ThisApplication.HardwareOptions.GraphicsOptimization = G
End If

InventorVb.DocumentUpdate()
0 REPLIES 0

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report