Click or drag to resize

CtcServiceLoadLayout Method

Loads a given railroad layout configuration and states.

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Sub LoadLayout ( 
	strFileName As String,
	enuSerializationContent As SerializationContent,
	Optional ByRef blnCompatibilityMode As Boolean = false
)

Parameters

strFileName
Type: SystemString
The name of the path and file to be loaded.
enuSerializationContent
Type: RRAutoLib.CTCSerializationContent
The content being loaded: definitions or states.
blnCompatibilityMode (Optional)
Type: SystemBoolean
Returns True if layout had to be loaded in compatibility mode.
Remarks
Since layout definitions and states are stored in separate files, this method should be called once for each content. Definitions must always be loaded first. The CTC service must be stopped for this operation.
See Also