Skip to content

Is it possible to automatically read Ansys Mechanical available inputs #449

Closed Answered by RGPATCHI
ValentynBarannik asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Valentyn,

Please find attached a script to do the same task with Embedded method. Also please find in the below discussion on differences between Remote and Embedded sessions. But main difference is that Mechanical APIs are available directly in Python space.

#476

import os
import logging
import csv
from ansys.mechanical.core import App
from ansys.mechanical.core.embedding.logger import (Configuration,Logger)
Configuration.configure(level=logging.WARNING,to_stdout=True)
app = App(version=232)
print(app)
Logger.error("message")

# Extract the global API entry points (available from built-in Mechanical scripting)
from ansys.mechanical.core import global_variables
# Merge them into you…

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@ValentynBarannik
Comment options

@pmaroneh
Comment options

@ValentynBarannik
Comment options

@pmaroneh
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ValentynBarannik
Comment options

@ValentynBarannik
Comment options

@RGPATCHI
Comment options

@ValentynBarannik
Comment options

@RGPATCHI
Comment options

Comment options

You must be logged in to vote
1 reply
@ValentynBarannik
Comment options

Answer selected by dipinknair
Comment options

You must be logged in to vote
1 reply
@ValentynBarannik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants