Application Options editing from API code?

Application Options editing from API code?

Anonymous
Not applicable
1,116 Views
1 Reply
Message 1 of 2

Application Options editing from API code?

Anonymous
Not applicable

I'm looking at a way to edit the Application Options tab when a particular file is opened. For example, by loading file "template" it would set constraint options to a standard, set the background color of the application, etc. giving me a songle file to load my preferred settings.

 

For a first run example, could someone help me with code such that when I open the file and run the rule, it would change the username from User to NWilson?

 

I'm very weak with the API code tools and structure, and I have zero VB experience. My train of thought is as follows:

 

Dim x = ThisApplication.GeneralOptions.UserName

If x = User

Then ThisApplication.GeneralOptions.UserName=NWilson

 

Obviously, I don't know this language yet, so you're helping me learn syntax as well as solve this particular problem. A link to any resources on this language would be doubly appreciated.

 

Thanks.

0 Likes
Accepted solutions (1)
1,117 Views
1 Reply
Reply (1)
Message 2 of 2

jdkriek
Advisor
Advisor
Accepted solution

You have it

 

If ThisApplication.GeneralOptions.UserName = "KRIEKJ" Then
	ThisApplication.GeneralOptions.UserName = "JDK"
End If

 

As for the API  - I suggest you look through VBA and then iLogic is basically VB.NET 😉

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.