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…
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…
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…
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…
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…
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…
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…
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…
... 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…
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…
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…