Skip to main content
Glama
VISUMLIB~IActChainList~AddColumn.html11.4 kB
<!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>AddColumn 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~AddColumn"/> <meta name="Description" content="This method adds a new column to the end (in the beginning) of the empty list and defines its format." /> <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>&gt;&gt; <a href="VISUMLIB_P.html">Visum - COM</a> > <a href="VISUMLIB~IActChainList.html">IActChainList </a> &gt; <a href="VISUMLIB~IActChainList~AddColumn.html">AddColumn 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">AddColumn 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="AttributPopupContent" class="PopupContent"> <BR><BR>ID of the attribute, including the values of sub-attributes in parentheses, if required </div> <div id="FormatPopupContent" class="PopupContent"> <BR><BR>Format of the column for screen display and when exporting to an attribute file (*.att) or the&nbsp;clipboard. This option is ignored exporting to a database or into an array. </div> <div id="DecPlacesPopupContent" class="PopupContent"> <BR><BR>Number of decimal places; if not defined the default values for the specific attribute are used </div> <div id="DisplayUnitsPopupContent" class="PopupContent"> <BR><BR>Display the unit, e.g. "km/h"&nbsp; after the value </div> <div id="GroupOrAggrFunctionPopupContent" class="PopupContent"> <BR><BR>Grouping / aggregation function for this column </div> <div id="WeightedAvgAttributePopupContent" class="PopupContent"> <BR><BR>Weighting attribute for usage with aggregation function 'weighted average' </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 adds a new column to the end (in the beginning) of the empty list and defines its format.</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> AddColumn( _ <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="AttributPopupLink" data-popupcontentsource="#AttributPopupContent" data-popupshowevent="click mouseenter">Attribut</a></i> <span style="color: #0000FF; ">As</span> <span style="color: #0000FF; ">String</span>, _ <span style="color: #0000FF; ">Optional</span> <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="FormatPopupLink" data-popupcontentsource="#FormatPopupContent" data-popupshowevent="click mouseenter">Format</a></i> <span style="color: #0000FF; ">As</span> <a href="VISUMLIB~StringFormatTypeT.html">StringFormatTypeT</a> = defaultfmt, _ <span style="color: #0000FF; ">Optional</span> <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="DecPlacesPopupLink" data-popupcontentsource="#DecPlacesPopupContent" data-popupshowevent="click mouseenter">DecPlaces</a></i> <span style="color: #0000FF; ">As</span> <span style="color: #0000FF; ">Integer</span> = -1, _ <span style="color: #0000FF; ">Optional</span> <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="DisplayUnitsPopupLink" data-popupcontentsource="#DisplayUnitsPopupContent" data-popupshowevent="click mouseenter">DisplayUnits</a></i> <span style="color: #0000FF; ">As</span> <span style="color: #0000FF; ">Boolean</span> = <span style="color: #0000FF; ">False</span>, _ <span style="color: #0000FF; ">Optional</span> <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="GroupOrAggrFunctionPopupLink" data-popupcontentsource="#GroupOrAggrFunctionPopupContent" data-popupshowevent="click mouseenter">GroupOrAggrFunction</a></i> <span style="color: #0000FF; ">As</span> <a href="VISUMLIB~AggregationFunction.html">AggregationFunction</a> = AggregationFunctionDefault, _ <span style="color: #0000FF; ">Optional</span> <span style="color: #0000FF; ">ByVal</span> <i><a class="PopupLink" id="WeightedAvgAttributePopupLink" data-popupcontentsource="#WeightedAvgAttributePopupContent" data-popupshowevent="click mouseenter">WeightedAvgAttribute</a></i> <span style="color: #0000FF; ">As</span> <span style="color: #0000FF; ">String</span> = <span style="color: #800000; ">&quot;&quot;</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>Attribut</td><td>String</td><td><BR><BR>ID of the attribute, including the values of sub-attributes in parentheses, if required</td></tr> <tr><td>Format</td><td><a href="VISUMLIB~StringFormatTypeT.html">StringFormatTypeT</a></td><td><BR><BR>Format of the column for screen display and when exporting to an attribute file (*.att) or the&nbsp;clipboard. This option is ignored exporting to a database or into an array.</td></tr> <tr><td>DecPlaces</td><td>Integer</td><td><BR><BR>Number of decimal places; if not defined the default values for the specific attribute are used</td></tr> <tr><td>DisplayUnits</td><td>Boolean</td><td><BR><BR>Display the unit, e.g. "km/h"&nbsp; after the value</td></tr> <tr><td>GroupOrAggrFunction</td><td><a href="VISUMLIB~AggregationFunction.html">AggregationFunction</a></td><td><BR><BR>Grouping / aggregation function for this column</td></tr> <tr><td>WeightedAvgAttribute</td><td>String</td><td><BR><BR>Weighting attribute for usage with aggregation function 'weighted average'</td></tr> </table></div> <div class="SectionHeading" id="exampleSectionHeading"><span class="SectionHeadingIcon"><!-- --></span><span class="SectionHeadingText">Examples</span></div><div id="exampleSectionContent" class="SectionContent"><BR><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-41dbef3e-f683-48a4-9e93-8fd6e962081a">Python</a> </li> </ul> <div id="TabContent-41dbef3e-f683-48a4-9e93-8fd6e962081a" 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; ">&quot;FromNodeNo&quot;</span>, GroupOrAggrFunction=1) <span style="color: #008000; ">#group by this column </span>linkList.AddColumn(Attribut=<span style="color: #800000; ">&quot;VolVehPrT(AP&quot;</span>, GroupOrAggrFunction=4, decplaces=2) <span style="color: #008000; ">#aggregate = average </span>linkList.AddColumn(Attribut=<span style="color: #800000; ">&quot;V0PRT&quot;</span>, GroupOrAggrFunction=3, DisplayUnits=True) <span style="color: #008000; "># max speed with unit</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> &nbsp;|&nbsp;<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>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/multiluca2020/visum-thinker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server