Page 1 of 1

TM1RuleEditUserPrefs

Posted: Fri Oct 04, 2013 5:01 pm
by Edward Stuart
Anyone know where I can find the TM1RuleEditUserPrefs.xml file?

The rules guide gives the following:
You can change the auto-save feature by editing the file:
TM1RuleEditUserPrefs.xml
This file exists for the current Windows user and is located in:
C:\Documents and Settings\current_user\ApplicationData\Cognos\TM1\
Which is a Windows XP location, therefore a %appdata% search should locate the relevant folder in Windows 7:

C:\Users\Username\AppData\Roaming\IBM

However, there is no TM1RuleEditUserPrefs.xml file to be found (in Local or LocalLow folders either)

I've no interest in setting auto-save on rules but if this file held any further configuration which may be of use.

Subsequent searches have returned very little of use, anyone have any idea/ thoughts?

Re: TM1RuleEditUserPrefs

Posted: Sun Oct 06, 2013 2:13 pm
by declanr
Edward,

On windows 7 it does appear for me under C:\Users\DeclanRodger\AppData\Roaming\Applix\TM1 with both 10.1 and 10.2 installed.

I would hazard a guess at saying it possibly only appears after you have specified that you wish to use the advanced rules editor (and/or then specifying specific preferences via the tools => preferences) but that is purely speculation, below is a copy of what options you can specify in it anyway and there doesn't really seem to be much of use in there IMHO... apart from maybe the time intervals for auto backups.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<preferences>
  <formats>
    <format name="Braces" Font="Courier New, 10pt, style=Bold" FontColor="DimGray" />
    <format name="Brackets" Font="Courier New, 10pt, style=Bold" FontColor="Navy" />
    <format name="CollapsedText" Font="Courier New, 10pt" FontColor="DimGray" />
    <format name="Comments" Font="Courier New, 10pt, style=Italic" FontColor="Green" />
    <format name="Declarations" Font="Courier New, 10pt, style=Bold" FontColor="Navy" />
    <format name="DynamicValues" Font="Courier New, 10pt, style=Italic" FontColor="Purple" />
    <format name="Errors" Font="Courier New, 10pt, style=Underline" FontColor="Red" BackColor="LightGoldenrodYellow" />
    <format name="Functions" Font="Courier New, 10pt, style=Bold" FontColor="Navy" />
    <format name="Numbers" Font="Courier New, 10pt, style=Bold" FontColor="DarkRed" />
    <format name="Operators" Font="Courier New, 10pt" FontColor="DimGray" />
    <format name="Parentheses" Font="Courier New, 10pt, style=Bold" FontColor="Navy" />
    <format name="Qualifiers" Font="Courier New, 10pt, style=Bold" FontColor="#400000" />
    <format name="SelectedText" Font="Courier New, 10pt" FontColor="HighlightText" BackColor="Highlight" />
    <format name="Strings" Font="Courier New, 10pt" FontColor="#0000C0" />
    <format name="Text" Font="Courier New, 10pt" FontColor="DimGray" />
    <format name="Whitespace" Font="Courier New, 10pt" FontColor="Black" />
  </formats>
  <settings>
    <wordwrap>false</wordwrap>
    <linenumbers>true</linenumbers>
    <tooltips>true</tooltips>
    <autocompletes>false</autocompletes>
    <toolbar>true</toolbar>
    <statusbar>false</statusbar>
    <controlobjects>true</controlobjects>
    <tab-none>false</tab-none>
    <tab-block>false</tab-block>
    <tab-smart>true</tab-smart>
    <autoBackupMinutes>5</autoBackupMinutes>
    <indicatormargin>true</indicatormargin>
    <wordwrapmargin>false</wordwrapmargin>
    <selectionmargin>true</selectionmargin>
    <usermargin>false</usermargin>
    <markchangedlines>false</markchangedlines>
    <marklinewrapping>true</marklinewrapping>
    <markwrappedlines>true</markwrappedlines>
    <indentguideline>true</indentguideline>
    <indentationblockborders>false</indentationblockborders>
    <outliningcollapsers>true</outliningcollapsers>
    <transparentselection>true</transparentselection>
    <horizontalscroller>true</horizontalscroller>
    <verticalscroller>true</verticalscroller>
    <xpstyle>false</xpstyle>
    <virtualspacemode>false</virtualspacemode>
    <insertmode>true</insertmode>
    <whitespaces>false</whitespaces>
    <groupundo>true</groupundo>
    <usetabs>true</usetabs>
    <tabstop>false</tabstop>
    <tabsize>5</tabsize>
    <autoindent>Smart</autoindent>
  </settings>
</preferences>

Re: TM1RuleEditUserPrefs

Posted: Mon Oct 07, 2013 8:55 am
by Edward Stuart
Hi Declan,

You are correct, I set the "AdvancedRulesEditor = t" in tm1p.ini and opened a rule and then the TM1RuleEditUserPrefs.xml file appears in the same location.

C:\Users\USERNAME\AppData\Roaming\Applix\TM1

I agree the configuration does not appear to be of much use and is largely available within the Advanced TM1 Rules Editor,

Tools > Preferences
Tools > Options

However, to set the default auto-save time you will have to amend the .xml file