PTV Visum - Frequently Asked Questions (FAQs)
-
COM and API
- (#VIS14965)
Python Add-Ins return error messages like:
- ''Could not start the script component''.
- ''IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Python26\\lib\\site-packages\\win32com\\gen_py\\__init__.py' pythoncom error: Unexpected gateway error''.Python25/26 was installed in:
[ Permalink ]
C:\Program...\Python2...\
This is not the recommended path. Python25/26 always belongs to:
C:\Python2...\
Recommendation: Install Visum and Python completely new:
1) Uninstall all Visum installations.
2) Uninstall all Python components.
3) Remove manually any folders like:
- C:\Python
- C:\Program..\Python
- C:\Program...\PTV_Vision\...
4) Reboot the computer.
5) Download the current setup for the latest Visum release.
6) First, install only this current setup, including 'Python' (do not change its standard folder).
- (#VIS22153)
How to execute a PrT shortest path search by COM?
An example for a shortest path search between two nodes:
[ Permalink ]
Set NetElementContainer = Visum.CreateNetElements
Set Node = Visum.Net.Nodes.ItemByKey(10)
NetElementContainer.Add Node
Set Node = Visum.Net.Nodes.ItemByKey(40)
NetElementContainer.Add Node
'Route search with current speed tCur
Set RouteSearchPrT = Visum.Analysis.RouteSearchPrT
RouteSearchPrT.Clear
VSysCode = 'C'
RouteSearchPrT.Execute NetElementContainer, VSysCode, 1
A more complex example, displaying the result into a list and write the path legs to an attribute file:
http://vision-traffic.ptvgroup.com/faq-files/PTV_ExampleShortestPathSearch.zip
- (#VIS25554)
How can I exchange the stop point of a lineroute by COM?
How can I access the time profile item attribute 'Profile point'?When using the list 'Line route items' the attribute StoppointNo is not editable, because the datamodel forces to maintain all its dependencies.
[ Permalink ]
Instead, the dialog 'Edit line route' offers the attribute 'IsRoutePoint' to remove and add stop points. The checkbox 'Profile point' is not an attribute, but evokes methods to add or remove time profile items.
In COM it is similar:
Removing a stoppoint from a lineroute is simply setting an attribute:
aLineRouteItem.AttValue('IsRoutePoint') = False
Once a new stop point is defined on links or nodes of a lineroute, a corresponding object linerouteitem is created automatically and it only depends of the same attribute of the new linerouteitem to use it:
aLineRouteItem.AttValue('IsRoutePoint') = True
A corresponding timeprofileitem needs to be added separately:
Set aTimeProfileItem = aTimeProfile.AddTimeProfileItem(aLineRouteItem)
Serving it is only a matter of attributes:
aTimeProfileItem.AttValue('Alight') = True
aTimeProfileItem.AttValue('Board') = True
Example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_ExchangeStopPoints.zip
- (#VIS14889)
How to create a flow bundle (PrT/PuT) and read out PuT path list by using COM?
1) Create a flow bundle:
[ Permalink ]
Set aStopPoint = Visum.Net.StopPoints.ItemByKey(30)
Set aNetElms = Visum.CreateNetElements
aNetElms.Add aStopPoint
Set aFlowBundle = Visum.Net.FlowBundle
aFlowBundle.Clear
aFlowBundle.DemandSegments = 'P'
aFlowBundle.Execute aNetElms
2) Create a PuT path list:
Set aPuTPathList = Visum.Lists.CreatePuTPathList
aPuTPathList.SetObjects 0, 'P', routeFilter_filterFlowBundleRoutes
aPuTPathList.AddKeyColumns
aPuTPathList.AddColumn 'JourneyTime'
aPuTPathList.AddColumn 'Dep'
aPuTPathList.AddColumn 'Arr'
aPuTPathList.Show
3) Read out the PuT path list:
aPuTPathListArray = aPuTPathList.SaveToArray
For aPath = 0 To UBound(aPuTPathListArray)
aStr = ''
For anAttr = 0 To aPuTPathList.NumColumns - 1
aStr = aStr & aPuTPathListArray(aPath, anAttr) & ' '
Next anAttr
Debug.Print Trim(aStr)
Next aPath
4) An example for Python on how to create a flow bundle with restricted traffic types/passenger types using an ActivityTypeSet, and use CreateCondition with Complement = True to code 'And then not':
aFlowBundle = Visum.Net.FlowBundle
aFlowBundle.Clear()
aFlowBundle.DemandSegments = 'P'
aZone = Visum.Net.Zones.ItemByKey(100)
aLink1 = Visum.Net.Links.ItemByKey(10, 11)
aLink2 = Visum.Net.Links.ItemByKey(20, 21)
anActivityTypeSet = aFlowBundle.CreateActivityTypeSet()
anActivityTypeSet.Add (1)
aNetElms = Visum.CreateNetElements()
aNetElms.Add(Visum.Net.TSystems.ItemByKey('B'))
aFlowBundle.CreateConditionWithRestrictedSupply(aZone, aNetElms, False, anActivityTypeSet)
aFlowBundle.CreateNewGroup()
aFlowBundle.CreateCondition(aLink1, anActivityTypeSet, False)
aFlowBundle.CreateCondition(aLink2, anActivityTypeSet, True)
aFlowBundle.ExecuteCurrentConditions()
An example on how to check this example code in the Visum Python console:
5) An example for PrT:
Set aMainZone = Visum.Net.MainZones.ItemByKey(1)
Set aFlowBundle = Visum.Net.FlowBundle
aFlowBundle.Clear
aFlowBundle.DemandSegments = 'C'
Set anActivityTypeSet = aFlowBundle.CreateActivityTypeSet
anActivityTypeSet.Add 2 ' 2 for destination activity trips
aFlowBundle.CreateCondition aMainZone, anActivityTypeSet
aFlowBundle.ExecuteCurrentConditions
6) An example for PuT using a 'Line selection' and 'Selection of traffic types' (Origin demand/Destination demand)?
Remarks:
- The line selection needs to be set using a filter, as this functionality of the dialog 'Graphics tools (Flow bundle)' is not available in the COM interface.
- Once the line filter is active, the method
aFlowBundle.CreateConditionActiveLines
can catch an IRouteTrafficTypeSet object, coding the Traffic types.
Sub TestFlowBundleWithLineSelection()
Dim Visum As New VISUMLIB.Visum
Dim aNetElms As VISUMLIB.INetElements
Dim aFlowBundle As VISUMLIB.IFlowBundle
Dim anRouteTrafficTypeSet As VISUMLIB.IRouteTrafficTypeSet
Visum.IO.LoadVersion Application.ActiveWorkbook.Path & cMyVersionFileIn
Set aNetElms = Visum.CreateNetElements
aNetElms.Add Visum.Net.Lines.ItemByKey('004')
Set aFlowBundle = Visum.Net.FlowBundle
aFlowBundle.Clear
Set anRouteTrafficTypeSet = aFlowBundle.CreateRouteTrafficTypeSet
anRouteTrafficTypeSet.Add 2
anRouteTrafficTypeSet.Add 4
Visum.Filters.LineGroupFilter.Init
'Visum.Filters.LineGroupFilter.LineFilter.AddCondition 'OP_NONE', False, 'NAME', 'EqualVal', '004' 'Alternative way.
Visum.Filters.LineGroupFilter.LineFilter.SetSelection aNetElms
Visum.Filters.LineGroupFilter.LineFilter.UseSelection = True
Visum.Filters.LineGroupFilter.LineFilter.UseFilter = True
Visum.Filters.LineGroupFilter.UseFilterForLines = True
aFlowBundle.DemandSegments = 'PuT'
aFlowBundle.CreateConditionActiveLines anRouteTrafficTypeSet
aFlowBundle.ExecuteCurrentConditions
Set Visum = Nothing
End Sub
7) An example on two stops and a line:
Sub TestFlowBundleWithStopPointAndLineSelection()
Dim Visum As New VISUMLIB.Visum
Dim aNetElms As VISUMLIB.INetElements
Dim aFlowBundle As VISUMLIB.IFlowBundle
Dim anActivityTypeSet1 As VISUMLIB.IActivityTypeSet
Dim anActivityTypeSet2 As VISUMLIB.IActivityTypeSet
Dim aStopPoint1 As VISUMLIB.IStopPoint
Dim aStopPoint2 As VISUMLIB.IStopPoint
Visum.IO.LoadVersion Application.ActiveWorkbook.Path & cMyVersionFileIn
Set aFlowBundle = Visum.Net.FlowBundle
aFlowBundle.Clear
aFlowBundle.DemandSegments = 'PuT'
Set aStopPoint1 = Visum.Net.StopPoints.ItemByKey('100030')
Set aStopPoint2 = Visum.Net.StopPoints.ItemByKey('100002')
Set anActivityTypeSet1 = aFlowBundle.CreateActivityTypeSet
anActivityTypeSet1.Add 1 ' Origin traffic
'anActivityTypeSet1.Add 2 ' Destination traffic
anActivityTypeSet1.Add 4 ' Boarding passengers
'anActivityTypeSet1.Add 8 ' Alighting passengers
anActivityTypeSet1.Add 16 ' Transfers
anActivityTypeSet1.Add 32 ' PassThroughStop
anActivityTypeSet1.Add 64 ' PassThroughNoStop
Debug.Print anActivityTypeSet1.GetActivityTypeSet
Set anActivityTypeSet2 = aFlowBundle.CreateActivityTypeSet
'anActivityTypeSet2.Add 1 ' Origin traffic
anActivityTypeSet2.Add 2 ' Destination traffic
'anActivityTypeSet2.Add 4 ' Boarding passengers
anActivityTypeSet2.Add 8 ' Alighting passengers
anActivityTypeSet2.Add 16 ' Transfers
anActivityTypeSet2.Add 32 ' PassThroughStop
anActivityTypeSet2.Add 64 ' PassThroughNoStop
Debug.Print anActivityTypeSet2.GetActivityTypeSet
Set aNetElms = Visum.CreateNetElements
aNetElms.Add Visum.Net.Lines.ItemByKey('004')
aFlowBundle.CreateConditionWithRestrictedSupply aStopPoint1, aNetElms, False, anActivityTypeSet1
aFlowBundle.CreateConditionWithRestrictedSupply aStopPoint2, aNetElms, False, anActivityTypeSet2
aFlowBundle.ExecuteCurrentConditions
Set Visum = Nothing
End Sub
Executable examples in VBA:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_Readout_FlowbundlePaths_from_List_PuTPaths.zip
c:\Users\Public\Documents\PTV Vision\PTV Visum 16\COM\Examples_ComDocu\VBA\FlowBundleAnalysis.xls
In Python:
c:\Users\Public\Documents\PTV Vision\PTV Visum 16\COM\Examples_ComDocu\Python\FlowbundleAnalysis.py
- (#VIS12348)
Can Excel 32 bit instantiate ScriptMuuli 64 bit or PTV Visum 64 bit?
For PTV Visum yes, because PTV Visum runs as a 'out of process' COM server (*.exe), Excel VBA can instantiate both 32 bit and 64 bit Visum.
[ Permalink ]
This is different for the component ScriptMuuli, as this is an 'in-process' COM-server (*.dll): Excel 32 bit CAN ONLY instantiate ScriptMuuli 32 bit and CANNOT instantiate ScriptMuuli 64 bit.
Workarounds:
- Use Excel 64 bit to instantiate ScriptMuuli 64 bit (available with Microsoft Office 2010).
- Visum 16/17: Register ScriptMuuli 32 bit.
c:\Program Files\PTV Vision\PTV Visum 17\ScriptMuuli\Win32\ScriptMuuli.dll
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS15643/
- Until Visum 16: install Visum 32 bit addditionally to be able to use ScriptMuuli 32 bit.
How to find out whether Excel is 32 or 64 bit?
File -> Account -> About Excel -> (in the first line of the dialog)
- (#VIS18542)
How can I position the network editor to display certain network objects?
The method
[ Permalink ]
Visum.Graphic.Autozoom()
can use some single network object as argument.
To zoom upon multiple network objects, use
Visum.Net.Links.GetMultiAttValues()
to gather the X- and Y-coordinates as arrays. Use these to estimate the corners for a bounding box, which can be used for the method:
Visum.Graphic.SetWindow xMin, yMin, xMax, yMax
- (#VIS25690)
How can I set a header and footer and print the network editor to PDF by COM?
- Use the class Visum.Net.PrintParameters.PrintFrame.Footer:
[ Permalink ]
Example code:
Dim myPrintFrameFooter As VISUMLIB.IPrintFrameFooter
Dim myPrintFrameFooterCell As VISUMLIB.IPrintFrameFooterCell
Set myPrintFrameFooter = Visum.Net.PrintParameters.PrintFrame.Footer
myPrintFrameFooter.AttValue('TextSize') = 6
Set myPrintFrameFooterCell = Visum.Net.PrintParameters.PrintFrame.Footer.Columns.Item(1).Rows.Item(1)
myPrintFrameFooterCell.AttValue('UserDefinedText') = 'any userdefined string combination'
- Change the standard printer to a PDF printer.
Complete example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_PrintToPDF.ZIP
- (#VIS15643)
A VBA script instantiating ScriptMuuli with a command like
- CreateObject('VISUM170-64.ScriptMuuli')
- CreateObject('Vision.ScriptMuuli')
or often implemented as
Set muuli1 = CreateObject('VISUM' & VisumVers & bitToken & '.ScriptMuuli')
fails with the error message
'ActiveX component can't create object'.
How can I solve this?It is highly recommended to replace the functionality of the outdated ScriptMuuli by matrix operations with Python and the procedure 'Combination of matrices and vectors' and matrices of type formula.
[ Permalink ]
Using PTV Visum 64 bit and VBS ScriptMuuli 64-bit needs to be registered.
Using PTV Visum 32 bit (only until PTV Visum 16) and VBS ScriptMuuli 32-bit needs to be registered.
Using PTV Visum 32/64 bit (only until PTV Visum 16) and Excel VBA 32 bit ScriptMuuli 32 bit needs to be registered:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS12348/
Since PTV Visum 16 ScriptMuuli 32-bit is registered by default to enable the often used combination with Excel VBA 32 bit.
Only one ScriptMuuli version can be registered. Check the Windows registry to find out which one.
To register the 32-bit version:
Start -> CMD -> Execute as administrator
regsvr32.exe 'c:\Program Files\PTV Vision\PTV Visum 16\ScriptMuuli\Win32\ScriptMuuli.dll'
To unregister the 32-bit version:
regsvr32.exe 'c:\Program Files\PTV Vision\PTV Visum 16\ScriptMuuli\Win32\ScriptMuuli.dll' /u
To register the 64-bit version:
regsvr32.exe 'c:\Program Files\PTV Vision\PTV Visum 16\ScriptMuuli\x64\ScriptMuuli.dll'
For Visum10-Visum13:
The solution is dependent of the Visum release and the operating system (OS), in combination with their 32 or 64 bit architecture.
The table
https://www.ptvgroup.com/faq-files/PTV_COM_VBA_instantiating_ScriptMuuli_ActiveX_component_cant_create_object.pdf
lists all possible combinations and which measure should be applied to solve the issue when using the command CreateObject, meeting the concept of late binding.
Alternatively use the Visum.exe as referenced library to meet the early binding concept. An example is included as:
https://www.ptvgroup.com/faq-files/PTV_COM_VBA_instantiating_ScriptMuuli.zip
- (#VIS10350)
When instanciating Visum by COM, how can I distinguish between 32 and 64 bit Visum installations?
If both a 32 bit and a 64 bit installation are available for example for Visum13, use the class Ids 'Visum.Visum-32.130' or 'Visum.Visum-64.130':
[ Permalink ]
- Set Visum = CreateObject('Visum.Visum-32.130')
- Set Visum = CreateObject('Visum.Visum-64.130')
- (#VIS14743)
How to archive matrices from Visum as CSV-file, like:
0,200,999
234,454,233
1212,55,33.12See the attached skript:
[ Permalink ]
http://vision-traffic.ptvgroup.com/faq-files/PTV_ExportMatricesCSV.zip .
- (#VIS31880)
Python code completion does not work in PyCrust and under Visum menu 'Scripts->VisumAddIn->Python Console'.
Only commands beginning with '_' are shown.
Error message contains 'gencache.py', like 'C:\Program Files\Python37\lib\site-packages\win32com\client\gencache.py, line ..., in ...'Python code completion will work again when subfolder 'gen-py' under %TMP% is deleted.
[ Permalink ]
This is the Python cache (default location 'C:\Users\<user name>\AppData\Local\Temp\gen_py').
In addition, please ensure that Visum is registered as COM server.
- (#VIS12330)
How to export a list from Visum to Excel via Excel/VBA?
With the following example code, a list can be generated and integrated in Excel:
[ Permalink ]
Set aPrtPathList = Visum.Lists.CreatePrTPathLinkList
aPrtPathList.SaveToClipboard UseSeparatorTab
Set wb = ActiveWorkbook
Set ws = wb.Worksheets('aList')
ws.Cells.Delete
ws.Paste
http://vision-traffic.ptvgroup.com/faq-files/PTV_ExportList2Excel.zip
- (#VIS14496)
Where do I find a list of all used attributes in Visum which can be both used interactively in lists and addressed via COM by AttValue(...)/SetAttValue(...)?
These are listed in the file attribute.xls: ...\PTV_Vision\VISUMXXX\Doc\En\.
[ Permalink ]
The short names are in the column AttributeID.
- (#VIS21283)
How can I include the current filepath and filename to save a version by script?
Use the property
[ Permalink ]
Visum.UserPreferences.DocumentName
Example:
Visum.SaveVersion Visum.UserPreferences.DocumentName
- (#VIS16250)
A script started over COM has crashed with error messages like:
- 'Communication with the Python background script failed'.
- 'Could not start the script component'.
- 'Could not find a matching script component for file extension '.py'.'
- 'pythoncom error: ERROR: server.policy could not create an instance.'- Register the COM server again:
[ Permalink ]
PTV Visum -> Help -> Register as COM server
(In case this needs to be repeated, start PTV Visum as Administrator.)
- Check the Python installation:
Windows Start button -> Settings -> Apps -> Python -> Change -> Repair Python -> Finish
(Older OS: Control Panel -> Programs -> Programs and Features)
- (#VIS18714)
How can I edit matrix values over COM using Excel/VBA?
Following variants are possible:
[ Permalink ]
- By referencing the matrix value by zone numbers:
Visum.Net.ODPairs.ItemByKey(100, 200).AttValue('MatValue(1)') = 1000
- By referencing the matrix value by row and column.
Visum.Net.Matrices.ItemByKey(1).SetValue 1, 2, 5000
- More efficient is using a safearray as input:
Visum.Net.Matrices.ItemByKey(1).SetValues myArray
Example codes are available in:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_EditMatrixValues.zip
- (#VIS18606)
How can I import a Shapefile into a POI category?
Shapefiles are imported using the method IVisum.ImportShapefile, which needs an IImportShapeFilePara object, offering an own method AttValue. Use this to set the attribute 'POIKey', corresponding to the 'POI category' in the dialog 'Read shapefile', with the POI category's number.
[ Permalink ]
POI categories can be edited using the class INet.IPOICategory and its method AttValue. To add one, use the method INet.AddPOICategory.
Example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_ImportShape2POIcat.ZIP
- (#VIS10527)
The VBA COM line
Set Visum = CreateObject('VISUM.VISUM.180')
fails with the following error message:
'ActiveX component can't create object'.
The Python line
Visum = VisumPy.helpers.CreateVisum(...)
fails with an error message, containing at the end the string:
'Invalid class string'
The computer uses a 32 bit or 64 bit operation system.PTV Visum needs to be registered again as COM server.
[ Permalink ]
Until Visum 12 use an external tool in the start menu:
Register Visum as COM server (again):
Start -> All programs -> PTV Vision -> Visum -> Tools -> Register as COM server -> (Click right mouse button) -> Execute as Administrator.
Since Visum 11 an internal tool is available:
- Visum 11-12.5:
Extras -> Options -> (Working) Environment -> General -> Register as COM server.
- Visum 13:
Edit -> User Preferences -> Working environment -> Register as COM server.
- Since Visum 14:
Help -> Register as COM server.
Notes:
- Make sure to start PTV Visum with administrator credentials.
This procedure could be necessary again after the computer was rebooted.
- Check in the Windows register, which class ID is currently registered.
Example test scripts using early and late binding:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_VBA_Instantiating_VissimVisumVisem.zip
- (#VIS17414)
Is it possible to use the special function 'Set lengths' (Lines -> Multi-edit -> Lineroutes -> Multi-edit Lineroutes -> Special functions) over the COM interface?
Yes, the method SetItemLengthsFromNetwork is not available in the class ILineroutes, but in the class ILineRoute.
[ Permalink ]
Example:
For Each aLineRoute In Visum.Net.LineRoutes
aLineRoute.SetItemLengthsFromNetwork
Next
Complete example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_WiP_SetItemLengthsFromNetwork.zip
- (#VIS31338)
- PTV Visum was unable to find a suitable Python 2.7/3.7 installation.
- Python 2.7 and/or 3.7 is listed as 'not available' in the 'User Preferences' menu.
- AddIns and Python scripts do not work.
Examples:
Attempting to open
Scripts -> Python Console
results in a crash or an error message: 'No suitable installation of Python 3.7 was found'.
AddIns like 'Calculate Matrix' cause an error message or a crash.PTV Visum 2020 supports the Python 64 bit versions 2.7 and 3.7
[ Permalink ]
Principally parallel installations of other Python versions are possible (e.g also 3.8).
Visum needs a correct Python installation (system wide for python 2.7) along with corresponding registry settings as well as the python package pywin32. After installation, this package must be registered as described at
https://github.com/mhammond/pywin32#installing-via-pip
So we recommend to use the Python installation provided within the installation package and also available as download under
http://cgi.ptvgroup.com/php/vision-setups/
Regarding Python 3.7
First, remove all Python 3.7-installations,
then delete both registry keys manually (if still existing)
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.7
HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore\3.7
then reinstall Python 3.7 using the PTV Python setup.
Notes on Python 3.7:
On startup Visum tries to load the DLL 'pythoncom37.dll' and uses as search path the sub folder 'Lib\site-packages\pywin32_system32' of the path given by the registry key InstallPath (<HKLM or HKCU>\SOFTWARE\Python\PythonCore\3.7\InstallPath).
Two files 'pythoncom37.dll' and 'pywintypes37.dll' should be located in this directory.
Additionally, the file python37.dll should be located in the directory given by the registry key InstallPath itself.
When trying to load the DLL 'pythoncom37.dll' an additional search in the system directory (Windows\system32) and possibly also in the directories of the PATH-environment variable is performed.
To make sure that there are no other variants of this DLL on the computer, you may search for the file 'pythoncom37.dll' on the entire computer.
After trying to execute a python script, the content of the file protocol.txt (see menu File->Show log files) might also deliver information on possible problems when loading Python.
In case an error occurs when importing any further python packages, it may be caused by the environment variable PYTHONPATH, if it is set to a directory that contains python packages of another python version.
- (#VIS17497)
How can I export only active network elements (only active links) as shapefile?
Use an object of the class IExportShapeFilePara, and set the attribute OnlyActive:
[ Permalink ]
myExportShapeFileParameterObject.AttValue('ONLYACTIVE') = 1
Code example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_Example_ExportSHP.zip
- (#VIS18836)
Where can I find documentation on the Visum COM API?
1) You can find an introduction to scripting with the Visum COM API in
[ Permalink ]
Help -> Introduction to the Visum COM-API^
leading to the file
c:\Program Files\PTV Vision\PTV Visum 17\Doc\Eng\Introduction to the PTV Visum COM-API.pdf
2) All properties and methods are documented in:
Help -> COM help
and leads to the chapters 'Visum COM' and 'Visum - Python'.
3) The folder
%Public%\Documents\PTV Vision\PTV Visum 17\COM\
includes sample scripts.
4) In the path
%ProgramFiles%\PTV Vision\PTV Visum 17\Exe\AddIns
you can find the source code of all AddIns being part of the standard installation. They are often a bit more advanced, but might be of interest when needing a template for an AddIn or if you want to adapt an existing AddIn.
5) Following
http://vision-traffic.ptvgroup.com/en-uk/community/webinar-archive/
you can find two recorded webinars about COM:
- Introduction to Scripting and COM automation in PTV Visum
- Advanced applications of scripting and COM automation in PTV Visum
- (#VIS18612)
Instantiating Visum from
Set VISUM = CreateObject('Visum.visum.110')
leads to the error message: 'Permission denied'The licence used does not hold the module 'COM interface' and that is the reason for the error message.
[ Permalink ]
You can check this in the dialog Extras -> License
- Check the wanted license for the module 'COM interface'. Make sure to be using the current license file available at http://cgi.ptvgroup.com/cgi-bin/en/intern/tcs_download.pl
- If this module is still missing, please notify ordermanagement@ptvgroup.com.
Additional tips:
- Make sure to be using the correct class ID:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS10350/
- If you have multiple identical installations, using slightly different licenses, register the one you need again (with administrator credentials).
- (#VIS10333)
Running a VBA script fails with:
'Compile Error: Can't find project or Library.'This message means, that a referenced library was not found on the used computer, following the EarlyBinding concept. These are typically automations for MS-Office products or for PTV Vision components like PTV Visum or ScriptMuuli.
[ Permalink ]
In the Visual Basic editor following
Extras -> References
i.e. a Visum Object Library will be listed as 'MISSING'. Possibly this component is not available on this machine, or with a different path, or this component is not needed.
Note that the 32 bit Visual Basic editor will not find any 64 bit object libraries automatically.
Solution:
- In the Visual Basic editor: Extras -> References
- Uncheck the missing reference.
- Click 'Browse' to open the dialog 'Add reference'.
- Browse to the folder i.e. holding a 'VisumXXX.exe', in
C:\Program Files\PTV Vision\PTV Visum XX\Exe\
- Choose to be showing 'executable files (*.EXE, *.DLL)'.
- Choose the 'VisumXXX.exe'.
- Confirm and close both dialogs.
Example test scripts using early and late binding:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_VBA_Instantiating_VissimVisumVisem.zip
- (#VIS10331)
A COM command like Link.AttValue('NO') = 1300 does not work. What is the reason?
The 'ahead' and 'back' direction of links are modelled as two seperate link objects and share the same number (only the numbers of the from and to nodes are different). To change these by COM, use this function:
[ Permalink ]
SetNo ( [in] int no).
- (#VIS17740)
How can I open an external matrix over COM?
An example using the IMatrix.Open-method (Python):
[ Permalink ]
matpath=os.path.join(path,'C.mtx')
Mat = Visum.Net.Matrices.ItemByKey('1')
Mat.Open(matpath)
Alternatively use this way over the demand segment, when the matrix number or code cannot be used (VBA):
visum.Net.DemandSegments.ItemByKey('K').ODMatrix.Open(matrixPath)
(C#):
visum.Net.DemandSegments.get_ItemByKey('K').get_ODMatrix().Open(matrixPath);
To open a new external matrix (VBA):
Dim myNewMatrixEditorObject As IMatrixTable
Set myNewMatrixEditorObject = Visum.CreateMatrixTable(matrixPath)
- (#VIS11862)
How can I set or change the coordinate system by COM?
Use the following sample code for Python:
[ Permalink ]
srsWGS = r'GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137,298.257223563]],PRIMEM['Greenwich',0],UNIT['Degree',0.017453292519943295]]'
Visum.Net.SetProjection(srsWGS)
Example for use with VBA:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_ChangeCoordinateSystem.zip
- (#VIS13100)
In a big model, the program crashes when you try to run any Python-script or add-In.
Visum 11.5 is affected by an error in the memory management of the component wxPython that may cause an crash for really big version files (> 1 GB). In Visum 12, this is corrected with a new version of wxPython. Workaround:
[ Permalink ]
1) Start Visum.
2) Run any add-In (i.e. Python console) and close it again.
3) Load the version file.
4) Run the add-In's.
- (#VIS20307)
How can I use a VBA procedure from inside PTV Visum?
Use the AddIn 'Run VBA', which is only available as procedure.
[ Permalink ]
An example for using 'Run VBA' to export the PrT Path list:
http://vision-traffic.ptvgroup.com/faq-files/PTV_COM_Example_CreatePrTPathList_RunVBA.zip
- (#VIS16983)
How to read out the PrT path list by using COM?
A list PrT paths needs to be created first:
[ Permalink ]
Set aPrTPathList = Visum.Lists.CreatePrTPathList
aPrTPathList.SetObjects 0, 'C', routeFilter_filterAllRoutes
aPrTPathList.AddKeyColumns
aPrTPathList.AddColumn 't0'
aPrTPathList.AddColumn 'tCur'
aPrTPathList.AddColumn 'Vol(AP)'
To use these attributes in an array:
aPrTPathListArray = aPrTPathList.SaveToArray
Example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_Example_ReadOutListPrTpaths.zip
- (#VIS13873)
How to execute a PuT shortest path search by COM?
Use a RouteSearchPuT Object, that is given a NetElements container with network elements. An example could look like this:
[ Permalink ]
Option Explicit
Sub shortest_path_search_OV()
Dim Visum As New VISUMLIB.Visum
Dim aLink As VISUMLIB.ILink
Dim aNode As VISUMLIB.INode
Dim aZone1 As VISUMLIB.IZone
Dim aZone2 As VISUMLIB.IZone
Dim aNetElementContainer As VISUMLIB.INetElements
Dim aRouteSearchPuT As VISUMLIB.IRouteSearchPuT
Visum.LoadVersion ActiveWorkbook.Worksheets('Einstellungen').Cells(1, 2)
Set aNetElementContainer = Visum.CreateNetElements
Set aRouteSearchPuT = Visum.Analysis.RouteSearchPuT
Set aZone1 = Visum.Net.Zones.ItemByKey(Cells(7, 2).Value)
Set aZone2 = Visum.Net.Zones.ItemByKey(Cells(8, 2).Value)
aNetElementContainer.Add aZone1
aNetElementContainer.Add aZone2
aRouteSearchPuT.Execute aNetElementContainer, 'P', '08:00:00', '1', False, 'ADDVAL1', False
End Sub
http://vision-traffic.ptvgroup.com/faq-files/PTV_ExampleShortestPathSearch.zip
- (#VIS13648)
- Is it possible to renumber links, nodes or zones, to release partly occupied numbering ranges?
- The import of an ACCESS-database causes the error message 'Overflow'.The suggested value for the ID-offset when reading additively or when using model transfer files is always the highest existing ID+1. Thereby in many cases (particularly by using external extensions for IDs), long IDs could develop which may cause overflows.
[ Permalink ]
Since Visum14 many network object classes offer the function 'Renumbering': Nodes
Links/Zones/Main nodes/Main zones/Territories/POIs/Screenlines/Count locations/Detectors/Stop points/Stop areas/Stops/Lines (Vehicle journeys/Coupling sections) -> (Right click to open the context menu) -> Renumbering
This function is also available as COM method 'Renumber' for each network object collection type, which is more powerful than the respective context menu functions. It (optionally) respects filters and allows to define a custom stepping.
Using this, you can do the entire job in one call. You can even call this from the Python console AddIn:
- Visum.Net.Links.Renumber(99,3,True)
Where the arguments are (new start number, stepping, OnlyActive True|False)
Workaround for older releases (< Visum14):
Re-number the ID's of particular object classes via COM. In most cases, this can be done by using the line ''For Each anObject In Visum.Net.Nodes.GetAll', like, in this case, for nodes. The setting of the new value is possible via 'anObject.AttValue('NO') = newNumber'.
Links have to be handled separately. The reason for this is, that links have an initial and an opposite direction, so they consist of two different objects which have to be changed at the same time. That's why you are not able to use the method AttValue('NO'). Thence, the link number could not be changed via COM until Visum 10. Since Visum 11 therefore there is the method SetNo(...).
Some objects use a multipart key and don't have the attribute 'NO'. In this case, re-naming is not necessary.
Examples are contained in this VBA project:
http://vision-traffic.ptvgroup.com/faq-files/PTV_RenumberObjects.zip
- (#VIS27284)
Since I installed PTV Visum 18, Python does not work anymore in PTV Visum 17 (and older), *.py scripts cannot be referenced in the procedure sequence or any AddIn or Python scripts started over COM crash with an error message:
- 'Communication with the Python background script failed'.
- 'Could not start the script component'.
- 'Could not find a matching script component for file extension '.py'.'
- 'pythoncom error: ERROR: server.policy could not create an instance.'Older versions of PTV Visum (17 and older) were shipped with Python 2.7.03. From PTV Visum 18 Python 2.7.15 is delivered. However, there cannot be multiple parallel installations of Python 2.7 on one system. To ensure a smooth handling of the previous versions (PTV Visum 15/16/17) with Python, install the following update:
[ Permalink ]
- 15.00-24 for PTV Visum 15.
- 16.01-17 or higher for Visum 16.
- 17.01-10 or higher for PTV Visum 17.
http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl?
If you are using even older versions than PTV Visum 15 (<= 14), you need to manually copy the following DLL files from the
.. \Windows\System32\
folder to the
.. \Program Files\PTV Vision\PTV Visum 14\Exe\
folder:
- python27.dll
- pythoncom27.dll
- pythoncomloader27.dll
- pywintypes27.dll
- (#VIS14965)
-
Data model
- (#VIS10686)
During the reading additively of an Access-Database with PuT lines the error message 'Mandatory attribute element index invalid' is shown by the vehicle profile element. The attribut exists in the table and is set correctly.
The message is shown in one of the following cases:
[ Permalink ]
- The network allready contains the line that is about to be imported to the network.
- In the parameter settings of importing the database the conflict avoidance is selected to 'ignore'.
Example:
The time profile already is contained in the network, with an index (LRELEMINDEX) of 1 to 7. The index in the database that is about to be imported reaches from 1 to 8. During the skipping, the entrys are compared but because the index 8 in the model is missing (and is not added because of the setting 'ignore') you get the error message 'Mandatory attribute element index invalid'. Because of the line hierarchie there are inherited error messages generated, e.g. for the vehicle journeys. If you choose the parameter settings by 'frequent cases > Read timetable' or change the settings manually from 'ignore' to 'overwrite object/course' the error message will not be shown again because the line route will be completed to the index 1 to 8 before.
- (#VIS10315)
How to extrapolate indicators like volume, passenger kilometers and revenue from analysis period (AP) to analysis horizon (AH)?
Such a projection (typically from daily to yearly values) is done by means of the projection factor.
[ Permalink ]
Dependent on the indicator to be calculated the projection factor can be set for PuT valid days (Network -> PuT valid days) or demand segments (Demand -> TSys/Modes/DSegs -> Demand segments -> Edit).
- (#VIS14493)
What do the codes AH and AP mean and what are time intervals?
Visum offers several time intervals for analysis. Thereby, it is differed between analysis period (AP), analysis horizon (AH) and time intervals (TI). Here, AH is an over a projection factor selectable multiple of AP. ZI mostly is a user-defined time slot (mostly within AP).
[ Permalink ]
- (#VIS10715)
How are the cross-section values of link labes calculated? At attributes like 'name' only one value of dircetion is suggested.
At the link labels the cross-section of both directions is suggested. What is suggested as cross-section can be defined for each link attribut. Many attributes get add up (i.e. number of routes, link volumes, user-defined attributes), for others, the average (i.e. v0 PrT), the maximum (i.e. length, link type, slope) or the minimum (i.e. plan no.) is suggested. For attributes that may contain text (i.e. name) there is no average - in this case the value of the direction whose start node is smaller than the destination node is taken. For user-defined attributes, the average-logic can be defined by the user.
[ Permalink ]
- (#VIS10686)
-
Dialogs
- (#VIS25312)
The Start page cannot be shown completely, instead an error message is shown:
'Currently only a part of all available information can be shown because no internet connection is established with this computer. Please connect to the internet and reopen the start page to benefit from all the services provided by the start page and to receive the latest news on PTV Visum.'- With Windows 7 it can happen that the Start page cannot be displayed. The solution is still in progress and will be released as #18049 in the Release Notes.
[ Permalink ]
- The Start page uses the default port 80 for HTTP requests, which is possibly blocked in this network. Port settings are currently not available.
- (#VIS28612)
The dialog language is German. How to change it to English?
Change the following setting:
[ Permalink ]
Hilfe -> Lizenz -> Sprache 1 -> Englisch
Help -> License -> Language 1 -> English
Notes:
- The language choosen in the setup is independent of the language of the installed software.
- Since the release 2020 additional languages are available, and the software choses the language of the operating system.
- (#VIS12581)
Sometimes, the dialogs 'insert line/line route' or 'insert stop point (options)' do not appear.
After undocking a second screen, these dialogs are still shown on the position, that once was on this second screen and are not visible any more now. You can solve this as follows:
[ Permalink ]
Extras -> Options -> User interface -> reset dialog position.
- (#VIS29699)
Why is the Node attribute 'ControlType' not available in a dialog or list, or why can't it be chosen from the dialog '..: select attributes'?
This can happen in the following dialogs (Lists, Editors):
- The dialog 'Quick view (Nodes)'.
- The dialog 'Create node'.
- The List 'Nodes'.
- The Junction editor with the tabs 'Geometry' and 'Signal timing'.The Add-on 'JEDI'/'Junction editor and control' is not contained in the used license.
[ Permalink ]
Please refer to sales.traffic@ptvgroup.com.
- (#VIS25312)
-
Graphical operations
- (#VIS21176)
How can I save the results of a flow bundle analysis in a matrix?
The procedure 'Save demand matrix from route volumes' in the Procedure Sequence -> Matrices
was used to store the results from a flow bundle analysis in a matrix. Since PTV Visum 15 this procedure is not available anymore.By default demand matrices from flow bundle calculations are saved as formula matrices in the Visum model.
[ Permalink ]
Therefore, the procedure 'Save demand matrices from route volumes' is redundant and has been removed.
(Visum-12393 in c:\Program Files\PTV Vision\PTV Visum 15\Doc\Eng\Overview_Visum15.pdf)
The automatic generation is set with the option:
Calculate -> General procedure settings -> Volumes -> Generate formula matrices for flow bundle matrices with code
- (#VIS16421)
How can I perform a flowbundle analysis with blocking back turned on to see the current flows?
See the example together with a readme file:
[ Permalink ]
http://vision-traffic.ptvgroup.com/faq-files/PTV_BB_FlowBundle.zip
- (#VIS14258)
Is it possible to save the content of the network editor directly out of Visum? Where is the function ''Screenshot'' in the menu ''Extras'' to be found?
For an output regardless of the format, the following approach is appropriated:
[ Permalink ]
- You can save the content of the window of a graphical editor (without title bar) as .jpg with File -> Export -> JPG Export (Screenshot) (since Visum 12.5) or with Extras -> Screenshot (until Visum 12 inclusively). The screenshot is identical with the cutout of the network editor.
- New since Visum 12.5:
Besides, for every editor with graphical content there is the buttom ''JPG Export (Screenshot)'' (symbolised as a camera) in the tool bar. It can be found in the network editor, in the timetabe editor (graphical timetable and block view), in the transfers display of regular services and in the signal time-space diagram.
- You can save the content of the network window in the voctor-based SVG-format via File -> Save as/Export -> SVG Export.
- (#VIS30925)
1) Between 2 Main zones, no Flow bundle paths can be shown.
2) In the dialog 'Edit flow bundle term'/'Traffic types' a warning is shown:
'These settings are ignored for implicitly stored paths (->LUCE). Instead, all paths traversing active links are considered, i.e. all options except external trips.'
The results of the 'Equilibrium assignment LUCE' are not stored as path trees, but in a different structure as implicitly stored paths (called 'bushes') which leads to limitations for Procedures that are based upon path trees:
[ Permalink ]
1) Flow bundles cannot take any Main zones into account. (This is documented as bug VISUM-20937.)
2) Flow bundle Traffic types cannot be taken into account.
- (#VIS10234)
Is it possible to export isochrone boundaries as shapefile?
Yes, this is possible in two steps:
[ Permalink ]
1) Out of existing isochrones, create new POI area objects with the AddIn '2D-Isochrone -> POI':
Scripts -> VisumAddIn -> GIS -> '2D-Isochrone -> POI'.
2) Export these POI objects as shapefile:
File -> Export -> Shapefile
- (#VIS21176)
-
Graphics
- (#VIS17317)
When choosing the map service 'OpenStreetMap...' or 'Bing Maps', while a (local/national) coordinate system is already active, Visum displays a dialog with the following text:
'You have chosen a map service that supports map display per tile.
Maps can only be displayed per tile if Visum uses the same projection as the map service.
Otherwise, the map can only be displayed after all tiles have been downloaded and transformed.
Do you really want to change the projection and recalculate all network coordinates?'
<Adjust projection> <Retain projection>
What should I do?This dialog points to the fact, that the chosen map service uses a different coordinate system than currently active.
[ Permalink ]
'Retain projection' will cause Visum to transform and resample the downloaded map tiles. This might degrade image sharpness.
For most networks, using local or national coordinate systems like UTM, 'Retain projection' will be the best choice.
When choosing 'Adjust projection', the map tiles will be displayed as downloaded, and the network will be transformed. This is reversible.
The map services 'OpenStreetMap...' or 'Bing Maps' use the coordinate system 'Sphere Mercator'.
- (#VIS24229)
The background map 'OpenStreetMap (CycleMap)' is shown with the watermark message 'API Key Required'.
The map service 'OpenStreetMap (CycleMap)' is offered by Gravitystorm Limited and needs since July 2017 a user specific API key. For more information please refer to:
[ Permalink ]
http://thunderforest.com/
and to obtain an API key refer to:
http://www.thunderforest.com/docs/apikeys/
Use the API key in an URL template for a new additional map serice as follows:
Edit -> User preferences -> GUI -> Background map -> Click here to insert a new map service:
Name: (userdefined, for example: thunderforest.com Cyclemap)
Url template: tiles://%SUBDOMAIN%.tile.thunderforest.com/cycle/%TZ%/%TX%/%TY%.png?apikey=ABCD (ABCD is a dummy, replace this by your key)
Subdomains: a,b,c
Projection: Sphere_Mercator / GCS_Sphere
- (#VIS30544)
On loading the background map, map tiles are shown on the wrong position and from different zoom levels.
This can happen in the interaction with the firewall used in the network.
[ Permalink ]
Following workarounds are possible:
- Set the option 'Automatically detect settings': Internet Explorer -> Configuration -> Internet options -> Connections -> LAN settings
- Rename the file
c:\Program Files\PTV Vision\PTV Visum 2020\Exe\HttpLib.NET64.dll
tentatively and start PTV Visum again. (If this helps, you will need to repeat this after each Service pack.)
- Turn off any firewall 'Deep scan' function. (Ask your IT for support.)
- If all these workaround do not help, and if the background map can be dispensed: Use an adapted version of the STD.GPA without displaying the background map and save it as:
c:\Users\%USERNAME%\AppData\Roaming\PTV Vision\PTV Visum 2020\;12.50
- (#VIS10901)
Some loaded background files cannot be roated. In the dialog 'Background objects, the parameters 'Rotate' and 'Transparancy' cannot be edited. Why not?
- Raster graphics like JPG can be rotated, but once exceeding sizes of 5000 x 5000 pixels, they are subject to restrictions, due to the used library. Workaround: Divide the image file, reduce the resolution or rotate them in image editing software.
[ Permalink ]
- Visum can visualize DXF/DWG files, but the used library cannot rotate them. Workaround: Rotate these models in a CAD software.
- (#VIS21249)
Opening the 3-D network view leads to an error message:
'The 3-D network view cannot be opened.'
Additionally:
'An update of the graphic driver might solve the problem.'
Sometimes a different error message is shown:
'Creating compressed texture failed.'
The 3-D network view depends on a current graphics driver, supporting OpenGL.
[ Permalink ]
Not supported issues are expected with:
- Operating systems from Windows 7 downward.
- Older laptops (try to avoid any energy saving graphic card variants and options, sometimes multiple graphic cards are available)
- Remote Desktop (RDP) from Windows 8 downward, try VNC instead.
Recommendation: Even if Windows indicates that the driver is up to date, look for the graphics card name in the web (e.g. on the manufacturer website), compare the driver version numbers and install the current version manually.
Laptops often use multiple graphic cards, but for energy saving reasons not always the most suitable graphic card is assigned to be used.
In case of e.g. NVIDIA graphic cards you can set this up manually:
1) In the Start menu type 'NVIDIA' to open the app 'NVIDIA Control Panel '.
2) Choose 'Manage 3D settings' -> 'Program settings'
3) Via 'Add' choose PTV Visum. This needs to be repeated for every (new) installation.
4) 'Select the preferred graphics processor for this program:' -> 'High-performance NVIDIA processor'
- (#VIS17344)
How to display graphically vehicle journeys as link bar?
How to show volumes or other attributes of one or several vehicle journeys as link bar?
- Use the line filter to filter one or several vehicle journeys.
[ Permalink ]
- Choose indirect attributes for the link bar (marked by one or two arrows denoting the relation of 1:1 or 1:n).
As it is an attribute of items (changing on the course of a vehicle journey), select a line 'item' attribute.
It works with the following bars for example for the volume:
1) Standard bar with attribute SumActive:Line route items\SumActive:Using time profile items\SumActive:Vehicle journey items\Volume (AP)
2) Using a line bar you already start with line route items. Attribute : SumActive:Using time profile items\SumActive:Vehicle journey items\Volume (AP)
'Using' means that the attribute is known for the PuT-route items (stop point to stop point), but the same value is available on the used links in between too.
You will find similar examples in the manual under 'Use cases for version comparison'.
- (#VIS25524)
The map service 'Bing Maps [aerophoto]' or 'OpenStreetMap (Mapnik)' is set as background map but is not shown.
In PTV Visum: Edit graphic parameters -> Background map -> Map service.
The preview returns only the warning:
'Unable to call background map with the current settings.
Background map could not be called by server of the map service used.
Check the parameters of the used map service and your internet connection. The server of the used map service might be temporarily unavailable.'
Inserting static Internet maps (Insert mode -> Backgrounds -> Network editor -> (left mouse button) -> Internet maps) from Bing Maps or Open Street Map fails with:
- 'Tile 1 could not be created, because one or more partial tiles could not be retrieved from the server of the map service.'
- 'Could not create tile 1. Error code: -1011'
The Request.log file holds:
'The requested security package is not available'The problem only occurs since PTV Visum 17 under Windows 7. Other releases of PTV Visum and PTV Vissim are not affected.
[ Permalink ]
The solution is still in progress and will be released as #18049 in the Release Notes.
- (#VIS26147)
When using a display supporting some UHD or 4K/4K2K standard, icons might be very small, where some texts might be larger and others smaller.
PTV Visum 18 will support the 4K2K standards.
[ Permalink ]
Workaround (as example for PTV Visum 17):
- Select the file
C:\Program Files\PTV Vision\PTV Visum 17\Exe\Visum170.exe
- Right-click to open the context menu.
- Choose: Properties -> Compatibility
- Set the option 'Override high DPI scaling behavior.'
- Try the options for 'Scaling performed by:'
- (#VIS14495)
Why are not all network objects (i.e. stop points on a link) displayed?
Check the following settings in the graphic parameters of the particular networks objects:
[ Permalink ]
- Button 'Avoid overlapping when drawing':
By activating, only one of the network objects is displayed when serveral objects overlap.
- Layer order:
This causes an overlapping of network objects by others.
- Button 'Draw until scale':
By activating, network objects are drawn dependent on the actual scale.
- (#VIS12086)
The illustration of a PDF-file, in that transparent polygons were received, is really slow or the transparence of color is lost on paper or in a PDF-document.
The reason is due to program libraries, GDI+ and the Postscript drivers, that do not work together correctly and that we are not able to change. Workaround:
[ Permalink ]
Generate a SVG file 'optimized for Inkscape' in Visum. Then, convert this file to PDF in Inkscape via File -> Save as -> PDF via Cairo.
- (#VIS31999)
Why is the Background map 'OpenStreetMap' not available anymore anh how can I add a background map from OpenStreetMap?
The map service 'OpenStreetMap' is not intended for commercial purposes and was removed:
[ Permalink ]
https://operations.osmfoundation.org/policies/tiles/
Instead, from PTV Visum 21 on map services rendered by HERE based upon OpenStreetMap data are used.
These are available in
Graphics -> Edit graphic parameters -> Background map -> Map service
as the map services 'PTV ...'
- (#VIS16087)
How can I integrate a Web Map Service (WMS) or a web map tile service (WMTS)?
1) Map services can be added here:
[ Permalink ]
Edit -> User preferences -> GUI -> Background map:
Examples for WMS services:
- http://osm-demo.wheregroup.com/service?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&BBOX=%LEFT%,%TOP%,%RIGHT%,%BOTTOM%&TRANSPARENT=true&WIDTH=%WIDTH%&HEIGHT=%HEIGHT%&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=TRUE&STYLES=&LAYERS=osm&SRS=EPSG:3857
- http://data.wien.gv.at/daten/wms?request=GetMap&version=1.1.1&width=%WIDTH%&height=%HEIGHT%&layers=REALNUT2009OGD&styles=&format=image/png&BBOX=%LEFT%,%TOP%,%RIGHT%,%BOTTOM%&srs=EPSG:4326
Example for a WMTS service:
- tile://maps.wien.gv.at/basemap/geolandbasemap/normal/google3857/%TZ%/%TY%/%TX%.png
- tile://%SUBDOMAIN%.tile.openstreetmap.org/%TZ%/%TX%/%TY%.png
with the subdomain a
2) Choose this service to be displayed:
Graphic -> Edit graphic parameters -> Background map -> Map service.
Tip: If the connection or the server is too slow, you can still use the map service to insert static internet maps.
Even if the URL to a map service does not work, you can try to load a static background from that service. As long as the dialog ''Add background'' is still open, you can find a log file in the folder for map tiles, i.e.:
C:\Users\%USERNAME%\Documents\InternetMaps\Request.log
Refer to:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS15306/
Proxy server or map services which need a separated authentification are not supported.
- (#VIS31467)
The background map of the map service 'OpenStreetMap (Mapnik)' loads slow and only partly.
The cause for this is neither the software nor the license, but the availability of this map service, which can vary depending on the used network and the time of day.
[ Permalink ]
The PTV AG only offers an interface to this public map service, but cannot guarantee or influence the availability of it.
- (#VIS15306)
The map service 'HERE', 'Bing Maps [aerophoto]' or 'OpenStreetMap (Mapnik)' is set as background map but is not shown.
In PTV Visum: Edit graphic parameters -> Background map -> Map service.
The preview returns only the warning:
'Unable to call background map with the current settings.
Background map could not be called by server of the map service used.
Check the parameters of the used map service and your internet connection. The server of the used map service might be temporarily unavailable.'
Inserting static Internet maps (Insert mode -> Backgrounds -> Network editor -> (left mouse button) -> Internet maps) from Bing Maps or Open Street Map fails with:
- 'Tile 1 could not be created, because one or more partial tiles could not be retrieved from the server of the map service.'
- 'Could not create tile 1. Error code: -1011'The display of the background map or inserting (static) Internet maps from BING or OSM is probably prevented by the proxyserver.
[ Permalink ]
Only for PTV Visum:
You can analyse this by creating a file, which will be saved temporarily to the project directory for backgrounds:
File -> Project directories -> Edit project directories -> Type 'Background'
i.e.: C:\Users\%USERNAME%\Documents\InternetMaps\Request.log
To create this file try to load a static background from a map service which was not reached for the background map:
Network editor -> Insert mode -> Network -> Backgrounds -> (Left-click in the Network editor) -> In the dialog ''Create background'' choose the option 'Internet maps', and as 'Map service', choose the map service which was not reached. Click 'Preview' and - as long as the error message is shown - you will find the log file Request.log in the project directory for backgrounds.
This file can explain why the tile server could not be reached.
For PTV Visum and PTV Vissim:
Usually Visum/Vissim users cannot change the proxy server, therefore the following text might be relevant for your network administrator.
PTV Visum and PTV Vissim deliberately keep no (encrypted) authentication data, but use the operating system settings under:
Control panel -> Internet Options -> Connections -> LAN settings
A) In case a proxy server or firewall limits the internet access:
- The download of PNG and XML files should be allowed.
- Exclude the following URLs from being blocked:
For HERE:
https://xserver2.cloud.ptvgroup.com/services/rest/XMap/tile/
For OSM (until PTV Visum 20):
1) http://a.tile.openstreetmap.org/
2) http://b.tile.openstreetmap.org/
3) http://c.tile.openstreetmap.org/
For Bing:
1) http://ecn.t0.tiles.virtualearth.net/tiles/
2) http://ecn.t1.tiles.virtualearth.net/tiles/
3) http://ecn.t2.tiles.virtualearth.net/tiles/
4) http://ecn.t3.tiles.virtualearth.net/tiles/
5) http://dev.virtualearth.net/REST/V1/Imagery/Metadata/
B) Usually settings for the operating system (commonly used by Internet Explorer) rule the abilities to access the internet through a proxyserver. These can be found following:
Control panel -> Internet Options -> Connections -> LAN settings
Either set the proxyserver address and port, or depending on the network policy set the options
'Automatically detect configuration settings'
and/or
'Use automatic configuration script'
with an address to a file called like
'autoproxy.pac'
C) On computers still using Windows Server 2003 or XP, the internet options are not always recognized correctly (including these applying to the proxy server). The option 'Automatically detect settings' is sometimes ignored. Try to use the option 'Automatic Configuration Script' instead. This does not apply to any MS operating systems released since Vista.
- (#VIS17317)
-
Import and Export
- (#VIS14293)
How to import files from CUBE to Visum?
Since Visum 12.5 there is the add-In 'Import Cube network' by Scripts -> VisumAddIn -> Import.
[ Permalink ]
The import of CUBE consideres the following network objects - nodes, areas, lines, connections and PuT lines. Additionally, turn attributes like penalties and prohibited turns can be read in. Required files:
1) ASRI shp files for nodes (including shx, dbf files).
2) ESRI shp files for lines (including shx, dbf files).
Further files (optional):
1) ASCII text file for turn time penalties and prohibited turns.
2) Cube PuT line file (*.lin) in ASCII format (+ve node numbers mark stop points, where boarding and alighting is permitted).
- (#VIS24977)
After clicking 'Open' in the dialog 'Open: Background' an error message is returned:
'Cannot load background file ..'The DWG file is written in a newer format as supported by the used PTV Visum release.
[ Permalink ]
If you want to find out, open the binary DWG file in a text editor. The first characters might be like 'AC1027', which meets 'AutoCAD 2013'.
Recommendation: Update to the current release:
http://cgi.ptvgroup.com/php/vision-setups/?lng=en
- (#VIS25298)
The import interface 'PuT supply from Visum' fails with an error message: 'The calendars in the source and target network are not compatible.'
The valid days of source and target version file do not match, e.g. the target version file uses no calendar, the source version file some annual or weekly calendar.
[ Permalink ]
Workaround: Equal this setting, e.g. choose in the source the option 'No calendar':
Network -> Network settings -> Basis -> Calendar
- (#VIS14294)
How to import data from TransCAD to Visum?
Use the AddIn 'Import TransCAD network', found in:
[ Permalink ]
Scripts -> VisumAddIn -> Import
The interface handles following network objects: nodes, zones, links, turns, connectors and PuT lines.
Please note: importing PuT lines needs manual editing afterwards, because of differences in the data models between TransCAD and Visum.
The interface needs files in formats, which can be exported from TransCAD:
- ESRI shapefiles for the network's topology and geometry.
- ASCII/TXT on turns.
Necessary files:
1) ESRI shp for nodes (including the shx and dbf file).
2) ESRI shp file on links (including the shx and dbf file).
Optional files:
1) ASCII text file holding turn times and closed turns.
2) ESRI shp file holding stops and the order they are served (including the shx and dbf file) [needed to import PuT data].
3) ESRI shp file on routings (including the shx and dbf file) [needed to import PuT data].
Note that this AddIn can be used to import a model into a new empty version file first, and use the interface 'PuT supply from Visum' to integrate this model into any existing model and network.
- (#VIS13918)
The connection to a Personal Geodatabase fails:
'No ESRI found!'
'A 64 Bit version of ESRI ArcGIS is not yet available. Cannot connect to a geo database'.- Note that this interface support only up to ArcGIS 10.3, not yet ArcGis Pro.
[ Permalink ]
- When using PTV Visum 16 or older: Using a 64 bit operation system, you have to install Visum 32 bit in addition, to connect PTV Visum with a Personal Geodatabase.
- Since PTV Visum 17 only Visum 64 bit is available, but is able to connect to the 32 bit Personal Geodatabase interface.
Workaround:
- Export the data to a Shapefile and either import this into PTV Visum (File -> Import -> Shapefile), or visualize this als Background:
Network -> Backgrounds -> Network editor -> Insert mode -> (click into the Network editor) -> Create background -> Graphics file -> OK -> Open: Background -> (select Shapefile) -> Open
Please contact PTV Support for suggestions if you need to visualize data held in ESRI products:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS14522/
- (#VIS10267)
Is it possible to import AutoCad DWG models as edges and nodes?
No, not directly.
[ Permalink ]
It is very well possible to use AutoCad DWG models to build a Visum model from. There may be two different cases:
1) The DWG file contains a CAD model showing streets, crossings, pavements, cycle ways, lanes and lamp posts in all detail.
2) The DWG file contains a CAD model holding a nodes-edges-model.
Ad 1) These models are not suitable as Visum model, though as background very suitable. Having the detailed street as image in the background, a nodes-edges model is built within Visum more easily. To use such DWG files as background, you can load them in Visum as background file of type DWG.
Ad 2) These models might be suitable in many cases as foundation for a Visum model. However, Visum cannot read DWG nor DXF directly as nodes and edges. Therefore you need a detour. A possible detour leads over the DXF format, which will be transformed into the SHP format (Esri-Shape). Visum can read SHP files as edges and nodes.
You might find suitable tools in the web by giving in DXF2SHP or use a GIS program like MapInfo.
Remark:
Visum 9 offered the old program DxfKonv.exe (typically in c:\Programme\PTV_Vision\VISUM940\DXF\DxfKonv.exe) but this only transforms DXF files into backgroundfiles (according to the old format HGT).
- (#VIS11350)
Can Visum import data in the format of 'General Transit Feed Specification'/GTFS (former 'Google Transit Feed')?
Yes, such data can be imported by using an Add-In:
[ Permalink ]
- Visum15/16/17: Scripts -> VisumAddin -> Import -> Import General Transit Feed.
- Visum12.5/13/14: Scripts -> VisumAddin -> Import -> Import Google Transit Feed.
- Visum11/11.5/12: Scripts -> VisumAddin -> PuT -> Import Google Transit Feed.
- (#VIS12606)
How to import geographical objects (nodes, polylines or areas) from MapInfo (*.TAB) to Visum?
Export the MapInfo-file as Shape-file (Tools -> Universal Translator - from TAB to SHP) and import these to Visum (File -> Import -> Shapefile).
[ Permalink ]
- (#VIS17038)
When exporting or copying to Excel (by file or clipboard, of lists or matrices) number formats or number values are sometimes changed. Why?
This might be related to the setting for the decimal symbol as point or comma, which needs to be equal for both Visum and Excel:
[ Permalink ]
- Excel can use the corresponding Windows setting: Control panel -> Regional and Language -> Format -> Additional settings/Customize -> 'Decimal symbol' and 'Digit grouping symbol'.
- Excel 2010 can override this option: Excel Options -> Advanced -> Use system separators -> 'Decimal separator' and 'Thousands separator'.
In Visum this is a program setting:
- Visum10/11/12: Extras -> Options -> Formats -> Decimal separator.
- Visum13/14: Edit -> User Preferences -> Formats -> Decimal separator.
- (#VIS15533)
The ANM export fails with the error message:
'The link polygon of link .. is too short. The saved file would not be readable. ANM export is canceled.'The links seem to be too short, because the used geographic coordinate system (WGS84 lat/lon thus in degrees) is not suitable for small models.
[ Permalink ]
Recommendation:
Transform the network into a suitable metric coordinate system:
Network -> Network settings -> Co-ordinate system -> <GCS_WGS_1984> -> Projected Coordinate Systems -> Utm -> Wgs 1984 -> WGS 1984 UTM Zone XX.prj .
Use the Wikipedia page on UTM
http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
to determine the correct zone number. In Visum N or S denote the northern and southern hemisphere.
- (#VIS16555)
How can I generate stops, stop areas and stop points from a shape file?
1) Import the shape file as nodes.
[ Permalink ]
2) Integrate these nodes into the network: Nodes -> (Rightclick to enter the context menu) -> Aggregation of isolated nodes.
3) To generate a stop area and a stop point for each stop, choose between the following options:
'Integrating nodes ...':
- 'Always as node with stop point'.
- 'Always just as stop point'.
- (#VIS21805)
When importing multiple shapefiles with links, the nodes to connect links from both files are doubled, and thus the links are not connected.
In result, any assignment fails with an error message:
'No path found from zone .. to zone ..'Workaround:
[ Permalink ]
- Export the links as shapefile again, but do not export the node numbers: File -> Export -> Shapefile -> (enter the filename) -> OK -> Columns -> (remove the attributes 'From node number' and 'To node number') -> OK -> OK
- Delete all nodes (and thus also all links).
- Import this shapefile again: Now the nodes are created again, only one per link end, also at the former borders of the original shapefiles.
- (#VIS27029)
How can I import a complete PuT timetable, which I imported from HAFAS or GTFS date including the line and stops hierarchy, from one Visum version file into another?
File -> Import -> PuT supply from Visum
[ Permalink ]
Manual: 27.5 Importing PuT supply
Example: c:\Users\Public\Documents\PTV Vision\PTV Visum 17\Examples\Importer PuT\
Webinar: https://www.youtube.com/watch?v=GQ_kK6CqDW8
- (#VIS10494)
Which files can be imported from an EMME model into PTV Visum?
Are any procedures in the EMME model imported to PTV Visum too?Use the interface in: File -> Import -> Emme
[ Permalink ]
Following EMME files can be imported:
- EMME/2 data file.
- EMME/2 modes.
- EMME/2 Network.
- EMME/2 Turns.
- EMME/2 Vehicles.
- EMME/2 Transit Lines.
- EMME/2 trip tables.
Procedure parameters are not imported, only network data.
The EMME/3-format is not supported. Workaround: Save the EMME/3 model as EMME/2.
- (#VIS10709)
Importing a shapefile fails with the error message 'This shapefile type is not supported'.
PTV Visum does not support following data types for polylines:
[ Permalink ]
- '(15)' stands for 'POLYGONZ', which are polygons with Z-coordinates. These are not supported because polygons in Visum do not have any Z-coordinate. Workaround: When saving the shapefile in ArcGIS (or another software) select another data type - POLYGON or POLYLINE.
Since PTV Visum 11.50-02 PolygonM und PolygonZ are supported, but the Z-coordinates are omitted.
- '(8)' stands for MultiPoint and is still not supported. Workaround: Use Point instead.
- (#VIS14293)
-
Installation
- (#VIS11504)
The coordinate systems cannot be selected because the dialog 'Projections' displays neither folders nor projection files (*.PRJ).
Sometimes it happens that no projection files are copied to the folder:
[ Permalink ]
c:\Users\%USERNAME%\AppData\Roaming\PTV Vision\PTV Visum 2021\Projections\
You can easily correct this by copying the contents of the folder
c:\Program Files\PTV Vision\PTV Visum 2021\Exe\Projections\
to
c:\Users\%USERNAME%\AppData\Roaming\PTV Vision\PTV Visum 2021\Projections\
While running the setup, the projection files are copied to the EXE folder, to which normal user accounts do not have any access.
Starting Visum, it is checked whether the current user already has a projections folder. Each user gets his own folder, thus can delete non-used projections or add additional projections.
If the list of projections is empty, the folder 'Projections' does exist, but is empty. You can delete this folder and start Visum again. This triggers an attempt to copy the projection files. If the folder remains empty, you can copy the files manually.
- (#VIS11316)
Is PTV Visum available as demo version?
Yes, a demo version can be obtained from:
[ Permalink ]
https://www.ptvgroup.com/en/solutions/products/ptv-visum/demo-version/
- (#VIS30152)
Starting PTV Visum/PTV Vissim fails with an error message:
'The buffer file for license data has an old format'1) Open a windows explorer window.
[ Permalink ]
2) Remove this file (for example for Visum 2021):
%AppData%\PTV Vision\PTV Visum 2021\licenses.data
3) Remove this file if present (for example for Visum 2021, this file is only created if the license has been selected by an administrator):
C:\ProgramData\PTV Vision\PTV Visum 2021\licenses.data
4) Start PTV Visum/PTV Vissim and select the license once.
- (#VIS14531)
Where do I get information about the changes that are included in service packs?
Service packs and release notes are available at:
[ Permalink ]
http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl/
For each service pack, the release notes can be previewed (click 'view').
This document contains descriptions for:
- Significant changes
- New features
- Bugfixes
During the installation of a service pack, the file
ReleaseNotes_Visum_ENG.pdf
is copied into the folder
..\Program Files\PTV Vision\PTV Visum xx\Doc\Eng\; 9.00
- (#VIS17326)
PTV Visum does not start, because the CodeMeter dongle is not correctly recognized.
This happens on a laptop, shortly after reactivating it after an energy saving mode ('hibernation').
Typical error messages can be:
- 'Error@AllocateHandle: CmStick Entry not found, Error 200'.
- 'CmDongle runtime system is not installed'.
- Windows Systemtray: 'USB device not recognized'.
- CodeMeter control center: 'No information on any CodeMeter licenses available. No CmContainer found.'- Reboot the computer. If the dongle works again, energy saving settings (includes switching off USB ports) should be checked.
[ Permalink ]
- After the reboot, check for a defective USB port: Try the dongle on another USB port.
- After checking the USB ports: Try the dongle on another machine. When plugging this dongle out and in, its LED will blink in red and green. The last blink should be green, if not this dongle could be defective (see
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS17590/ ).
Additional Workarounds:
- In case the dongle is plugged into a USB HUB, plug it into an USB port of the used laptop.
- Use an USB HUB with an own power supply.
- In case 'USB Watchdog' or similar monitoring software is active, deactivate/uninstall this.
- In case USB3.0 is used, update the internal USB chip set drivers (often available as patches from the laptop's manufactorer).
- (#VIS14530)
Where are new features of a release version described?
The document 'Overview_VisumXX.pdf' describes all main improvements and changes:
[ Permalink ]
...\PTV Vision\PTV Visum XX\Doc\Eng\Overview_VisumXX.pdf
- (#VIS13275)
Is PTV Visum available as 32 bit version?
Does PTV Visum support 64 bit operation systems?Visum 32 bit is only available up to the release PTV Visum 16, from PTV Visum 17 on a 32 bit version is not available anymore.
[ Permalink ]
Visum 64 bit cannot be run on a 32 bit operating system.
Since PTV Visum 10, PTV Visum supports 64 bit and can be run on Windows Vista/7/8/10 64 bit. By using a 64 bit operation system, you are able to allocate considerably more main memory (RAM) than by using a 32 bit machine, from which particulary working with big and memory-intensive networks benefit. As long a process fits into the main memory, the computing speed is not influenced by the memory demand.
Visum 32 bit can be operated on a 64 bit platform too, but only in 32 bit mode.
- (#VIS14127)
During the installation an error message appears:
'This is not a valid PTV Visum folder!'Instead of a setup, an update was executed, without installing Visum first. You have to install Visum by executing a setup before updating it in a second step.
[ Permalink ]
- (#VIS10302)
How to set up the 3 GB option like in Windows XP for 32 bit VISTA or Windows 7, to extend the virtual address space from 2 GB to 3 GB for a 32 bit process?
If one of the following error messages show up, setting up the 3 GB option might be very helpful or even necessary:
[ Permalink ]
- 'A memory allocation failed. The virtual address space of the process has been used completely or does not include a coherent free block of sufficient size'.
- 'Insufficient memory.'/'Out of memory'.
- 'Error: Cannot load background file'.
- 'Error in memory management. No free heap handle'.
- 'Building connection legs...'.
To extend the address allocation space used by a 32 bit process, you can use the command BCDEDIT:
1) Look in the start menu for a shortcut to the command prompt.
2) Right click it and open it 'as administrator'.
3) Use this option:
BCDEDIT /Set IncreaseUserVa 2700
Alternatively use this option:
BCDEDIT /SET LOADOPTIONS ' /3GB /DISABLE_INTEGRITY_CHECKS'
4) Reboot the computer.
Please note: The use of these options on any 64 bit system is not recommended. PTV AG is not liable for any dammage caused by using these options.
Source: http://msdn.microsoft.com/en-us/library/ff542202.aspx
- (#VIS13273)
What is the difference between a release version and a service pack, and where can I download them?
- Release versions are independent program versions which can be updated with service packs.
[ Permalink ]
Service packs include new features and bugfixes. They can only be used to update the corresponding release version, which means that e.g. service pack 18.00-06 requires a base installation of PTV Visum 18. The updates are cumulative, meaning that the latest service pack includes all earlier ones.
Installation setups for release versions are located at:
https://cgi.ptvgroup.com/php/vision-setups/?lng=en
Releases until PTV Visum 14 are located at:
http://cgi.ptvgroup.com/cgi-bin/en/intern/tcs_download.pl
Service packs are available at:
http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl
- (#VIS16413)
After installing and starting Visum, a warning is displayed:
'HBEFA data warning': 'No or incomplete installation of HBEFA data. Please install the HBEFA data package provided by PTV.'
Running the HBEFA setup fails with an error message:
'Runtime error (at 76:150):
Could not call proc.'The voluminous HBEFA data are provided with a separated setup, available at:
[ Permalink ]
https://cgi.ptvgroup.com/visionSetups/en/
Notes:
HBEFA 3.1: Only up to and including PTV Visum 16.
HBEFA 3.3: From PTV Visum17 up to and including PTV Visum 18.
HBEFA 4.10: Only from PTV Visum 2020 on.
- (#VIS11857)
The import or export of a MS-Acces database fails with the following error message:
- 'Could not start VisumDbServer.exe'
- 'VisumDbServer not registered correctly'The component VisumDBServer.exe/VisumMdbServer.exe was not registered correctly. Try the following methods to register it again:
[ Permalink ]
1) Help -> Register as COM Server
2) Run any current service pack suitable to your installation.
3) Register VisumXXX.exe again:
Start -> Execute -> 'C:\Program Files\PTV_Vision\VISUM170\Exe\Visum170.exe' -reg
4) As a test, disable the antivirus software, and if positive add an exception.
- (#VIS17389)
Starting Visum14 in Windows XP leads to the error message:
'Visum140.exe is not a correct application for a Win32 system'Visum14 is not supported on Microsoft Windows XP (and neither on Windows Server 2003).
[ Permalink ]
- (#VIS11217)
What are the requirements on hardware and operating system?
https://cgi.ptvgroup.com/vision-help/SystemRequirements/en-us/index.htm
[ Permalink ]
- (#VIS13000)
On a 64 bit operation system Visum 32 bit shows one of the following error messages and then crashes:
- 'A memory allocation has failed. There is either no more virtual memory available or the biggest available continuous block is not big enough.'
- 'A memory allocation failed. The virtual address space of the process has been used completely or does not include a coherent free block of sufficient size'.
- 'Out of memory'.
- 'Runtime Error!
Program: c:\Program Files (x86)\PTV_Vision\VISUM110\Exe\Visum110.exe'Even on Windows 64 bit, Visum 32 bit is able to address only a maximum of 3.8 Gb memory.
[ Permalink ]
Thus, the solution may be to use Visum 64 bit to be able to address more memory. Please apply to customerservice@vision.ptvgroup.com to get a setup and a license file. Also consult the download area on
http://cgi.ptvgroup.com/php/vision-setups/?lng=en
http://cgi.ptvgroup.com/cgi-bin/en/intern/tcs_download.pl (only for Visum14 and older)
to check whether these files are already available.
- (#VIS9260)
Where can I find the PRJ files that describe the coordinate systems?
After running the setup for PTV Visum the PRJ files are stored to the following folder:
[ Permalink ]
c:\Program Files\PTV Vision\PTV Visum 2020\Exe\Projections\
Each user has an own copy from which PRJ files can be added or removed:
c:\Users\%USERNAME%\AppData\Roaming\PTV Vision\PTV Visum 2020\Projections\
- Vista: C:\Documents and settings\%USERNAME%\Anwendungsdaten\Visum\125\Projections\
- Windows7: C:\Users\%USERNAME%\AppData\Roaming\Visum\120\Projections\;10.00
- (#VIS19354)
The setup freezes during the step 'Register Previewer...'
- Use the current setup:
[ Permalink ]
Setup_VISUM_14.00-16_x64_Full.exe
from
http://cgi.ptvgroup.com/cgi-bin/en/intern/tcs_download.pl
- Make sure the dongle with the matching license is accessible.
- Update the dongle firmware:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS17429/
- Workaround: Abort the setup (which was almost finished). If the software starts, try to register the COM server and the Previewer manually:
Help -> Register as COM server
- (#VIS13272)
Where do I get information about new servicepacks?
Information about new servicepacks can be found on the Start page in Visum.
[ Permalink ]
Servicepacks can be downloaded from:
http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl
You will find information about your password in the file 'DownloadServicePacks.txt' that is located in the folder Documents or Docs respectively of your Visum installation.
- (#VIS19935)
Can PTV Visum/PTV Vissim be used temporarily in home office with a software dongle?
Can PTV Visum/PTV Vissim be run on a virtual server or on cloud computing services using a virtual license server with a software dongle?For flexible temporal use of the software by software dongles Mobile Working Licenses are offered. Please contact:
[ Permalink ]
traffic.info@ptvgroup.com
PTV Visum/PTV Vissim can be run on a virtual server or on cloud computing services, but need access to a dongle, which needs to be plugged in somewhere in the network: A computer or a network USB host, for example:
https://www.seh-technology.com/de.html
http://www.digi.com/products/usb/anywhereusb#models
This works only with a network license. It is not possible to plug in a dongle with a single seat license on a virtual machine.
Note that PTV Visum/PTV Vissim is a Windows desktop application which always uses a window handle and needs to run in a user session.
Take care of the graphics card when using PTV Vissim for 3D animations:
http://vision-traffic.ptvgroup.com/en-uk/training-support/support/ptv-vissim/faqs/visfaq/show/VIS19126/
- (#VIS19001)
After the installation by the setup or of any servicepack, any attempt to start PTV Visum leads to a program crash, the graphical user interface freezes or is not displayed at all. Only the splash screen or a dialog is displayed:
'PTV Visum Transport Planning System has stopped working'Typically this has a cause in the installation environment. Please try the listed workarounds in the given order. If a workaround has already solved the problem, do not continue with the next workaround. Note some might need Administrator credentials or the support of your IT.
[ Permalink ]
- Start PTV Visum/PTV Vissim with administrator rights.
- Make sure to be meeting the current system requirements: https://cgi.ptvgroup.com/vision-help/SystemRequirements/en-us/index.htm
- Make sure to install the current setup with Administrator credentials: http://cgi.ptvgroup.com/php/vision-setups/?lng=en
- Or update to the current servicepack: http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl?id=1255
- Install any outstanding Windows Updates.
- Check the installation status for .NET, the current version should meet 4.7: https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed
- Check whether either the desired local dongle is present or the server search list for the desired network license is set:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS16133/
- Implement the solution regarding the removal of licenses.data of this FAQ:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS25390/
- Disable any virus scanner, firewall or other security software temporarily and try to start PTV Visum/PTV Vissim. In case this works, define an exception. Examples: DigitalPersona or HP ProtectTools, TrendMicro.
- Update or remove 'Dell Backup and Recovery'.
- Install again the current 'CodeMeter Runtime-Kit XXX for Windows 32 and 64 Bit' on the client machine: http://codemeter.com/us/service/downloads.html
The installed version needs to meet the version on the license server which might need an update too: https://cgi.ptvgroup.com/php/vision-setups/?lng=en
Once the update was installed, restart the service:
CodeMeter Control center -> Action -> Stop CodeMeter service
CodeMeter Control center -> Action -> Start CodeMeter service
- (#VIS10284)
Is it possible to install PTV Visum including Python with a Silent-Installation?
Yes, with PTV Visum 202 that is possible. Refer to the Installation Manual in:
[ Permalink ]
https://cgi.ptvgroup.com/php/vision-setups/?lng=en
or
c:\Program Files\PTV Vision\PTV Visum 2020\Doc\Eng\Installation_Visum2020.pdf
Ch. 5.
For PTV Visum 18 and earlier release versions:
Unfortunately, Python can not be installed in the background because the setups for Python are not 'silent' and are not created by PTV.
Although you can use a manual setup to create a Setup.inf file to prepare for a silent installation, if Python components are mentioned in the Setup.inf file, they will be ignored.
If you want to install PTV Visum via a package, you always have to install Python manually.
If you want to install Service packs for PTV Visum later it is possible to package them, even if they exchange any Python components of the Python installation or inside the Visum installation folder.
- (#VIS11504)
-
Junction editor
- (#VIS14862)
How can I determine turn travel times?
Turns needs the same correlation between capacity and travel time as links. The only difference is that a turn does not have a length and the travel time is given as t0 (input value) plus a turn time addition (from the volume-delay functions).
[ Permalink ]
The TSys-specific turn addition T0_PrTSys is a calculated value which results from the attribute t0 and the result of the check whether the turn is valid for that TSys.
- (#VIS14862)
-
Licensing
- (#VIS17590)
PTV Visum/PTV Vissim does not start. Instead an error message is shown:
- 'Error@AllocateHandle: CmContainer Entry not found, error 200'.
- 'CmStick Entry not found, error 200'.
In the CmDust report this dongle is not listed anymore as a CmContainer, possibly neither as an available drive.
(In case of a single workplace license in the CmDust report of the client, in case of a network license in the CmDust report of the server.)A single workplace license is expected on the local machine, a network license can be found on any machine in the network (including the local machine).
[ Permalink ]
When plugging this dongle out and in, its LED will blink in red and green. The last blink should be green, if not this dongle could be defective.
In that case create a CmDust report (of client and server), and a context file:
- CmDust report:
Start -> Programs -> Codemeter -> Tools -> CmDust.
This tool creates a file called CmDust-Result.log (the containing folder is opened automatically).
- Context file:
Taskbar -> System tray -> CodeMeter Control center -> License -> License Update -> Next -> Option 'Create license request' -> Next -> Option 'Extend existing license' -> Next -> Commit
Please send these to:
https://secure.ptvgroup.com/php/vision-hotline/index.php
- (#VIS17790)
PTV Visum/PTV Vissim does not start and shows an error message like:
'CodeMeter License Server is not a network server, Error 111.'
'CodeMeter Runtime Server is not a network server, Error 111'Only on the license server:
[ Permalink ]
Open 'CodeMeter WebAdmin':
System tray -> CodeMeter Control center -> WebAdmin -> Configuration -> Server -> Server Access
Network Server -> Enable -> Apply
- (#VIS29578)
On starting the software, in the dialog 'License Management', after clicking on 'Borrow license' and adding the current Activation key an error message is displayed:
'Invalid activation key'The activation key is expired. Please request a new activation key on:
[ Permalink ]
https://secure.ptvgroup.com/php/vision-hotline/index.php
- (#VIS16214)
1) Can I use a single-workplace license over Remote Desktop?
2) PTV Visum does not start. Instead an error message is displayed:
'The user maximum of the CodeMeter network is reached, Error 212.'
'All existing licenses of the network dongle are already used by other computers. Error code: 212.'
The Eventlog in the CmDust report states:
'API Event WB218 (NO LICENSE AVAILABLE) occurred (returned to caller)'
3) Single users occupy unwillingly multiple licenses.
1) Yes, but only as a single user on a desktop OS.
[ Permalink ]
2) and 3)
Occupying multiple licenses can happen when the CodeMeter software on the license server registers multiple sessions. This can happen when PTV Visum/PTV Vissim/PTV Vistro is once started from a local desktop and then via Remote Desktop.
In that case you need to differentiate whether a single-workplace license or a network license is used:
- When trying to access a single-workplace license over Remote Desktop on a server OS, this is not possible.
Solution: Upgrade to a network license. Please contact sales.traffic@ptvgroup.com or your local distributor.
- When trying to access alternately locally and through Remote Desktop a single-workplace license on a desktop OS,
- or when multiple users try to access a single network license (with or without Remote Desktop),
- or when a user tries to access a single network license alternately locally and through Remote Desktop,
the available licenses can be already allocated.
The reason: For each available network license, a session ID is counted and allows 5 parallel instances. Logging off and logging in again via Remote Desktop can lead to a new session ID. This feature has been introduced by WIBU Systems AG for the product CodeMeter to avoid that parallel logins with the same user account permit multiple license assignments.
Workarounds:
- Perform sessions with PTV Visum either locally or through Remote Desktop, but not alternately when e.g. calculations are in progress.
- Do not log off the Remote Desktop session to preserve the session ID.
- Always start PTV Visum 'As administrator' if possible.
- Purchase additional users for your network license.
- Note that the CodeMeter Runtime version 7.00 is suffering from a bug with the StationShare feature, causing every instance per session ID to be needing a license. Update the CodeMeter Runtime to at least version 7.00a.
https://www.wibu.com/support/user/user-software.html
- (#VIS29540)
When trying to check out a license in the dialog 'License Management' or when starting the software, an error message is displayed:
'Featuremap .. is used more than once'https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS29540/
[ Permalink ]
- (#VIS26896)
The dialog 'License Management' shows a warning:
'No CodeMeter stick found'- If running Windows 7 and CodeMeter 6.50c is installed, downgrade to CodeMeter 6.20:
[ Permalink ]
https://cgi.ptvgroup.com/Setups/Setup_Vision-Traffic-License-Server_6.20.exe
Notes:
- Any locally used, single seat license does NOT need the option 'Set codemeter runtime as server'. Only when operating a network license on a license server the option 'Set codemeter runtime as server' MUST be set.
- The setup checks the OS, and offers an option 'Install Codemeter Runtime 6.20' or 6.50c, depending on the OS.
- For all other cases, please refer to:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS10338/
- (#VIS19091)
Updating the firmware on a CodeMeter dongle fails:
'Connection to the update server failed (Error WB5000). Please check the selected server name and your network connection.'To update the firmware, you need an internet connection with the update server of Wibu Systems. In many cases from inside a network, this connection needs to pass a proxy server.
[ Permalink ]
An automatic way to setup this, can be found in:
http://vision-traffic.ptvgroup.com/faq-files/Overview_CodeMeter.pdf - section 6.4
The proxy server can also be set manually in the CodeMeter WebAdmin:
Systemtray -> CodeMeter Control center -> WebAdmin -> Configuration -> Proxy
You might copy the settings available from:
Control panel -> Internet Options -> Connections -> LAN settings
Workaround: Try to perform the update on another computer, or from outside the network.
- (#VIS19484)
During a PTV Visum session the title bar shows the string 'INVALID DONGLE HANDLE' and an error message is shown:
'One of the following licenses is requiered:
. CodeMeter 100321:900000000
Failure reason: The request cannot be sent to another CodeMeter License Server, Error 102.'Some antivirus software like F-Secure offer a 'Deep scan function', which might lead to the termination of CodeMeter. To prevent this, add the CMRuntime.exe to the antivirus whitelist.
[ Permalink ]
- (#VIS16133)
Starting PTV Visum/PTV Vissim/PTV Vistro fails with an error message:
- 'Error when checking out the main license server (server: .., license number: ..). The license number 10000 has not been found on a Codemeter stick. Error code: 200.'
- 'One of the following licenses is required:
* CodeMeter 100321:900000000
Failure reason: CodeMeter License Server not found, Error 101.'
- 'One of the following Licenses is required.
CodeMeter 100321:.. CmContainer Entry not found, Error 200.'
- 'Cannot start program'.
- 'Expected customer no.: 900011111'.
- 'Error@AllocateHandle: CmStick Entry not found, Error 200'.
- 'Error@AllocateNetworkHandle: CodeMeter Runtime Server is not found, Error 101' or 'Failure reason: CodeMeter License Server not found, Error 101.'
The following item could be contained, too:
'Error@AllocateHandle: The Expiration Time has expired - the encryption cannot be operated, Error 35'.
It is a network license and not a single-user license.The network license can not be found. Reasons can be:
[ Permalink ]
1) The limit date is exceeded. How to proceed, see https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS16132/
2) The license server could not be found. In that case please check on the client the server search list in the CodeMeter WebAdmin (see Overview_CodeMeter.pdf, ch. 4.4):
System tray -> CodeMeter Control center -> WebAdmin -> Configuration -> Basic -> Server Search List
3) The CodeMeter installation at the license server was not yet started using the option 'Run Network Server' (see Overview_CodeMeter.pdf, ch. 3.3).
4) The license requested by a client is not available on the license server.
5) The network connection between client and server could not be established.
- (#VIS27336)
The following error message appears when starting PTV Visum:
- 'The requested license (server: .., license number: ..) cannot be used ..'
- 'The selected license (server: .. box: .., license number: ..) cannot be used, since the related CodeMeter stick is not available.'
- 'The selected license cannot be used, since the related CodeMeter stick is not available.'- Check whether the current license matches the started yearly release version. Typically the current License activation ticket was not yet activated.
[ Permalink ]
- Check that the correct dongle is plugged in.
The setting from the license selection is saved in the file 'licenses.data'. If this file contains an invalid setting, this error message will be displayed too.
The solution is to delete this file. This forces a new license selection.
Depending on the configuration, this file is in %appdata% or %programdata%.
Important: Changes in %programdata% are only possible with administrator rights.
- Open Windows Explorer.
- Open the path %appdata%\PTV Vision\.
- Open the Visum folder (e.g. ..\PTV Visum 2020\ )
- If available, delete the file 'licenses.data'.
- Open the path %programdata%\PTV Vision\.
- Open the Visum folder (e.g. ..\PTV Visum 2020\ ).
- If available, delete the file 'licenses.data' with administrator rights.
- Restart PTV Visum.
- (#VIS14523)
Where do I find information about the license size and available add-ons?
The license and network size are listed in:
[ Permalink ]
Extras -> License.
Here you can get information about add-ons as well. Unlocked moduls can be seperately activated or deactivated here. To change your license please apply to our marketing department under:
sales.traffic@ptvgroup.com
- (#VIS19072)
When activating a license in the WebDepot
http://activate.trafficsoftware.ptvgroup.com/overview.php
on clicking in the step 'Available Licenses' on 'Activate Selected Licenses Now' an error message is displayed:
'An internal error has occurred. PleaseThe dongle's firmware needs to be updated. For instructions see:
[ Permalink ]
http://vision-traffic.ptvgroup.com/faq-files/PTV_Update_CodeMeter_Firmware.pdf
See also:
http://vision-traffic.ptvgroup.com/faq-files/Overview_CodeMeter.pdf , Ch. 6.3.
Note on network licenses: Issued licenses will be withdrawn, users will receive an error message and already running longterm processes might be terminated. It is not recommended to run the update during normal operation, announce a service window instead.
In case if any error 'WB500' note:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS19091/
- (#VIS29706)
Starting PTV Vissim/PTV Visum fails with an error message:
'You are using an academic license. In this case the telemetry servers must be reachable. Please ensure that this computer is connected to the internet and then restart this program'https://www.ptvgroup.com/en/solutions/products/ptv-vissim/knowledge-base/faq/visfaq/show/VIS29706/
[ Permalink ]
- (#VIS19090)
Starting PTV Visum 18/PTV Vissim 11 (or later releases) fails with an error message:
'Error when checking out the corresponding old license (server: .., license number: 900xxxxxx). The license number 900xxxxxx [has] not [been] found on any Codemeter stick. Error code: 200'
'If you have more than one Codemeter stick please check if the correct stick is plugged in. For a network dongle, please check the server search list in Codemeter WebAdmin, too.'
Workaround: Update to the current service pack:
[ Permalink ]
http://cgi.ptvgroup.com/cgi-bin/en/traffic/visum_download.pl?id=1255
- (#VIS25390)
Every time PTV Visum/PTV Vissim is started, a dialog is shown:
'A license update was installed on the CodeMeter stick. Therefore you need to select new licenses.'
'You have installed a license update on the CodeMeter stick. Therefore you need to select new licenses.'
When in the dialog 'License Management' a license has been selected and confirmed with the button 'Start' an error message is shown:
'The license data could not be saved to file 'c:\ProgramData\PTV Vision\PTV Visum 2021\licenses.data':
Access to the path 'c:\ProgramData\PTV Vision\PTV Visum 2021\licenses.data' is denied.'The file licenses.data was once defined by an administrator.
[ Permalink ]
1) Workaround if it is not needed anymore:
- Open a Windows Explorer with administrator credentials.
- Delete the file
licenses.data
from the folder
%programdata%\PTV Vision\PTV Visum xx\
(if present)
- Restart PTV Visum once as Administrator and select the license in the dialog 'License Management'. If the dialog is not shown: Help -> License -> Manage licenses.
This will overwrite the file:
%AppData%\Roaming\PTV Vision\PTV Visum xx\licenses.data
2) Workaround if it is still needed:
- Start PTV Visum/PTV Vissim on one client.
- Select the correct license.
- Copy the file
licenses.data
from the folder
%programdata%\PTV Vision\PTV Visum xx\
to all other clients.
- (#VIS29468)
The following error messages appear when starting PTV Visum:
'The license data cannot be encoded.'
'The required license (..) is damaged (reason: ..) and can no longer be used. Please contact the support department to obtain an update for your license.'https://www.ptvgroup.com/en/solutions/products/ptv-vissim/knowledge-base/faq/visfaq/show/VIS29468/
[ Permalink ]
- (#VIS10338)
CodeMeter returns an error message that I don't understand. What can I do?
1) Read in the FAQs in the section 'Licensing' whether the error message is explained here.
[ Permalink ]
2) Send us a support request:
https://secure.ptvgroup.com/php/vision-hotline/index.php
To analyze the cause for this error message we need a CmDust report (of client and server), and a context file:
- CmDust report:
Start -> Programs -> Codemeter -> Tools -> CmDust.
This tool creates a file called CmDust-Result.log (the containing folder is opened automatically).
- Context file:
Taskbar -> System tray -> CodeMeter Control center -> License -> License Update -> Next -> Option 'Create license request' -> Next -> Option 'Extend existing license' -> Next -> Commit
Tip: Pack all files in a ZIP file and attach this to the support form.
Please refer to the following document for further instructions:
http://vision-traffic.ptvgroup.com/faq-files/Overview_CodeMeter.pdf
- Chap. 7.1 (Direct Support -> 4) creating a CmDust report
- Chap. 6.1 Creating a context file
- (#VIS14486)
Starting Visum the error message 'License ... invalid' appears. Who can help here?
Visum licenses possibly are limited. In this case, contact the Traffic Customer Service (customerservice@vision.ptvgroup.com).
[ Permalink ]
- (#VIS31998)
In the dialog 'License Management' a license cannot be selected and a click on 'Borrow license' leads to an error message:
'This license is not yet prepared for borrowing. Notify an administrator who can prepare the license and then try again.'This is a program error (which is solved with the next Service pack) in the dialog 'License Management', impeding the use of a borrowable license, when this had not been prepared for borrowing (even if this was not intended).
[ Permalink ]
Workaround:
1) Start the License Management.
2) Klick 'Manage borrowing'.
3) Enter Pasword: PTV
4) Confirm with OK.
5) Select the license and leave the dialog with 'OK'.
- (#VIS24273)
When starting a new PTV Visum/PTV Vissim release (e.g. PTV Visum 18) an error message is displayed:
'The maintenance period of the requested license (server: .., license number: 900xxxxxx) has expired. The license can therefore not be used. Update your license with the activation code sent to you. Please check your email account or contact your administrator.'
'You cannot use this license (server: .., license number: 900xxxxxx), because the maintenance period has been breached.'This error message occurs when a license activation ticket was not yet used: e.g. PTV Visum 17 was already installed and running, then a user installs PTV Visum 18 and tries to start it.
[ Permalink ]
Check with your license administrator whether PTV Order Management already sent you a license activation ticket by email. If so, then perform the following steps.
1) Insert the dongle into a local USB port.
2) Open this link in Chrome or Firefox (not Edge or Internet Explorer): http://activate.trafficsoftware.ptvgroup.com/index.php
3) Enter the license ticket activation code that you received and follow the instructions.
If any license activation ticket should be missing, please contact ordermanagement@ptvgroup.com mentioning the corresponding License no.
Note: Without any valid maintenance contract, no license activation ticket was sent. Refer to your local distributor or email traffic.sales@ptvgroup.com.
- (#VIS17429)
While running the setup for PTV Visum 18, an error message is displayed:
'The addressed CmContainer has an invalid Firmware Version (e.g. too old), Error 224'The dongle's firmware needs to be updated. For instructions see:
[ Permalink ]
http://vision-traffic.ptvgroup.com/faq-files/PTV_Update_CodeMeter_Firmware.pdf
See also:
http://vision-traffic.ptvgroup.com/faq-files/Overview_CodeMeter.pdf , Ch. 6.3.
Note on network licenses: Issued licenses will be withdrawn, users will receive an error message and already running longterm processes might be terminated. It is not recommended to run the update during normal operation, announce a service window instead.
- (#VIS19070)
Only the background map for the map service 'Bing Maps (aerophoto)' is not shown anymore, other map services are still working.
Its license in
Help -> License -> Bing Maps (valid until ...)
is listed as expired and thus disabled.https://www.ptvgroup.com/en/solutions/products/ptv-vissim/knowledge-base/faq/visfaq/show/VIS19070/
[ Permalink ]
- (#VIS16132)
PTV Vissim or PTV Visum does not start. Instead an error message is shown:
- 'Requested license, number .., was temporary and has expired. (Error code 35). Please contact your distributor regarding the extension of your license.'
- 'The expiration date of the requested license number .. has passed. (Error code 35).
Please contact your distributor for a renewal of your license.'
- 'The program cannot be started.
Expected customer number: 900111111.
Error@AllocateHandle: The Expiration Time is overrun - the en-/decryption cannot be operated, Error 35.'
The error message might state also following entries:
'Error@AllocateHandle: CmContainer-Entry not found, Error 200.'
'Error@AllocateNetworkHandle: CodeMeter RunTime Server not found, Error 101.'
Error 35: Dongle is limited in time
Error 200: License is limited in time or license No. cannot been found
This is a single workplace and no network license.For PTV Visum 15/PTV Vissim 8 and newer:
[ Permalink ]
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS24273/
In case the current License activation ticket has been used already, please create a support request:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS10338/
Until PTV Visum 14/PTV Vissim 7:
During the installation, a time-limited license file has probably been choosen. The limit date can be found in the file name, for example:
333333_VISUM1400_900011111_x64_2018_06_30_Init.zip
Please check the download site for a current unlimited license file:
http://cgi.ptvgroup.com/cgi-bin/en/intern/tcs_download.pl.
For example for Visum14 64 bit:
333333_VISUM1400_900011111_x64_Init.zip.
Please use these tools to exchange a license, available at the same site:
- LicenseUpdater_win32.exe for a 32 bit installation.
- LicenseUpdater_x64.exe for a 64 bit installation.
If the CmDust report contains the error message 'API Error 35 (EXPIRATION TIME OVERRUN) occurred!', please check the download site for a CodeMeterUpdate file:
333333_CodeMeterUpdate_900011111_2-2222222_2019_12_30.zip
Unpack the zip file and double-click the contained *.WibuCmRaU file, while the CodeMeter dongle is plugged into the computer.
If an expected unlimited license file (and in case a CodeMeterUpdate file) is not available, please contact:
ordermanagement@ptvgroup.com
- (#VIS17590)
-
Lists
- (#VIS15613)
The chaining of attribute values in a list is cut with '...'. How to chain attribute values over the limit of 255 characters?
The setting 'Maximum string length' may stay blank:
[ Permalink ]
Network -> Network settings/parameters -> Attributes -> 'Maximum string length (blank = unlimited)'.
- (#VIS30728)
How can I obtain volumes per Line and per Stop point to Stop point corridor?
Use the List 'Time profile items' and group on:
[ Permalink ]
- Line route item\Stop point number
- Next time profile item\Line route item\Stop point number
- Line name
Line route name
- Direction code
Sum on:
- Volume (AP)
Notes:
- Use the button 'Time profile' to restrict the List to only Time profile or to 'All'.
- For the latter, use a User-defined formula attribute on Time profile items concatenating both Stop point nrs to sort per corridor:
NUMTOSTR([LINEROUTEITEM\STOPPOINTNO])+'_'+NUMTOSTR([NEXTTIMEPROFILEITEM\LINEROUTEITEM\STOPPOINTNO])
- (#VIS18189)
How can I analyse the number of transfers, divided per traffic system pair, for a certain area?
For the complete network, use the list Passenger transfers' 'PuT TSys transfers objects'.
[ Permalink ]
For a certain area:
- Use a 'territory' object to set all contained objects active ('Mark objects in territory for spatial selection').
- Take some AddVal attribute on stops, fill it with 0 and set it to 1 only for active stops.
- Open the list 'Passenger transfer stops / time profiles' (list 'PuT transfer objects'), set it up to group on the attributes:
From time profile item\Line route item\Line route\TSys code
To time profile item\Line route item\Line route\TSys code
From time profile item\Line route item\Stop point\Stop area\Stop\AddValue 1
To time profile item\Line route item\Stop point\Stop area\Stop\AddValue 1
- Use the attribute
Passengers transferring direct (AP)
with the aggregate function 'Sum'.
Example: http://vision-traffic.ptvgroup.com/faq-files/PTV_PuT_Transfer_objects.zip
- (#VIS15613)
-
Matrix editor
- (#VIS11961)
How can I quickly and easily import matrices from Excel/TXT/CSV formats?
1) By using the AddIn 'Load Matrix From Excel'.
[ Permalink ]
2) By using copy & paste of cell ranges.
3) By reproducing matrix formats by using i.e. a short programm code, i.e. the $O-format:
http://vision-traffic.ptvgroup.com/faq-files/PTV_ReformatMatrix.zip
- (#VIS12427)
How to save VISUM matrices in $O or $V format with a defined number of decimal places
The number of decimal places is a direct property of the net element matrix respectively a matrix attribute.
[ Permalink ]
For example you may have a look at the quick view after chosen a matrix under tab Matrices. There you can edit the number of decimal places (also possible under Lists/Matrices). This number of decimal places only effects output in ASCII/text format, binary matrix files always hold the entire accuracy of the values.
- (#VIS11961)
-
Miscellaneous
- (#VIS25609)
A network, possibly imported via some interface or created with some older Visum release, is displayed with a shift against the background map.
Note that networks once created without any explicit georeference might not match to the background map. Try to retrieve the original source, like a paper map and the coordinate system of that map.
[ Permalink ]
If the network extents do not exceed about 100 x 100 km, you might try to transform from an (implicit) local coordinate system into a projected coordinate system (like an UTM zone). Using WGS84 coordinates for this transformation is not recommendable, as in geographic coordinate systems the scale changes from the equator towards the poles.
Consider this workaround to correct at least for a large shift by a translation:
- Open two Visum instances, one (A) holding the network and one (B) showing the background map at the wanted location.
- Make sure B is set to the wanted coordinate system.
- Choose two nodes in the network A, for which you can identify the corresponding position in the background map in B.
- Add these as nodes to B too.
- The coordinate values of these nodes are available in A and B in the window 'Quick view' or in the list 'Nodes' as node attributes.
- Copy these values to MS Excel.
- Calculate the differences.
In case of some small shift, consider to use the tool 'Measure distance mode' of the Network editor to estimate the differences.
- Use the dialog 'Transform network co-ordinates' to shift the network to the right location: Network -> Network settings -> Scale -> Transform network co-ordinates
- Set the coordinate system again, and deactivate the option 'Transform coordinates in case of changes'.
- The node coordinate values can also be used to estimate a scale factor and a rotation, which the dialog 'Transform network co-ordinates' can also take as input.
It is recommended to perform the translation, rotation and scale correction in separate steps.
- (#VIS14522)
How can I contact the customer support if I have a question or want to report an error?
Make sure to have checked the FAQs first:
[ Permalink ]
https://www.ptvgroup.com/de/loesungen/produkte/ptv-visum/knowledge-base/faq/
You can reach PTV Support following:
https://secure.ptvgroup.com/php/vision-hotline/index.php
Use PTV Visum/Vissim and get this form preallocated with the environment values, like OS and license number:
Menu -> '?' or 'Help' -> (Technical) Support.
Please describe your request as accurately as possible, i.e. which steps lead to a crash. Any solution or workaround will be provided as soon as possible.
Please add a Support package: https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS29099/
Maintenance customers are also supported on modelling issues and software handling.
Feel free to make suggestions for improvement and product development.
- (#VIS18557)
PTV Visum reproducibly crashes, maybe without a clear error message.
Please provide us with:
[ Permalink ]
a) a screenshot of the complete Visum window including the error message.
b) a crash dump, created in the latest service pack of the program version
To create this:
- Open the Task Manager.
- Reproduce the crash.
- Leave all dialogs open.
- In the Task Manager, select the Visum process (tab 'Details' or 'Processes'), open the context menu and choose 'Create dump file':
https://support.microsoft.com/de-de/kb/931673/en
- Pack the crash dump file into a zip archive. Please name the zip file following the used release and servicepack to enable us the analysis, e.g. 18.02-04.
- Upload the zip archive to a FTP/cloud space (request one in your support request if needed).
- If there is no dialog shown when it crashes and therefore creating a crash dump is not possible please edit the registry, administrator rights are needed.
The registry setting of DWORD 'DontShowUI' under 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting' is decisive.
The value of this key has to be set to 0 so that a dialog is shown. If the key doesnt exist you can create it.
- (#VIS29099)
How can I create a Support Package?
1) Open the Windows Start menu and enter: 'Diagnostics'.
[ Permalink ]
Alternatively: Open the directory EXE\ of your PTV Visum installation.
2) Right-click on the matching Diagnostics.exe and select 'Run as administrator'.
The Diagnostics window opens. The Actions tab is shown by default.
3) Click 'Start Visum and use Process Monitor'.
A file selection dialog opens. Process Monitor is available here:
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
Config files are here:
http://vision-traffic.ptvgroup.com/faq-files/ProcmonConfiguration.zip
4) Click 'Open'.
5) If you are experiencing a specific error, then reproduce the error.
6) Close PTV Visum.
7) In the Diagnostics window, click the Support Package tab.
8) Ensure that all diagnostics reports are selected.
9) Press the button 'Create Support Package'.
For any issue regarding the installation of PTV Visum, use the tool Diagnostics to create a Support Package. This is a Zip file holding all relevant files to analyze the issue, but small enough to be sent via the Support form, the Support Portal, or by email.
Note: This tool is installed by the setup for PTV Visum 18.02-08 and later and creates a separate shortcut in the Windows Start menu. If only updates are used, you need to start this tool from the EXE folder.
- (#VIS16839)
After exchanging the coordinate system, the coordinate transformation leads to an error message:
'Transformation of one or multiple co-ordinates failed.
Object type: Points
Object key: ...'The set coordinate system is as stated a geographic system (which means: degrees), but some coordinates exceed the maximum of +90N or +180E degrees or minimum of -90N or -180E degrees. Probably, the coordinates of the network meet a metric (projected) coordinate system.
[ Permalink ]
Try to find out which metric (projected) coordinate system actually is used, and set it to that, without the option 'Transform coordinates in case of changes'.
- (#VIS16040)
A network seems to be shifted when shown against the background map from BING Maps or OpenStreetMap.
The reason for this shift is the difference in map datum, used by the coordinate system of the network and the coordinate system of the background map (usually Sphere Mercator). For the transformation of the map tiles of the background map from Sphere Mercator via WGS84 to the coordinate system of the network no suitable TOWGS parameter are available in the PRJ file of the coordinate system.
[ Permalink ]
Workarounds:
1) Add suitable TOWGS parameters to the PRJ file. You can find these for example on http://epsg.io/
2) Instead of using a respective national coordinate grid (that uses an own specific map datum), use an international standard, like:
..\Projections\Projected Coordinate Systems\Utm\Wgs 1984\
https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system
3) In case transform the network to WGS84 or UTM using a GIS software.
In case of (1), applying TOWGS parameter needs a transformation in two steps via WGS84:
First transform to:
Network -> Network settings -> (Scale ->) Coordinate system -> From file: 'Sphere_Mercator / GCS_Sphere'
Geographic Coordinate Systems -> World -> WGS 1984.prj
Confirm all dialogs with OK.
Then transform to the corresponding coordinate system:
Network -> Network settings -> (Scale ->) Coordinate system -> From file: 'GCS_WGS_1984'
Projected Coordinate Systems -> Utm -> Other GCS -> (e.g.) Irish_National_Grid_TOWGS.prj
Confirm all dialogs with OK.
- (#VIS9976)
The dialog ''Select spatial reference system'' only appears by reading a network file and not by reading a shapefile.
It ist not defined where the group $Network settings, in which the declaration for the spatial reference system is contained, stands in a network file. That is why Visum asks the spatial reference system before.
[ Permalink ]
With a SHP-file, this may not always be necessary because the spatial reference system could be defined in the belonging PRJ-file.
- (#VIS14832)
The set coordinate system (i.e. some projected coordinate system) does not match the network objects' coordinate values (i.e. meeting a geographic coordinate system, thus showing degree values).
How can I solve this?In
[ Permalink ]
Network -> Network settings -> Scale -> Coordinate system
the declared coordinate system has been saved. ('Visum' means that no coordinate system was declared.)
Choose the correct coordinate system, for example WGS84:
Geographic Coordinate Systems -> World -> WGS 1984.
Klick OK and uncheck the option 'Transform coordinates in case of changes'.
This will declare the coordinate system to meet the real network object coordinates.
- (#VIS26573)
The Bavarian Surveying Administration plans to replace the previous GK system (Gauss-Krüger) and introduce the European Terrestrial Reference System 1989 (ETRS89) with the Universal Transverse Mercator Projection (UTM).
How can I transform a network from DHDN GK4 to ETRS89 UTM32N?Make sure that the network meets the following coordinate system and that this is also set:
[ Permalink ]
Network -> Network settings -> (Scale ->) Coordinate system ->
Projected Coordinate Systems -> National Grids -> DHDN 3 Degree Gauss Zone 4_TOWGS.prj
Transform to:
Geographic Coordinate Systems -> World -> WGS 1984.prj
Then transform to the corresponding UTM zone:
Projected Coordinate Systems -> Utm -> Other GCS -> ETRS 1989 UTM Zone 32N.prj
- (#VIS31337)
The background map cannot be displayed.
Wenn trying to insert static backgrounds, a warning is displayed:
'Cannot insert backgrounds from online sources. No maps are available for the coordinates of the window section. Please check whether your network coordinates comply with the used projection and if the selected section lies within the valid coordinate range.'The coordinate values of the network elements do not match the set coordinate system.
[ Permalink ]
Typically the coordinate values match to a projected coordinate system e.g. 'WGS 1984 UTM Zone 32N'.
Either no coordinate system was set: 'Visum' means that no coordinate system was declared.
Or accidentally a geographic coordinate system e.g. 'GCS_WGS_1984' was set.
In
Network -> Network settings -> Scale -> Coordinate system
the declared coordinate system has been saved.
Choose the correct coordinate system, in this example ' WGS 1984 UTM Zone 32N':
Projected Coordinate Systems -> Utm -> Wgs 1984 -> WGS 1984 UTM Zone 32N.prj
Klick OK and uncheck the option 'Transform coordinates in case of changes'.
This will declare the coordinate system to meet the real network object coordinates.
- (#VIS25609)
-
Network editor & filter
- (#VIS21676)
When importing main zones as shapefile, how can I allocate zones to these main zones?
- Create a POI category.
[ Permalink ]
- Import the shapefile into this POI category.
- If more POIs exist, create a filter on this POI category.
- POIs -> (right-click to open the context menu) -> Convert active POIs ->
Dialog 'Convert Points of interest'
Convert Points of interest to: Main zones
Zones in polygon of main zone: Assign all zones
Delete Points of interest after completing the action: True
- (#VIS13979)
By adding or splitting a link the error message 'Invalid format for a length - qokm' appears.
The error message 'Invalid format for a length - qokm' may appear when the spatial framework was adjusted to a geographic system, like WGS84 or GCS_OSGB_1936. Both calculate in degree for ellipsoidal coordinates in Longitude and Latitude and they are both typically limited to Lon=180 and Lat=90. However, the coordinate values exceed (i.e. X=6425743, Y=5808882), because they were allocated by an Cartesian, metric coordinate system and therefore belong to a projected spatial framework. All versions since Visum 12 differ the calculation of link lenghts between geographic and projected spatial frameworks by considering the position of nodes and link polygones on an ellipsoid in case of a geographic spatial framework.
[ Permalink ]
Solution:
1) Open Network -> Network parameter, choose 'Visum (no projections)' and confirm with OK. This is also a workaround when the correct spatial framework is unknown.
2) Open again Network -> Network parameter and choose 'from file'. Now, you can choose the suitable PRJ-file.
Alternatively, the correct PRJ-file can be choosen directly, too. Deactivate the option 'Transform coordinates in case of changes'. Typically, this happens to networks for which the correct metric spatial framework is not apparently known or is inverted with a geographic spatial framework. That's the reason why this error message mostly appears in the English version.
- (#VIS14492)
Is it possible to use the display of isochrones for destination-related analysis (i.e. accessibility of center), too?
To receive a destination-related instead of an origin-related analysis, the following procedure is suited:
[ Permalink ]
- Excerpt the journey time matrix.
- Extract times to the respective (target-)zone.
- External conversion to an user-defined attribute for zones.
- Read in the attribute an visualize it in 2D.
- (#VIS12685)
How can I merge neighboring Zones or Territories?
1) Export the Zones or Territories as network file. Use 'frequent cases' to select all necessary tabels.
[ Permalink ]
2) Open this network file with an editor and delete one of the Zones or Territories. In the table 'Surface items' the respective Faces have to refer to the same Surface. Opening this network file, Visum will merge the Zones or Territories. The points and edges of the common border will be removed by the 'normalizing' process.
Two adjacent Zones or Territories (with a common boundary) are defined in the network file as follows:
*
* Table: Surface items
*
$SURFACEITEM:SURFACEID;FACEID;ENCLAVE
1;1;0
2;2;0
*
* Table: Zones
*
$ZONE:NO;XCOORD;YCOORD;SURFACEID
1;98.9542;93.1333;1
2;140.7583;73.8187;2
If you simply delete the second zone and specify in the table Surface items that both Faces belong to the same Surface item, PTV Visum will merge both zones after opening the network file.
*
* Table: Surface items
*
$SURFACEITEM:SURFACEID;FACEID;ENCLAVE
1;1;0
1;2;0
*
* Table: Zones
*
$ZONE:NO;XCOORD;YCOORD;SURFACEID
1;98.9542;93.1333;1
- (#VIS13920)
How can I create or visualise fare zones for all stops?
The editor (available under Network -> PuT fare zones) is best suited for making smaller, manual changes. It often does not provide a clear enough overview when it comes making changes to larger networks.
[ Permalink ]
The following AddIns provide alternatives (Scripts-> VisumAddIn -> PuT):
1) Stop -> FareZone:
This AddIn uses a stop attribute to create fare zones from. This attribute may also list several fare zones per stop, separated by a comma.
This can also be a user-defined attribute, with data taken from some external source. You might simply copy the Stop list to Excel via the 'Copy cells' entry in the context menu, add the attribute values coding the stop to fare zone allocations, copy the attribute values and use the entry 'Paste cells' in the list context menu.
2) POI -> FareZone:
(This AddIn requires POI categories.)
Using this AddIn, you can create fare zones based on already available geographic objects and at the same time link stops to your newly created zones. In Visum, the limitations of fare zones are defined via polygons. The AddIn requires that a POI with a polygon is created for each fare zone and that the polygon includes all stops linked to the fare zone. These polygons could, e.g., be created by importing a shape file containing these fare zones. But even if polygons are drawn manually, they save time compared to linking stops to each fare zone in the Visum fare zone dialog.
3) FareZone -> POI:
Do you want to look at things the other way around? Using this AddIn, you can visualize the geographic expansion of fare zones. In Visum, fare zones have a number of stops, but there is no polygon to define their boundaries. This AddIn creates a POI with a polygon for each fare zone, including all of the zone's stops.
To get more detailed information on any of the AddIn functions, simply click the 'Help' button in the respective AddIn.
- (#VIS10290)
How to refresh the connector time for all connectors?
The connector time is calculated once for new created connectors over length and speed. These can be individually edited in the list 'Connectors' or by calling the respective dialog 'Connectors ... edit'. To set these for all connectors again, you can go on as follows:
[ Permalink ]
1) Refresh connector lengths:
Network -> Network settings -> Scale -> Option 'Recalculate the lengths of links and connectors' -> Key 'recalculate'.
2) Refresh connector times by using the following formula:
t0-TSys = (length * 1000(m) * 3600(s))/(4v0 kmh) * 100(m)) = length * 900 .
Then, implement these by:
Connectors -> (right mouse key) Context menu 'Connectors' -> Multi-edit -> Attribute: t0-TSys PuTWalk -> Key 'Attribute' -> Length * 900 .
- (#VIS13428)
How to create connectors?
There are three ways
[ Permalink ]
1. To create them manually
To connect only sensible nodes (e.g. as for PuT only nodes which are linked at least to one stop area) you may set a node filter accordingly and use the option 'Click only active objects'.
2. Using Connectors/Create...
In this way connectors will be created for all active nodes and zones. The maximum length refers to the distance between the nodes and the zone centroids, zone polygones aren't considered. If different values of maximum length shall be used (e.g. TSys bus - 300m/ft, railway - 600m/ft) the process can be executed in several steps. Firstly connect access nodes of all stop areas with distance 300m/ft, thereafter additionally nodes with distance 600m/ft their stop area is served by railway.
PrT connectors can only be connected to nodes with at least one link that is open to a PrT transport system.
PuT connectors can only be connected to nodes which have at least one link on which a transport system of the type PuTWalk or PuTAux is permitted or nodes to which a stop area has been allocated.
3. Scripts/VisumAddIn/PuT/Generate PuT zone connectors
This add-in has been available since Visum 11.5. The advantages of this add-in over the functionality 'Connectors/Create...' are:
- The radius of the catchment area isn't one fix value but an attribute of stop areas.
- The radius doesn't refer to the distance between the nodes and the zone centroids but to the zone polygon: if a zone polygone overlaps the radius creating a connector will be possible.
- The connectors systematically ensure that all PuT lines serving the area of a zone can actually be accessed from the zone via a connector. No PuT line will remain unused simply because it is inaccessible.
- You can specify barrier areas which are never crossed by a connector. Use them to model separating features in your model (e.g. rivers, motorways), which cannot be crossed walking.
- (#VIS14881)
Is it possible to allocate nodes to areas by assigning the number of the area (or the content of another attribute) to all nodes that lay inside of the zone polygon?
Yes, proceed as follows:
[ Permalink ]
1) Create a user-defined attribute on nodes that will obtain the zone number (alternatively use an addValue).
2) Nodes -> (Right-clicking) -> Multi-edit -> (Choose this user-defined attribute or an addValue) -> Intersect.
3) In the dialog 'Generate attribute value by intersection with source attribute' -> = Minimum or Maximum (overlapping zones of course not allowed).
4) Parameter for source objects:
- Network object zones.
- Attribute number.
- (#VIS12691)
How to digitalize surfaces and snap points?
You can position new polygon points directly on existing polygon points and merge them, if required. Permit snapping option via Edit > User Preferences > GUI > Network editor menu and define a snap radius.
[ Permalink ]
Then adjacent polygon points of other polygons are displayed as small circles and the mouse pointer turns into a lasso as soon as an existing polygon point can be snapped. This way, you can use existing points explicitly. If you don't want to snap the point just hold down the Shift key or switch off the option 'Permit snapping'.
- (#VIS10377)
How can I add additional stop points to a lineroute?
There are at least two solutions for this:
[ Permalink ]
A) If the line route is already running over the node (or the path) that should now become the route point with its new stop point, you can simply add it as route point:
Activate network object line -> 'all' or 'all stop points' -> select line with new stop point -> set check in the column 'IsRoutePoint'.
B) If the route needs to be changed to add the new stop point, you have to change the route graphically by catching the route (or multiple routes at the same time) with the left mouse button on particular route points and drag it:
1) Add a new stop point on the node or line.
2) Check whether the necessary transport systems are allowed.
3) Overview -> Lines -> Select 'line routes' in the dialog.
4) Click neighboring line:
All traversed line routes are selected. You can now deselect individual routes by clicking and simultaneously holding the <Ctrl> key.
5) Right click -> Digitize.
6) Click a neighboring stop point (or route point used as a node) to fix it.
7) Click the neighboring route again, hold the left mouse button and drag the line route 'to the stop point'.
8) Close the dialog 'Digitize the line route' with OK.
http://vision-traffic.ptvgroup.com/faq-files/PTV_How_to_add_an_additional_stop_point_to_a_line.pdf
- (#VIS29369)
How can I import Stops and automatically create a hierarchy of Stops, Stop areas and Stop points?
- If you only have a coordinate list, you can either convert this with a GIS into georeferenced point objects, or create a NET file to read them as Nodes to PTV Visum.
[ Permalink ]
- If the Stops are already available as georeferenced points, you can import them with a Shapefile to PTV Visum as a Nodes.
Then you can integrate these isolated Nodes into the network and at the same time convert them into hierarchies of Stops, Stop areas and Stop points:
- Nodes -> (Right-click to open the context menu -> Aggregate isolated nodes
- Either use the option 'Always as node with stop point' or 'Always just as stop point' because that creates a Stop point (either on the then integrated Node or on the next Link), along with a contiguous Stop area and Stop.
However, if complex hierarchies are needed with multiple Stop points per Stop area and also with multiple Stop areas, these must be edited manually.
- (#VIS19902)
Where can I find manuals, documentation, examples or tutorials?
The manual is available as online help in the menu
[ Permalink ]
Help -> PTV Visum Help -> leads to https://cgi.ptvgroup.com/vision-help/VISUM_2020_ENG/
Additionally with the same contents as PDF in:
Help -> PTV Visum manual
c:\Program Files\PTV Vision\PTV Visum 20\Doc\Eng\PTVVisum20_Manual.pdf
This path contains also additional documentation.
Example files are availalbe in:
Help -> Examples
c:\Users\Public\Documents\PTV Vision\PTV Visum 2020\Examples\
http://vision-traffic.ptvgroup.com/en-uk/training-support/support/ptv-visum/faqs/ -> search for 'COM'.
Tutorials are available in:
Help -> Examples
c:\Users\Public\Documents\PTV Vision\PTV Visum 2020\Quickstart Tutorial\
c:\Users\Public\Documents\PTV Vision\PTV Visum 2020\Tutorials\
Additionally you can watch recorded webinars here:
http://vision-traffic.ptvgroup.com/en-uk/community/webinar-archive/
Training opportunities can be found in:
http://vision-traffic.ptvgroup.com/en-uk/training-support/training/ptv-visum-courses/
- (#VIS14489)
Is it possible to display railroad lines as black-white dashed line?
Yes, use for the appropriate link type two stroke layers, one covering the other partially. See e.g. in the example KA.ver
[ Permalink ]
(easily found in Help -> Examples -> Open example Karlsruhe)
under Graphic -> Graphic parameters -> Links -> Display the classes 'Rail' and 'PuT'.
- (#VIS26277)
How can I propagate run and dwell times between links and PuT lines?
- To propagate speeds from Traffic systems onto links, use the link type attributes 'vDefault-PuTSys (..)'. To implement these, you might either set the attribute 'Strict' to True, or use the links' Special function 'Standard values' for 't-PuTSys'.
[ Permalink ]
- To propagate run times from links onto time profile items, use its Special function 'Set run and dwell times'.
- To propagate run times from PuT lines onto links, use its Special function 'Run times of links from run times of lines'.
The Special functions are accessible in the context menu of the respective network objects in the window 'Network', resp. in the dialog 'Multi-edit: Network -> Links/Lines/... -> (Right-click to open the context menu) -> Multi-edit -> Special functions
- (#VIS10277)
Is the special function for link standard values to allocate link type standard values to link attributes also available as procedure or COM method?
No, the procedure 'Edit attribute' and the COM methods 'GetMultiAttValues' and 'SetMulitAttValues' only provide the possibilty to set values for a single attribute. However, there are 2 smart ways to use these functions:
[ Permalink ]
1) By means of the methods 'GetMultiAttValues' and 'SetMultiAttValues' attributes of link types can be read into arrays and then saved to link attributes.
2) Use the procedure 'Edit attribute' and save it as procedures parameters file. This file can be read and executed over COM.
Note: Since Visum12.5 an additional link type attribute 'Strict' is offered. If selecting this, any changes made to the attributes of the link type are propagated to all allocated links of this link type.
- (#VIS21676)
-
Other procedures
- (#VIS15545)
Running TFlowFuzzy leads to an error message:
'Invalid counted values are available. Do you want to set this data to the active state?' In the log file there is written for several times:
'Invalid count value tolerance 0.000000 with count object zone...'.The error message is caused by zero or empty values in the attribute tolerances. TFlowFuzzy requires tolerances > 0.
[ Permalink ]
Workaround:
- Make sure that all counts have a tolerance > 0
- Use the option 'Use only network objects with volume > 0 and counted value > 0'.
- (#VIS31729)
Is an example available for the Procedure 'Estimate gravitation parameters (KALIBRI)'?
Example file: https://www.ptvgroup.com/faq-files/PTV_Visum20_How_to_calibrate_a_gravity_model.zip
[ Permalink ]
This demonstrates the necessary steps:
- Assignment
- Skim matrix calculation
- Create a histogram, classifiy to obtain the shares per interval. (Demand = matrix 25, classification matrix = matrix 26)
- Save from the histogram the intervals for Kalibri: Matrix histogram -> Save intervals. Note: Share = 0 for the first and the last interval.
- Setup the Procedure 'Estimate gravitation parameters (KALIBRI)': Tab 'Distribution' -> Read from file (use the saved intervals)
This example estimates the parameter c for the Demand stratum 'HW_Emp', stored in an respective attribute.
- (#VIS12676)
Which methods are offered for matrix correction and for updating of existing demand matrices and which differences do they have?
Basically, the following methods are available:
[ Permalink ]
1) TFlowFuzzy:
- To adjust a given OD matrix in such a way that the result of the assignment closely matches the observed link volumes or origin/destination travel demand:
- For PrT and PuT.
- For Link volumes.
- For OD travel demand by zone.
- For Turn volumes at nodes.
- For Any combination of these three.
- Counts and tolerances.
- Use of user defined attributes.
2) Matrix calibration:
- Calibration procedure according to Lohse.
- Only counts, no tolerances.
- Only AddValues, no user defined attributes.
3) Projecting PrT Path Volumes:
- Adjusts the OD-matrix of a certain PrT Demand segment to count data of certain manually choosen links.
- Only counts, no tolerances.
- Only AddValues, no user defined attributes.
- (#VIS10319)
The procedure TFlowFuzzy failed. The demand matrix could not be corrected:
'Demand segment .. was assigned but no paths were saved.
Procedure 'TFlowFuzzy' failed.'To find a solution, make sure the setting for
[ Permalink ]
Calculate -> General Procedure settings -> PrT settings -> Assignment -> Save paths
is set to 'As routes' (for the combination with a static assignment).
- (#VIS24174)
Running TFlowFuzzy leads to a warning:
'An error occurred during the calculation of the new demand matrix. The corrected demand for at least one relation is not within the valid value range. Please check the demand of the relations listed in the log file with a very large correction factor. If this demand is very small (approximately < 10^-5), it should be set to 0 and, if necessary, the demand matrix should be scaled in such a way that the total demand is retained.'Some calculated volumes and count values differ too much, while the correction range is too low.
[ Permalink ]
Please note that TFlowFuzzy is a mathematical procedure to correct an already nearly matching demand matrix. It was never intended to enable the estimation of a demand matrix starting from a dummy matrix.
Check the following:
- The error message might point to probably rather not relevant small demand values, which receive a proportionally rather high corrected value. Recommendation: Initialize values < 0.00001 to 0.
- Start with higher bandwidths (tolerance values), and if a solution is found lower them again.
- Choose a lower max. correction factor.
- Choose a higher alpha level to include a wider range of values into the fuzzy set. In general this approach is recommended: start with a higher alpha level, run TFlowFuzzy and reduce alpha to lower values step by step.
- Take only a few counts and demand entries first, preferably the higher numbers. If this already fails, you need to look for an error in this group, thus reduce the number of entries and counts again. Once you succeed, you can add more and more counts and demand entries. Remember TFlowFuzzy can help you to correct an already, nearly correct demand matrix, based upon counted values. Take care that the few largest counted values you are using or adding do make sense and match to your demand matrix.
- Check for contradictory counted values. Leave those values out which seem to be unrealistic or cannot be reached.
- Check the reasonability of the paths found by the assignment. Take care of its parameters and number of iterations.
- Use the analysis tools Protocol, Diagnosis and Process statistics (see the Online Help for further instructions, in the dialog press F1): TFlowFuzzy -> Parameters.
Use the example and tutorial files:
Help -> Examples -> Open Examples directory
1) folder c:\Users\Public\Documents\PTV Vision\PTV Visum 18\Examples\Matrix TFlowFuzzy\
2) folder c:\Users\Public\Documents\PTV Vision\PTV Visum 18\Tutorials\TFlowFuzzy\
Refer also to:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS12676/
- (#VIS30499)
How can I assess pollution/noise emissions?
What is the difference between the Procedures RLS '90 and HBEFA?
Can these procedures be used outside of Europe?1) Environmental impact model (add-on Noise emission RLS '90):
[ Permalink ]
- covers the procedures Noise-Emis-RIs90, Noise-Emis-Nordic and Pollution-Emis.
- based upon emission factors of the Swiss Federal Office for the Environment.
- calculation based upon volume values for cars and HGV.
- displayed only as link cross section values.
- the parameter files are outdated, cover only the years 1990, 1992 and 2000.
- only this module is capable of noise calculations.
An example is not available.
2) Emission calculation according to HBEFA 3.3 (add-on HBEFA):
- based upon emission factors of the Handbook Emission Factors for Road Transport 3.1, see http://www.hbefa.net/e/index.html" target="_blank">http://www.hbefa.net/e/index.html
- calculation based upon volume values for cars/PC, LDV, HDV and motorcycles.
- displayed by link, by territory or network-wide.
- the version HBEFA 3.3 available in PTV Visum dates from April 2017 and provides (apart from generic emission factors) also average emission factors for Germany, Austria, Switzerland, Sweden, Norway and France. (http://www.hbefa.net/e/index.html" target="_blank">http://www.hbefa.net/e/index.html)
- contains historic and projected fleet compositions (shares of different vehicle types) for different years and countries as defined in HBEFA.
- allows to define custom fleet compositions.
- allows to estimate cold start emissions based on origin traffic of zones.
- covers only pollutant emissions and fuel consumption, no noise.
An example is provided in:
c:\Users\Public\Documents\PTV Vision\PTV Visum 2020\Examples\HBEFA_Emissions\
Note also:
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS16413/
https://www.ptvgroup.com/en/solutions/products/ptv-visum/knowledge-base/faq/visfaq/show/VIS20614/
For more details see the following manual chapters:
10 Environmental impact model and HBEFA
23 Settings for the environmental impact model and emission calculation according to HBEFA
- (#VIS22183)
Running the Subnetwork generator leads to an error message:
'Number of rows .. of demand segment .. exceeds maximum 2147483647. Functions based on individual routes, such as the route list and subnetwork generator, are not available. Bush-based functions, such as flow bundle, OD pair filter, and TFlowFuzzy, however, are still available. To limit the number of routes, use an OD pair filter or flow bundle.'
The subnetwork generator cannot process this number of routes available in this model, it is not possible to create any subnetwork including routes.
[ Permalink ]
Workaround: Create a subnetwork without routes, by initializing the assignment: Calculate -> Initialize assignment
When relying on the creation of subnetworks, consider to use an assignment method producing less routes.
- (#VIS20614)
Running the procedure 'HBEFA-based emission calculation' leads to a warning:
'Emission factors were requested that are not available in the Handbook of Emission Factors (HBEFA). They are listed in the message file.'HBEFA defines only a subset out of all possible combinations of attributes, whereas in a Visum model any combination might be possible. To avoid the message only use the combinations which are available for the HBEFA calculation.
[ Permalink ]
See also the manual and the document
c:\Users\Public\Documents\PTV Vision\PTV Visum 15\Examples\HBEFA_Emissions\HBEFA_Emissions_Desc_ENG.pdf
on page 3:
'After running the procedure, look at the trace file for messages. VISUM reports every link for which the traffic situation in the sense of HBEFA 3.1 and the provided free flow speed do not match,...'
Workarounds:
1) Check the total share of segments which do not have emission factors is below a certain threshold, like 1%.
2) Check whether such segments are typically Euro-0 class, i.e. are likely to disappear or exist in insignificant numbers.
- (#VIS12762)
Formation of a subnetwork causes an error:
'Creating subnetwork'/'Insufficient storage'/'Runtime Error!'.1) If you use Visum 32 bit on a 32 bit operating system, you should activate the 3 Gb option to increase the virtual address space. See also VIS11878 (Windows XP) or VIS10302 (VISTA/Windows 7).
[ Permalink ]
2) Activate matrix-cache and apply it to this version file:
Extras -> Options -> Files & protocols -> Matrices -> Enable swap file.
3) File -> File properties -> Lagged matrix data loading on demand.
4) If the version file was only opened to create a subnetwork, but the memory does not suffice to format a subnetwork:
Calculate -> Initialize assignment. Thereby you can possibly save memory, however no cordon zones will be created and no matrices will be adopted into the subnetwork. However, you can initialize PrT and PuT assignments differentiated from each other:
Calculate -> Procedure -> Operations -> Paste -> Assignment -> Init assignment -> Procedure -> PrT or PuT.
- (#VIS13266)
A line blocking fails with the following error message:
'Interlining is either not permitted or not possible on one of the required relations, or the capacities of the start and end depots are insufficient compared to the number of required vehicles. No solution could be found'.1) Check whether the parameter 'Interlining permissible' is set:
[ Permalink ]
Line blocking parameters -> Interlining.
2) Check whether the empty trip-TSys is set for all vehicle combinations corresponding to the permitted TSys in the network.
3) Write for all relevant transport systems an interlining matrix (i.e. for the parameter t_PuTSys) with the procedure step 'PuT interlining matrix', to check these for non-existing connections. The parameter will take the value 999999.
4) Check with the list 'Stop points - basis' whether the attribute 'IsDepot' is set. Also check whether the attribute 'DepotCapacity(...)' holds realistic values.
- (#VIS10304)
Why are the results of an assignment different in a subnetwork?
Assignment results of subnetworks generally cannot be compared to the assignment results of their original networks, because paths get cut off and shortened, impedances sum up differently and volumes are shifted. Using subnetworks is only useful when analysing local effects which are independent of the surrounding network. Using subnetworks is not useful to implement changes in the subnetwork and port them back to the entire network. Using subnetworks also is not useful to save memory requirements in the assignment. In that case, use other strategies instead:
[ Permalink ]
1) Reduce the relevant demand for filtered zones and the setting 'only pairs of active zones' and 'considered relations'.
2) PuT: Reduce the relevant PuT lines by a filter for PuT lines and use the option 'Regard only active vehicle journey sections' which is offered in multiple dialogs.
3) Stop non-used protocols.
4) PuT: Use a connection file for repeated assignments.
5) Critically check the assignment parameters.
6) PuT: Be careful when opening links for transport systems of type PuT Walk, use this only for single links when really needed.
- (#VIS15545)
-
PrT assignment
- (#VIS18028)
PrT or PuT demand has not been assigned completely. How can I analyse this to find out where and why this happens?
A typical error message can be:
'DUE could not assign .. OD pairs completely or partially, e.g. due to closures or for too low capacities.'You can analyse this by using a 'Remaining matrix', indicating the amount of not assigned demand per relation:
[ Permalink ]
Since PTV Visum15: Use a matrix of Data source type 'Formula matrix' to calculate the Remainder matrix. In the dialog 'Edit formula...' the following functions are combined to an expression referencing the demand segment code to calculate the Remainder matrix:
TOTALDEMANDMATRIX('A')-ASSIGNEDVOLUMEMATRIX('A')
Until PTV Visum 14: Matrices -> (select a matrix with only partially assigned demand) -> (open the context menu with the right mouse button) -> Save to file -> Dialog 'Save: Matrix' -> Dialog 'Save matrix ..:
Format: 'Format V' or 'Binary'
Matrix: Assignment matrix
Option: activate the option 'Remaining matrix' (only available for assigned matrices)
This matrix can be opened as an external matrix. Filter it on values > 0.
Check the following reasons when demand has not been assigned completely:
A) PuT assignments:
- Missing connections.
- Rounding of volumes: Calculate -> General procedure settings -> PuT settings -> Assignment -> Round demand and volume data (active) -> Number of decimal places
B) PrT (only in case of Dynamic assignments):
1) Queues.
2) In case of DUE network coding errors like:
- missing connectors.
- wrong attribute values on links and connectors.
- defective topology (not connected nodes covering the same location).
- impedance too high (lacking capacity, volume too high).
- (#VIS18901)
How can I obtain the total vehicle volume per link, summed for PrT and PuT, taking into account that PuT vehicles influence the PrT route choice?
1) Use the procedure 'PuT operating indicators' to acquire the number of PuT vehicle journeys. (This needs a timetable.)
[ Permalink ]
2) Taking basic volume into account:
Calculate -> General procedure settings -> PrT settings -> Assignment -> Basic volume -> Fix -> Detailed calculation -> Links 1 * 'Number of service trips (AP)'
3) Run the PrT assignment again, which will take the 'basic volume' caused by PuT into account, to influence the PrT's route choice.
4) Create a user-defined attribute (Typ Formula) to sum up the link attributes 'Volume PrT [veh] (AP)' + 'Number of service trips (AP)'.
- (#VIS14497)
Which settings are (generally) recommended for PrT assignments?
The following settings are recommended:
[ Permalink ]
Assignment parameters:
- The number of iterations should be as high as possible. Using equilibrium_Lohse the number should be at least 100, even better 1000.
Functions (Calculate -> Procedure -> PrT functions):
- VDFs should be yet rising in the underload range, that means i.e. that for BPR the exponent should never be higher than 4, even better 2-3. In the overload range, a linear gain is desired (i.e. VDF 'Lohse').
- Scaling of impedance, i.e. Imp = 100 * tcur.
- Number of decimal places for PrT demand = 3 (until Visum 9.5).
- (#VIS9905)
Why are the assignment results between two Visum versions not identical?
The calculation algorithms the procedures are based on are improved in new Visum versions. There are additional options integrated and new research results implementated. For this reason, the assignment results may differ.
[ Permalink ]
- (#VIS10289)
Why are connectors by shares not met after an assignment (PrT)?
The Connector's shares can be disabled with the setting:
[ Permalink ]
Calculate -> General procedure settings -> PrT settings -> Connector weights apply to -> Total trips (MPA off).
When using 'Each single OD pair' instead, the connector's shares are considered.
You can distribute the demand among a zone's PrT connectors A) absolutely (freely) or B) proportionally (by shares):
A) If a zone has multiple connectors and the zone is set to 'Absolute', this will use the connectors according to shortest paths. It can be that a connector does not get any volume at all.
B) To meet connector shares, use the zone setting 'By shares'. In this case choose between 'Total trips (MPA off)' or 'Each single OD pair':
1) 'Total trips (MPA off)' is a volume-dependent consideration, the connectors' capacities are taken according to the shares and the impedance of connectors is calculated by a VDF. This way, you usually won't reach exact shares, which does however depend on how 'hard' the VDF is set.
2) 'Each single OD pair' is in fact a multi-point assignment (MPA), the demand of zones with proportional demand distribution is divided appropriate to these shares (thus the demand matrix is expanded and disaggregated) before the assignment. After the assignment, the matrix is aggregated again. This way, the connectors will meet exactly their shares. But caution, this takes extra calculation time and memory capacity.
Example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_Assignment_PrT_PuT_Connectors_by_shares.zip
- (#VIS16420)
How can flow bundle volumes exceed link volumes?
If Blocking back is active, assignment results on links (connectors, (main-) turns and (main-) nodes) are changed, in order to show how much traffic flows behind a bottle neck.
[ Permalink ]
The saved paths are not changed, but this is what flow bundles are using.
If you want to compare flow bundle volumes with link volumes, there are three methods:
A) If you take the attribute 'Volume PrT [veh] (AP)', this will show the traffic volume that passed the bottle neck until the end of the assignment interval only. If you take the attribute 'Volume demand PrT [veh] (AP)' instead, this will show the complete traffic volume.
B) Calculate an approximation of actual flow bundle volumes:
1) Define an UDA ratio for links (turns, main turns) with a formula using attributes of volumes e.g. [Volume PrT [PCU] (AP)] / [Volume demand PrT with base [PCU]].
2) Define an UDA actualVolFlowBundle for links (turns, main turns) with the formula [Volume flow bundle (PRT)] * [RATIO].
3) Modify the graphic parameters so that the UDA actualVolFlowBundle is shown.
- Remark: If a flow was not affected by the bottleneck, it still adds to the attribute [Volume PrT [PCU] (AP)], resulting in overestimating the actual flow.
C) Turn off the blocking back model. Proceed as follows:
1) Calculate -> General procedure settings -> PrT settings -> Blocking back model -> Blocking back calculation active - deactivate.
2) Graphics -> Flow bundle -> Execute.
- (#VIS12274)
An user defined VDF is not found, in case it was referenced an error message is shown:
'Could not load DLL...'Please check the following properties:
[ Permalink ]
1) The DLL's architecture has to match to the used software, i.e. a 64 bit Visum version only works with a 64 bit dll and won't recognize a 32 bit dll.
2) The dll (for Visum 18) imperatively needs to be located under %APPDATA%\PTV Vision\PTV Visum 18\UserVDF-DLLs\.
3) The file name has to start with 'VISUMVDF...'.
4) The installed VCredist.exe needs to match the Visual Studio version, which was used to build the DLL.
VCRedist is installed together with the 'Visual C++ Redistributable für Visual Studio' package, available on the Microsoft website
- Visum 15/16 uses the VCRedist version of Visual Studio 2013.
- Visum 17/18 uses the VCRedist version of Visual Studio 2017.
5) Please use the solution in the folder c:\Program Files\PTV Vision\PTV Visum 18\Data\UserDefVDF\
Do not create any new project, use the example CPP file. Adapt the formulas needed in this file.
- (#VIS9268)
With an active blocking back calculation less traffic arrives than without blocking back calculation.
The reason lies within the somewhat contradictory combination of a static assignment and the dynamic procedure blocking back (Dynamic assignments do not take blocking back into account, DUE uses an own procedure). The traffic load on links with a capacity bottleneck and ensuing links is smaller, because only the traffic that got through these links during the blocking back 1st phase is counted.
[ Permalink ]
Capacity and a static assignment should share the same time scope, typically 'a day', or 'an hour'. Therefore traffic not able to get along capacity reduced links will reach its destination, but beyond this time scope.
The links before the capacity bottleneck get a mixed traffic volume, counting the traffic that got through + the traffic stocked on these links. The stocking capacity is defined in a link attribute (Edit link -> Congestion -> Stocking Capacity). Traffic exceeding this stocking capacity is blocked back onto the preceding link or links.
The PrT paths list shows, that all traffic was loaded onto the paths, thus left the origin but not necessarily reached its destination:
Lists -> Paths -> PrT Paths
- (#VIS10286)
Why can PrT assignment results be different, with and without main nodes?
If a model contains main nodes, the links, nodes and turns within the main nodes are no longer considered. Therefore the model is different and the paths differ too: the path is searched from cordon link to cordon link of a main node, using a main turn. A part of the path (links and turns within the main node) is omitted.
[ Permalink ]
- (#VIS27717)
A skim matrix calculation produces new matrices, but the already existing matrices in the model are not updated.
Since PTV Visum 14 matrices can either be defined using their unique matrix number or their properties. Properties are combinations of attribute values which identify one or several matrices. The second option is since then available in various dialogs of the software.
[ Permalink ]
If matrix numbers or properties of existing or for new matrices changed, procedures will create new matrices:
- In the list Matrices, check the attributes Code and DSegCode to meet the correct values.
- Calculate -> General procedure settings -> PrT settings -> Skims -> 'Code / file'
- Calculate -> General procedure settings -> PuT settings -> Skims -> 'Code / file'
- (#VIS11909)
How to apply toll with the TRIBUT-Equilibrium assignment or the TRIBUT-Equilibrium_Lohse?
Visum offers three toll procedures:
[ Permalink ]
1) Link toll/'TRIBUT':
The toll is defined in combination with the TRIBUT-Equilibrium assignment for every single link with the link attribute 'toll-PrTSys(...)' (barely suitable for TRIBUT-Equilibrium_Lohse). Example: German truck toll on national highways.
2) Area toll which is applied for a special area object. Example: London.
3) Matrix toll, to model degressive road pricing schemes. Example: french highways.
The second and the third one are administrated as toll system and only work in combination with TRIBUT-Equilibrium_Lohse. The consideration of toll systems in the TRIBUT-Equilibrium assignment were subordinated, because the implementation investment and the expected calculation time are not expected to result in anything comparable to TRIBUT-Equilibrium_Lohse. A vignette toll, which in contrary to area toll allows re-entry on particular link types or does not constrain a particular zone with extra costs, is currently not possible in Visum.
Managing Toll systems:
In
Lists -> Private transport -> Toll -> Toll matrices
you can edit a toll matrix.
Examples:
http://vision-traffic.ptvgroup.com/faq-files/PTV_TRIBUT_assignments_Toll_examples.zip
c:\Users\Public\Documents\PTV Vision\PTV Visum 18\Examples\PrT Assignment Tribut\;11.50
- (#VIS26158)
How can I close links for through traffic but keep them open for residential traffic?
- Differentiate per TSys set and Demand segment: This method is suitable to model e.g. HGV bans. The banned links are closed for a TSys HGV, but open for a TSys HGV_local. This method needs a split up of the demand matrix.
[ Permalink ]
- Differentiate per TSys impedance input attribute on links or turns: Raise some user-defined impedance attribute values only for cordon links and turns, to add to the impedance of through traffic, influencing the route choice only for the through traffic. The residential traffic impedance is raised too, but without route choice changes. (Calculate -> General procedure settings -> PrT settings -> Impedance -> (Select a TSys) -> Use the option 'In detail' -> (Create functions for links or turns holding some user-defined impedance attribute))
(Note: 'Impedance-PrTSys (P,AP)' is an output attribute)
- Differentiate per Link type: Use the option 'Closed' of the Volume-delay function, dedicated per Link type. (Calculate -> General procedure settings -> PrT settings -> Volume-delay functions -> Link types -> (Select a Link type) -> Volume-delay functions -> Edit)
- Differentiate per Turn type: Use the option 'Closed' of the Volume-delay function, dedicated per Turn type. (Calculate -> General procedure settings -> PrT settings -> Node impedances -> Turns VDF -> (Select a Turn type) -> Volume-delay functions -> Edit)
Closed
If this option has been checked, the particular network object will only be included in path search if no alternative path can be found (e.g. for residential traffic). In this case, Visum assigns a high virtual time penalty, which, for example, has to be considered in the travel time skim matrix, when evaluating path times.
Hard closure
If this option has been checked, the particular network object will be excluded from path search.
Notes
The option 'Hard closure' is only visible, if option Closed has been checked.
(Ref.: Manual 'Applying userdefined volumedelay functions')
- (#VIS14869)
How can I determine link travel times?
In PrT, TSys-specific link travel times (attribute t0-PrTSys()) are determined by the link length (length) and the maximum allowed speed in the uncharged network (v0-PuTSys). During the assignment, the calculation of travel time (tCur-PrTSys) needs the volume, capacity and volume-delay function of the particular link type.
[ Permalink ]
- (#VIS18028)
-
PuT assignment
- (#VIS29180)
How can I obtain volumes per Stop point to stop point corridor (or stop to stop)?
Before running a PuT assignment, consider to set the following options:
[ Permalink ]
Calculate -> General procedure settings -> PuT settings -> Assignment
- Save the volume matrix between stop points on path level
- Save the volume matrix between stop points on path leg level
The result is saved to:
Lists -> PuT analyses
- Volume matrix between two stop points - on path level
- Volume matrix between stop points - on path leg level
- (#VIS29873)
Why is the number of PuT paths different from the attribute value 'Path\PuT relation\Service frequency'?
- The List 'PuT paths' describes per OD the connections that receive volume during an assignment.
[ Permalink ]
- The attribute 'Service Frequency' describes per OD all arrivals following the timetable, taken into account by the assignment:
(Manual 7.4.1.4 Skims of attribute data: 'For the timetable-based assignment, the service frequency is defined as the number of different arrival times ...')
- (#VIS18033)
The result of a headway-based or timetable-based assignment does not show any volumes (on vehicle journeys).
The setting for
[ Permalink ]
Calculate - > General procedure settings -> PuT settings -> Assignment -> Save volumes
is set to 'Only for timeprofiles'. Choose 'Additionally for vehicle journeys' instead.
- (#VIS18600)
Why are connectors by shares not met after an assignment (PuT)?
For PuT this setting is held within the assignment procedure:
[ Permalink ]
Timetable-based or Headway-based -> Basis -> Use connector shares. Connector shares will always be calculated by using MPA.
Example:
http://vision-traffic.ptvgroup.com/faq-files/PTV_Assignment_PrT_PuT_Connectors_by_shares.zip
- (#VIS11877)
A PuT assignment failed with an error message:
'No demand for any O-D pair. No connections calculated'This message is returned, when the demand segment to be assigned does not have any matrix:
[ Permalink ]
OD demand -> OD demand data -> Demand segments -> Column 'matrix'
- (#VIS10375)
How can I take the capacity of PuT vehicles into account for assignments?
The PuT assignment procedures Headway-based and Timetable-based can take capacities into account, but not by default. It uses an impedance component in an iterative way, explained in the examples below:
[ Permalink ]
c:\Users\Public\Documents\PTV Vision\PTV Visum 17\Examples\PuT Capacity Restrained\
The procedures attempt to approach the capacity when a sufficient factor for the corresponding impedance component is set, but this may well be exceeded.
- (#VIS31964)
How can I assign a matrix with Stop area dimensions in a PuT assignment?
There is currently no way to assign demand on stop area level.
[ Permalink ]
Workarounds:
- Convert your Stop areas into Zones (use the Shape file interfaces) and assign the demand in the classic way.
- Or Disaggregate and aggregate the stop area matrices to zone matrices.
For that you need a matching of the Stop area catchment areas to Zones to find a good split for the disaggregation.
- (#VIS13916)
How can I check the calculated impedance component 'perceived journey time' manually?
On the basis of the list 'PuT path legs', the following attributes can be copied or exported to Excel and multiplied with the used factors:
[ Permalink ]
PATH\INVEHTIME PATH\PUTAUXTIME PATH\ACCESSTIME PATH\EGRESSTIME PATH\WALKTIME PATH\ORIGINWAITTIME PATH\TRANSFERWAITTIME PATH\NUMTRANSFERS
(and maybe additional attributes like TIMEPROFILE\...)
Together with the attribute
PATH\PERCEIVEDJOURNEYTIME
a direct comparison is possible.
- (#VIS14501)
Why are the attributes for operating indicators (e.g. 'Number of service trips ..') not calculated?
These attributes have to be calculated separately, using the procedure 'PuT operating indicators':
[ Permalink ]
Calculate -> Procedure sequence -> Paste -> Procedure -> PuT analyses.
In the tab 'Transport supply', activate the option 'Calculate also for territories'.
The results of the procedure 'PuT operating indicators' is based upon vehicle journeys and territories, without them the procedure will not return any result for attributes like 'Number of service trips'.
Workaround:
- Use the Addin 'Create Regular Timetable' to create a time table from available headways.
- Use the function 'Convert active zones' to create territories from zones: Zones -> (Right-click to open the context menu -> Convert active zones).
- (#VIS10354)
A Headway- or Timetable-based assignment or a calculation of PuT skim matrices leads to a program crash ('Runtime Error') or takes more runtime than expected.
Possibly too many links are open for a transport system of type 'PuTWalk'. The runtime error is caused by lack of memory. The PuT assignment procedures are not intended to assign 'pedestrians'. 'PuTWalk' is intended for connectors and transfer paths which are not modelled inside a stop. The PuT assignment procedure assembles every single link as a path leg into the search graph. Too many foot links inflate the search graph, which causes a runtime error by lack of memory. Of course, that does not only cost memory capacity but also calculation time. For that reason, better use foot paths only where necessary.
[ Permalink ]
Workaround: Use (long) connectors instead. It might be a set of connectors with a dedicated type number, factorized for their Walk times, to model that people walk though some subordinated network and not an air-line distance.
- (#VIS11132)
Why is the Origin Wait Time (OWT) assumed to be zero in the timetable-based assignment?
In a timetable-based assignment, the passenger is assumed to know the departure times, and thus he has the opportunity to go to the stop exactly the right time, resulting in a zero wait time.
[ Permalink ]
You can however setup an adapted origin wait time in the impedance settings, to be added to the perceived journey time (PJT). This adapted origin wait time is constant for all connections available to an OD pair, depends on the service frequency, can be limited to a maximum and is used for the skim matrix. (See manual 'Adapted skims of time for the timetable-based assignment').
- (#VIS10287)
After a timetable-based or headway-based assignment, all departure times are at midnight respectively 00:00:00.
The term connection indicates a time-based information as to say the path has a precise departure time. Routes don't have precise departure times (always 00:00) and they combine all connections with the same course.
[ Permalink ]
Timetable-based assignment:
The parameter setting for 'Save assignment results' is set to 'As routes'. This saves memory. To get departure times choose 'As connections':
Calculate -> General procedure settings -> PuT settings -> Assignment -> Save assignment results -> Save paths 'as connections'.
Headway-based assignment:
In case of a headway-based assignment there are no departure times at all. A headway-based assignment only returns routes as assignment results.
- (#VIS29180)
-
Scenario management
- (#VIS14830)
What is the difference between difference network, network merge mode and version comparison?
The function known as 'difference network' is called 'network merge mode' since Visum 11.5, because its essential feature is merging networks.
[ Permalink ]
Attribute comparisons between network variants have ever been the main use case of the difference network. Since Visum 11.5, such comparisons can be executed in a considerably more comfortable way by using the new version comparison. Differently to former difference networks, network editing, procedure execution etc. are nonrestrictively possible, even after version comparisons.
- (#VIS29882)
Opening a project in the Scenario management fails with an error message:
'Connection to database failed. If the SQL server CE 3.5 is not installed properly, you can proceed as follows:'The Microsoft hotfix, that solved this issue in the past is not available anymore.
[ Permalink ]
Workarounds:
- Make sure Windows 10 is up-to-date and all updates are installed.
- Replace SQL Server CE by SQL Server Express, which means the database is no longer a file on a network drive but served by a database server on the network instead.
- Change to PTV Visum 2020, which used SQLite instead.
- Store the project on a local drive.
- (#VIS31740)
Can two or multiple users work simultaneously on the same version file?
Yes, when using the Scenario management with the following option:
[ Permalink ]
File -> Scenario management -> New Project -> Project database: Manage project database in SQL Server (supports simultaneous editing of a project by multiple users, but requires project database export to copy it)
https://cgi.ptvgroup.com/vision-help/VISUM_2020_ENG/#cshid=21878
https://cgi.ptvgroup.com/vision-help/VISUM_2020_ENG/#2_Szenarien_verwalten_Netze_vergleichen/2_1_Mehrbenutzerbetrieb_im_Szenariomanagent.htm%3FTocPath%3DUsing%2520Visum%7CManaging%2520scenarios%2520and%2520comparing%2520networks%7CScenario%2520management%7CScenario%2520management%2520in%2520multi-user%2520mode%7C_____0
- (#VIS14830)
-
Timetable editor
- (#VIS24058)
A) What is the difference between passenger trip chains, forced chainings and coupling vehicle journeys?
B) How can I create passenger trip chains for two vehicle journey sections?
C) How can I couple two vehicle journeys?
Find an example for passenger trip chains and coupling vehicle journeys here:
[ Permalink ]
http://vision-traffic.ptvgroup.com/faq-files/PTV_Coupled_vehicle_journey__AND__Forced_chain.zip
A) - Passenger trip chains combine two not overlapping vehicle journeys running between the stops A-B and B-C, to ensure a transition of passengers without transfer.
Note that the variant 'Forced chainings' in the data model is designated to ensure the (consecutive) chaining up of vehicle journey sections in the results of line blocking, to be served by the identical vehicle combination.
- Coupling vehicle journeys combines overlapping vehicle journeys, for example two vehicle journeys running between the stops A-B-C and A-B-D are coupled on the section A-B. They are separated in B and run alone on B-C and B-D.
B) To add passenger trip chains proceed as follows:
1) In the Timetable editor, click 'Line mode: Vehicle journey sections'.
2) Pull/adjust the sections ruler down to divide the timetable editor in a vehicle journeys pane and a vehicle journey sections pane. (Reference: User Manual 24.23.8.1 The tabular timetable window)
3) In the vehicle journey sections pane, add the attribute 'Passenger trip chain on vehicle journey section (1)'.
4) For a vehicle journey, right-click this attribute and choose in the context menu 'Edit chained up vehicle journey sections'.
5) In the dialog 'Define chained up vehicle journey sections for vehicle journey section ..', click the button 'Define chained up vehicle journey section'.
6) Optional: In the dialog 'Define chaining for vehicle journey section ..' change the filter criterion 'Only chained up vehicle journey sections with a maximum duration (empty time) of' and set it to > 5 min (e.g. 12 min). Click on 'Continue'.
7) Select this vehicle journey by clicking its attribute 'Selection'.
8) Leave with 'Finish' and 'OK'.
C) In the timetable editor, select two vehicle journeys and click the button 'Couple vehicle journeys'. This will open the dialog 'Couple vehicle journey ...'
Reference: Manual 24.23.10.14 Coupling vehicle journeys ('how to do it'), 3.1.14.6 Coupling of vehicle journeys ('what is it'), see also'Editing time profile items' in 15.32.5 Managing time profiles.
- (#VIS22448)
How to edit PuT timetables very quickly rather than editing each line manually
Using the graphical or tabular timetable editor you can select several vehicle journeys and change them at one time.
[ Permalink ]
You may use lists to edit or delete net elements. The editable fields are shown with a white background, not editable rows are grey.
You can copy and paste the list content to EXCEL, modify there and back again.
You may use Multi-edit to set attributes.
To insert many vehicle journeys for several lines at one time use Scripts->VisumAddIn->PuT->Create Regular Timetable
- (#VIS24058)
-
Visum files
- (#VIS11315)
Opening a Version file leads to a warning:
'Neither 'Save' functionality nor procedure execution nor COM available, since max. license size is exceeded'
Can you open version files that exceed the license size?Yes, all license sizes (except of the smalllest) allow to read a Version file containing more network objects than the license allows, but with the functionality limitations the warning describes. Additionally the Graphics tools (e.g. Flow bundle), calculation and changes in the Scenario management are turned off.
[ Permalink ]
Adding of network objects or additively reading of a network file is still possible. You can edit the network manually to underrun the licensed network size again.
- (#VIS27912)
How can I find out which release version was used to save a Version file?
Use a text editor to open the Version file. It will show its binary content, but its first line holds ASCII characters showing the release and servicepack number, and reads for example like:
[ Permalink ]
PTVSYSTEM VISUM Version Vers. 18.01-2 Rev.134410
Tip: Use a powerful text editor like TextPad or use TotalCommander, offering with Lister a small size text viewer (use the F3 key), capable of showing content already before loading the complete file.
- (#VIS9854)
Are version files *.VER saved with Visum 64 bit compatible with Visum 32 bit? Can Visum 32 bit read and modify such files? Do they deliver the same calculation results?
Version files do not differ when saved with Visum 32 bit or Visum 64 bit. However,
[ Permalink ]
- working with Visum 64 bit you can generate version files of considerably larger size which might become too large to be readable using Visum 32 bit.
- calculation results may deviate slightly.
- (#VIS15055)
The version file can not be read in. Open version failed with:
'File ...: No valid PTV binary format ID.'Unfortunately this version file is defective, it consists only of a binary fragment without header.
[ Permalink ]
The first 12 characters must consist of the string 'PTVSYSTEM ' otherwise an error message is returned.
Has it been saved to an erroneous data carrier, like an USB stick or a CD/DVD?
- (#VIS15942)
How can I exchange lineroutes between version files, based upon the stop order?
To transfer lineroutes or complete timetables from one version to another, proceed as follows:
[ Permalink ]
1) Save the data:
File -> Save as... -> Network. The written *.net file meets the ASCII format.
Use the button ''Frequent cases'' and activate ''Save timetable'' to select all tables needed.
Use the option ''Save only active network objects'' to meet an active filter.
2) In the other version file:
Open the *.net file:
File -> Open -> Network.
3) In the dialog ''Read network'' activate ''Read network file additionally'' and ''Show the 'Completing line routes' window''.
4) In the dialog ''Read network data additionally'' click ''Frequent cases'' and activate ''Read timetable''.
5) In the dialog ''Read network (completing the courses of line routes/system routes)'' use at least the option ''Search for shortest path''.
- (#VIS10343)
Opening a Version file fails with an error message:
'Cannot read version file, as it was saved with newer Visum version.'
How can I read data from Visum version files into older versions of Visum, i.e. from Visum21 downgrading to Visum20?Version files use a binary format, are only upward compatible readable, but not downward.
[ Permalink ]
Workaround: Following components of a Visum model can be saved to text based files, and opened into a an older release version, but note any displayed warnings:
- Network data as NET file.
- Matrices plus demand model as DMD file.
- Procedure parameters as XML file.
- Assignments cannot be ported directly, but you can copy volumes, travel times and queue lengths into userdefined attributes and port them as ATT file.
Please note that results may vary when exchanging the used release version. To monitor these, compare the values of main result attributes with userdefined attributes afterwards.
- (#VIS11315)