I am new to iLogic and trying to access the "Application Options" under the "Tools" tab. I am trying to grab some information from a couple of fields but it seems that I don't have the right coding or Snippets that indicate how I would do so.
Please point me in the right direction of a helpful source or if anybody knows how to code this.
Thanks in Advance
Here is a quick example of an iLogic rule that works with Application Options. If you look up SketchOptions or GeneralOptions, etc in the API reference, you'll find a listing of all of the properties available. Or reply back with the specific properties you're wanting to change.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
'get Application Options > General Tab > User Name myName = ThisApplication.GeneralOptions.UserName MessageBox.Show(myName, "Title") 'set Application Options > General Tab > 3D Indicatior if ThisApplication.GeneralOptions.Show3DIndicator = True Then ThisApplication.GeneralOptions.Show3DIndicator = False Else if ThisApplication.GeneralOptions.Show3DIndicator = False Then ThisApplication.GeneralOptions.Show3DIndicator = True Else End if 'get current Application Options > General Tab > Select Other Delay myDelay = ThisApplication.GeneralOptions.SelectOtherDelay 'set Application Options > General Tab > Select Other Delay myDelay = InputBox("Enter a new Select Other Delay", "iLogic", myDelay) ThisApplication.GeneralOptions.SelectOtherDelay = myDelay 'set current Application Options > Sketch Tab > Display Grid Lines if ThisApplication.SketchOptions.DisplayGridLines = True Then ThisApplication.SketchOptions.DisplayGridLines = False Else if ThisApplication.SketchOptions.DisplayGridLines = False Then ThisApplication.SketchOptions.DisplayGridLines = True Else End if 'Update All iLogicVb.UpdateWhenDone = True 'Display the Application Options Dialog Box ThisApplication.CommandManager.ControlDefinitions.
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Thank you very much for your assistance as just seeing the "walk through" as to how the code works will definitely help me moving forward.
Is there a possibility you'd be able to help me with my other issue?
Again, Thank you for all your help
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register