Webinar: Scripting in PTV Vissim using the COM interface

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 28

  • @crisnaylergallegoocampo9622
    @crisnaylergallegoocampo9622 8 ปีที่แล้ว +1

    good afternoon; i have tried of follow your instructions, however an error appears. For example in the minute 8:00 on python i wrote: Vissim.Net.Links ; but appear this error:
    Traceback (most recent call last):
    File "", line 1, in
    File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 466, in __getattr__
    return self._ApplyTypes_(*args)
    File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 459, in _ApplyTypes_
    self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, *args),
    com_error: (-2147023174, 'El servidor RPC no est\xe1 disponible.', None, None)

  • @vickyyu7414
    @vickyyu7414 4 ปีที่แล้ว

    Great video. The only suggestion is if it could have better resolution.

  • @pananez
    @pananez 7 ปีที่แล้ว +1

    Great video!

  • @xintonghan8092
    @xintonghan8092 6 ปีที่แล้ว +3

    Hello Jochen. I use python to interface with Vissim COM, i can open the vissim, load road network and change network file position, but when I want to add the new links to network, there is something wrong, I can't call the net object, How can I resolve it?

    • @jochenlohmiller5345
      @jochenlohmiller5345 5 ปีที่แล้ว

      Hi, can you execute the example in C:\Users\Public\Documents\PTV Vision\PTV Vissim 11\Examples Training\COM\Network Objects Adding? If not, please contact our technical support.

    • @TheBlackCatpk
      @TheBlackCatpk 4 ปีที่แล้ว

      I face the same problem? any solution? there is an error in SetAttValue as well ... Undefined function or variable 'SetAttValue'.
      I am able to execute the example but it will close very fast after creating some links...
      Any solutions ??

  • @scottferguson6536
    @scottferguson6536 26 วันที่ผ่านมา

    Is the COM interface still supported in Vistro 2025?

  • @sohamchintawar4015
    @sohamchintawar4015 3 ปีที่แล้ว

    How to enable this auto-complete command in python interpretor. At @8.51 I can see autosuggestion to complete command.

  • @NoName-et2lz
    @NoName-et2lz 6 ปีที่แล้ว +1

    Travel time: ~27:00

  • @ari0ne1
    @ari0ne1 5 ปีที่แล้ว

    Thank for your information.
    I run Vissim = com.Dispatch("Vissim.Vissim")
    script but It showed this error :
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
    com_error: (-2147221005, 'Invalid class string', None, None)
    I checked it in student version and vissim 8 but it didn't work!

  • @fatmatarek7280
    @fatmatarek7280 5 ปีที่แล้ว +1

    I use vissim student version and com interface is not activated ,what should i do to activate it ?

    • @wentaoyang370
      @wentaoyang370 5 ปีที่แล้ว

      student version is not integrated with the function....

    • @aliabdal-khaliq3331
      @aliabdal-khaliq3331 4 ปีที่แล้ว

      If you are a graduated student, ask PTV Group about a thesis version. It's less limited than the student version.

  • @장기백-w2b
    @장기백-w2b 5 ปีที่แล้ว +1

    Thank you for good information.
    I'll give you one question
    Is there a way to save VISUM Assignment analysis results (database, JPG, PDF ...) to an external server?

    • @jochenlohmiller2214
      @jochenlohmiller2214 4 ปีที่แล้ว +1

      That should be possible in Visum. Please post the Visum related questions in the PTV Visum forum: www.linkedin.com/groups/2230651/. If it is PTV Vissim related, use the PTV Vissim forum: www.linkedin.com/groups/2524087/

  • @pengfeichen619
    @pengfeichen619 6 ปีที่แล้ว +1

    Hi, I am using Python 2.7 in anaconda with Visum 14.0. I have 2 questions: first, how can I open auto completion with "Tab" like it used to be in Matlab and in your video. Second, when I tried Visum.Net.Links, it says "com_error: member not found". Same error when I tried Visum.Net.Links(). Hope for your reply. Thank you.

    • @songlinglau1807
      @songlinglau1807 6 ปีที่แล้ว

      I have same questions.Anybody can reply?

    • @jochenlohmiller5345
      @jochenlohmiller5345 6 ปีที่แล้ว

      I think you need to generate the cache in Python to get auto-completion. Use Vissim = com.gencache.EnsureDispatch("Vissim.Vissim") to generate the cache. In PTV Visum 18, there is auto completion in the Python Console (Script > Python Console)

  • @saayinathnarasimhan376
    @saayinathnarasimhan376 4 ปีที่แล้ว

    Hello, I hava a small issue while working in Vissim 2020 COM interface in Python. When the Python code is run, the Vissim file loads, completes all the commands, provides an output and closes immediately. The file does not stay open. How do I resolve it?

    • @jochenlohmiller2214
      @jochenlohmiller2214 4 ปีที่แล้ว

      Maybe you use the Vissim variable inside of a function. If you don't return the Vissim variable from the function, Python will close.

  • @thejasnaveen4223
    @thejasnaveen4223 ปีที่แล้ว

    How to generate spline using COM interface?

    • @PTV-Mobility
      @PTV-Mobility  ปีที่แล้ว +1

      Hi Naveen, here's what our experts say: there is an example on how to use the COM interface to generate splines based on points in the training directory of your Vissim installation. Please check ...\Examples Training\COM\Network Objects Adding\Network Objects Adding.py
      What you also can do is access the directory through the "Help" tab in Vissim by selecting "Examples" -> "Open Training Directory". The file shows how to add links, using the "AddLink()" function and how to add connectors, using the "AddConnector()" function. Both are based on a string input of points to define the geometry of the spline (and other values). With RecalculateSpline() you can recompute the spline of a existing connector or link, if you wish.
      Hope that helps,
      Your PTV Social Media Team

  • @xingnanzhou8628
    @xingnanzhou8628 5 ปีที่แล้ว

    VERY GREAT EXPLANATION!

  • @TheBlackCatpk
    @TheBlackCatpk 4 ปีที่แล้ว

    how do I open Matlab script?

  • @NoName-et2lz
    @NoName-et2lz 6 ปีที่แล้ว

    Thanks!