hexagon logo

Browse By Tags

  • Error in Executing Python Command in Dialogue Box

    I am trying to execute below python command block with gui dialogue box, but is is not working. It works when I run through python file by just normal file import. language switch_to python import Adams import os default_folder = os.getcwd…
  • Export Vibration results via Python

    Hello, I am working with the Vibration plugin and I am struggling to access and export the results of my analyses via Python code. I am not working in batch modus. What I currently do is that I plot my results in the post processor…
  • aggregate_mass via Python code

    Hello, I am looking for a way to calculate the moments of inertia of a part at a specific reference marker with Pyton code. I would like to avoid the trick of calling a cmd line within my Python code. Regards, Ch…
  • How to access list of UDE Instances (Vibration plugin elements) with Python?

    In Adams View, I am struggling to find a way to list the different input/output channels and actuators with a Python script. I don't know where these elements are located in the active model's structure. Are they located somewhere else…
  • How to add rows to existing spline with Python?

    I am a beginner in the "Python in Adams" world. I would like to create a function which makes it possible to add (and later remove) a given number of rows to an existing spline. As I sometime have to copy/paste splines into Adams, it happens…
  • Problem with python code in macro called from Adams/Car 2018

    Hello, I am trying to run python code from the macro in the Adams/Car 2018. The python code is following: !--- Run PYTHON code variable set variable_name=$_self.intTmp integer_value=(eval(run_python_code("import glob…
  • How to fetch or export contact incident data with multiple contact events through python commands?

    (Flexible bodies) I have multiple contact events in a single incident.
  • Python / Matplotlib in Adams

    Recently I have been using python to generate helpful post-processing graphics. Therefore I used the modul matplotlib. Yet the scripts can't be run directly from adams, always needed to compile these py-scripts into an .exe. Does anybody know how to tell…
  • Simple input in python script

    Hello everyone, i am learning python, and trying simple programs using python in Adams. My problem is how to ask for input string: Something like: name=input() is giving error such: File "<string>", line 1, in…
  • Anyone using the new Python modul Adams on Linux ?

    ... coz I'm getting this when trying to load it in a Linux shell with v2017.2: mdi2017.2 -c python Python 2.7.11 (default, Jan 21 2016, 08:37:23) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux2 Type "help", "copyright", "credits…
  • Serious AView python bugs found, reported

    ​I have uncovered a few bugs in AView related to using python in large models, some quite serious. I opened up tech support cases, and they have all been acknowledged and reported but I figured it would be good to warn other unsuspecting users ;-) I don…
  • ADAMS Python, more in-depth examples?

    ​I am very excited about opening up the python interface for ADAMS 2017, but as I dig into the language, I'm finding lots of ways to crash view, and not much documentation. The 2017 documentation is good at giving a very short introduction…