Model INI File: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (1 revision(s))
mNo edit summary
Line 1: Line 1:
<font face="Arial">Planimate supports a model specific INI file which is different to the Planimate.INI file (which is used to store modeller settings). The model INI file stores definitions specific to the model including file name mappings, shares and object specific data. This note covers object specific data.<br /><br />'''Object Specific Data
Planimate supports a model specific INI file which is different to the Planimate.INI file (which is used to store modeller settings). The model INI file stores definitions specific to the model including file name mappings, shares and object specific data. This note covers object specific data.


'''Object Specific Data'''


'''The INI file can contain settings targetted to a model object. The object to which the settings apply must be named in square brackets and must be in the object label list.'''<br /> '''<br />'''Setting Portal Attributes
The INI file can contain settings targetted to a model object. The object to which the settings apply must be named in square brackets and must be in the object label list.


'''Setting Portal Attributes'''


'''Currently setting portal attributes for portals is supported. This is done using the ATT command which expects 2 quoted strings, as follows:
Currently setting portal attributes for portals is supported. This is done using the ATT command which expects 2 quoted strings, as follows:
 


ATT "&lt;attribute name&gt;" &lt;"formatted-value"&gt;
ATT "&lt;attribute name&gt;" &lt;"formatted-value"&gt;


Example INI file:
Example INI file:


[Portal 1]
ATT "test1" "123"
ATT "test2" "1:23"
ATT "test3" "blue"
[Portal 2]
ATT "test1" "456"
ATT "test2" "1:23"
ATT "test3" "blue"
ATT "test4" "no"
[Configurations]
ATT "expert user" "0"


[Portal 1]<br /> ATT "test1" "123"<br /> ATT "test2" "1:23"<br /> ATT "test3" "blue"


----


[Portal 2]<br /> ATT "test1" "456"<br /> ATT "test2" "1:23"<br /> ATT "test3" "blue"<br /> ATT "test4" "no"




[Configurations]<br /> ATT "expert user" "0"<br /><br /><br /><br /><br /><br /><br /><br />




Currently the only object specific data which can be set are attributes of a portal.
<font size="2">idkbase note 309</font>


 
[[Category:Data]]
&lt;portal object label name&gt; is the name of an object as it appears in the object label list. This must be a portal.<br /> &lt;attribute name&gt; is the name of a portal attribute owned by the portal<br /> &lt;formatted value&gt; is the value to set it to, formatted to the attribute's format.<br /><br />
[[Category:NI File]]
 
 
For example, the following sets some portal attri<br /> </font>
----
[[Category:Data/Import]]
[[Category:File]]
[[Category:INI File]]
[[Category:Attribute]]
[[Category:Attribute]]
[[Category:Fact]]
[[Category:Batch]]
<font size="2">idkbase note 309</font>

Revision as of 15:38, 12 January 2008

Planimate supports a model specific INI file which is different to the Planimate.INI file (which is used to store modeller settings). The model INI file stores definitions specific to the model including file name mappings, shares and object specific data. This note covers object specific data.

Object Specific Data

The INI file can contain settings targetted to a model object. The object to which the settings apply must be named in square brackets and must be in the object label list.

Setting Portal Attributes

Currently setting portal attributes for portals is supported. This is done using the ATT command which expects 2 quoted strings, as follows:

ATT "<attribute name>" <"formatted-value">

Example INI file:

[Portal 1]
ATT "test1" "123"
ATT "test2" "1:23"
ATT "test3" "blue"

[Portal 2]
ATT "test1" "456"
ATT "test2" "1:23"
ATT "test3" "blue"
ATT "test4" "no"

[Configurations]
ATT "expert user" "0"





idkbase note 309