<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" value="IE=9" />
<title>OpenLayout Method</title>
<script src="script/jquery-1.7.2.min.js" type="text/javascript" id="mshs_support_script"></script>
<script src="script/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
<link rel="styleSheet" type="text/css" href="stylesheets/jquery-ui-1.8.18.custom.css" />
<link rel="styleSheet" type="text/css" href="stylesheets/jquery.qtip.css" />
<link rel="styleSheet" type="text/css" href="stylesheets/dx.com.2012.css" data-mshv2-stylesheet="/stylesheets/dx.com.2012.mshv2.css" />
<script src="script/dx.com.jqueryplugins.2012.min.js" type="text/javascript"></script>
<script src="script/dx.com.2012.js" type="text/javascript"></script>
<meta name="Microsoft.Help.Id" content="VISUMLIB~IActChainList~OpenLayout"/>
<meta name="Description" content="This method reads a list layout from file." />
<meta name="Microsoft.Help.TocParent" content="VISUMLIB~IActChainList_methods"/>
<meta name="Microsoft.Help.ContentType" content="Reference" />
<link rel="styleSheet" type="text/css" href="stylesheets/hs-tabstrip.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/slimbox2.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/hs-jquery-common.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/hs-jquery-slimbox.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/hs-jquery-expand.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/hs-expandcollapse.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/hs-boxes.css"></link>
<link rel="styleSheet" type="text/css" href="stylesheets/customstyles.css"></link>
<link rel="styleSheet" type="text/css" href="ptv/ptv.css" />
<script src="script/hs-tabstrip.js" type="text/javascript"></script>
<script src="script/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="script/slimbox2.js" type="text/javascript"></script>
<script src="script/hs-jquery-common.js" type="text/javascript"></script>
<script src="script/jquery-expand.js" type="text/javascript"></script>
<script src="script/hs-expandcollapse.js" type="text/javascript"></script>
<script src="script/jquery.fitvids.js" type="text/javascript"></script>
<script src="script/swfobject.js" type="text/javascript"></script>
</head>
<body>
<div class="BreadcrumbsContainer"><table><tr><td>>>
<a href="VISUMLIB_P.html">Visum - COM</a>
> <a href="VISUMLIB~IActChainList.html">IActChainList </a>
> <a href="VISUMLIB~IActChainList~OpenLayout.html">OpenLayout Method</a></td></tr></table></div>
<div id="BeforeHeaderContent">
</div>
<div id="HeaderContent">
<img class="logoimage" src="images/PTV_small.jpg" border="0"></img>
<div id="PageTitle"><div id="PageTitleText">OpenLayout Method</div></div>
</div>
<div id="AfterHeaderContent">
<!-- Spacing --> <span id="ToggleAllSectionsLink" class="FunctionLink">
<label id="CollapseAllLabel">Collapse All</label>
<label id="ExpandAllLabel" style="display: none;">Expand All</label>
</span>
</div>
<div id="FileNamePopupContent" class="PopupContent">
<BR>File name of layout file
</div>
<div id="BodyContent">
<div class="SectionHeading" id="descriptionSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Summary</span></div><div id="descriptionSectionContent" class="SectionContent"><div class="DescriptionContent">This method reads a list layout from file.</div></div>
<div class="SectionHeading" id="syntaxSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Syntax</span></div><div id="syntaxSectionContent" class="SectionContent"><div class=LanguageSpecific id=Syntax_VB><table class="syntaxtable" width="100%" cellpadding="0" cellspacing="0"><tr><th>Visual Basic</th></tr><tr><td><pre><pre><span style="color: #0000FF; ">Public</span> <span style="color: #0000FF; ">Sub</span> OpenLayout( _
<span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="FileNamePopupLink" data-popupcontentsource="#FileNamePopupContent" data-popupshowevent="click mouseenter">FileName</a></i> <span style="color: #0000FF; ">As</span> <span style="color: #0000FF; ">String</span> _
) </pre></pre></tr></table></div></div>
<div class="SectionHeading" id="parametersSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Parameters</span></div><div id="parametersSectionContent" class="SectionContent"><table><tr><th>Name</th><th>Value type</th><th>Description</th></tr>
<tr><td>FileName</td><td>String</td><td><BR>File name of layout file</td></tr>
</table></div>
<div class="SectionHeading" id="remarksSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Description</span></div><div id="remarksSectionContent" class="SectionContent">The layout has to fit the type of the list, otherwise an error occurs</div>
<div class="SectionHeading" id="exampleSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Examples</span></div><div id="exampleSectionContent" class="SectionContent"><BR>
<div class="SectionHeading" id="examplesSubexamples-SectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText SubSectionHeading">-</span></div><div id="examplesSubexamples-SectionContent" class="SectionContent">
<div class="TabContainer">
<ul>
<li class="FilteredContentPython">
<a href="#TabContent-227347ce-4f56-4494-bca7-29afa44c08c8">Python</a>
</li>
</ul>
<div id="TabContent-227347ce-4f56-4494-bca7-29afa44c08c8" class="FilteredContentPython">
<pre><span style="color: #008000; "># creates list of links
</span>linkList = Visum.Lists.CreateLinkList
<span style="color: #008000; ">#opens list of links
</span>linkList.Show()
<span style="color: #008000; ">#add columns to link list
</span>linkList.AddColumn(Attribut=<span style="color: #800000; ">"FromNodeNo"</span>, GroupOrAggrFunction=1) <span style="color: #008000; ">#group by this column
</span>linkList.AddColumn(Attribut=<span style="color: #800000; ">"VolVehPrT(AP)"</span>, GroupOrAggrFunction=4, decplaces=2) <span style="color: #008000; ">#aggregate = average
#save the layout, add new column, load the layout
</span>linkList.SaveLayout(<span style="color: #800000; ">"list.lla"</span>) <span style="color: #008000; "># is saved parallel to .ver
</span>linkList.AddColumn(Attribut=<span style="color: #800000; ">"V0PRT"</span>, GroupOrAggrFunction=3, DisplayUnits=True) <span style="color: #008000; "># max speed with unit
</span>linkList.OpenLayout(<span style="color: #800000; ">"list.lla"</span>)</pre>
</div>
</div>
</div>
</div>
<div class="SectionHeading" id="seealsoSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">See Also</span></div><div id="seealsoSectionContent" class="SectionContent"><p id=dxseealsocontent><a href="VISUMLIB~IActChainList.html">IActChainList </a>
| <a href="VISUMLIB~IActChainList.html">IActChainList Members</a>
</p>
</p></div>
</div>
<div id="FooterContent">
<div style="float: left">
<p class="copyrightfooter">Copyright � 2024 PTV Planung Transport Verkehr GmbH</p>
</div>
<img style="float: right;" src="images/PTV_small.jpg" />
</div>
</body>
</html>