I'm trying to use a PolyUMod model (TNV) into Marc Mentat 2024, I followed the steps showed in the PolymerFem Tutorial ( How to Use a PolyUMod Material Model in MSC Mentat ) but Marc shows me the Error 13.
Here's my TNV model file text:
ModeloTNV1…
Hello all,
I'm trying to run a folder with multiple different geometries generated in .stl format. I would like to run all of them using same dies. Is there an example script for this kind of problem. Also how does the preform/workpiece positioning…
Hello, I'd like to ask the following: I created a Python script for automatically entering values into tables in Marc Mentat from a CSV file. This CSV file contains 500 columns, and each column has exactly 50,000 rows of values. I only import the columns…
Hello all,
I am trying to save my results contours as images with the predefined saved view and applying it to all of them using the below script but not able to get the saved view apply to all of them:
import os
import traceback
# ==…
Hello,
I am using the VFC_read_xml to read bushing splines in python:
from mdi.afc import vfc
xml = vfc.read_xml("mdi_0001_bus.xml")
# To get the stiffness
xml.child(type=vfc.ConnectorBushingProperties).x().stiffness().linear_data().rate(…
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…
Hi all, I am new to Marc Mentat and I need your help to create Material Plot feature in Marc mentat if there aren't any.
Is there any feature available to plot material properties, such as, Elastic Modulus, and CTE from Mentat?
Is there any guide…
Hello ,
Can we create a .stl file in Simufact python API using .stl creation code just like we do in MATLAB?
I have tried but the system was showing this errors:
ModuleNotFoundError: No module named 'stl'
Thanks,
VIgnesh
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…
A Python script is Imported into Adams. The Python script creates the model and control plant. The model can be simulated in Adams without failure, but when I try to co-simulate in Simulink the simulation fails with the following error.
Error…
I am having problems executing Python programs with the py_post module to get information from my .t16 file in the new Marc 2019 version.
I had no problems with Marc 2014.
I do not know what has been changed or what should I change in…
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…
Is there an easy way to get the parameters in a model; volumes, lengths, ect. for all elements in a format that can be reviewed by a human? I am attempting to use python to pull out all the relevant info from the .ezmf. Wondering if there was already…
Ho folks,
I'm about to check our code for future usage with ADAMS 2018 which uses Python 3 . (It's working as is in Python 2.x)
This code that's used to do a dos2unix on Windoze machines throws errors that I can't resolve:
import…
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…
Hello,
Has anyone implemented PC-DMIS event handler in
Python ?
I tried both win32com.client.getevents and win32com.client.DispatchWithEvents, but I got the TypeError.
win32com.client.getevents TypeError: Objects of type 'CDispatch' can…