-
Which GUIDs can I access in the Granta SDK?
Which GUIDs can I access in the Granta SDK? I see there are record GUIDs, but can I also access attribute GUIDs and Table GUIDs?
-
Move records without losing Meta-attributes with STK 3.1
Hi, Here is a question I got from a customer using Python STK 3.1 My Goal is to move existing records in the correct folder based on the attribute “Heat Treatment Type” ’s value. In the example below, if the two records have the value “Stress Relieved”, they should be moved to the corresponding folder: I have to do that…
-
Could Ansys include a `py.typed` file in the Granta STK for mypy compatibility?
We use the Granta STK regularly, but also use mypy, a static type-checker for Python. Taking a look at the actual STK files when installed, they all have type hints, but without the py.typed file, mypy cannot infer any of the type hints when linting code. While we can include this file manually by editing our…
-
Can you use Granta STK to scan a database for records, which have more than 100 points in a FDA?
Ansys solver can only handle a maximum of 100 data points per material property. If a curve has more than 100 data points on import Ansys Workbench returns an error. My client has a large database and is unsure of what is the best way to clean up the data to improve the experience for the simulation users. Could we use STK…
-
How do I find the latest compatible servicelayer versions with Granta STK?
Is there an easy way to get this? Also, where can we link these versions to Granta MI versions? Question posed by @Rali
-
Can you use Granta MI Text Import template to import multiple files using STK?
Can you use Granta MI Text Import template to import multiple text files using STK 2.3? Assuming the text import template is set up to work within Granta MI Import and python STK is being used to automate the process.
-
Pseudo Attributes Criteria Search using STK
Can you run a criteria search through a database/table using pseudo attributes with Granta MI Python Scripting Toolkit 2.3 ? For example finding all records within a given table that have been modified in the last 24 hours.
-
pip installing the Granta STK isn't working
I've followed the instructions and run pip install, but I keep getting syntax errors. What's going on?
-
I've just upgraded to Granta SDK 2.0 but where's the new API?
This is a common question I've received. I've just upgraded but when I try to do the import in the examples from GRANTA_MIScriptingToolkit import granta as mpy, it says that "granta" can't be found. What gives?
-
Is it possible to set data links for an attribute using the Granta STK?
"Is it possible to set data links for an attribute using the Granta STK?" Can it be done using the STK? I've not found a way to do it and I am using STK 2.0.
-
Can't install Granta SDK but I fulfill the requirements?
This was a customer question, reproduced here with identifying details removed. I tried to install the SDK v2.1 but I got an error saying it is not supported? I don't understand; I have python 3 and according to the documentation my version should be supported. What's going on? Details: * Windows 10 * Python 3.8 32 bit *…
-
Attributes won't populate using the Granta SDK/STK 2.0?
I am creating a new record using the granta stk 2.0, but when I look at it in viewer none of the attributes are populated. Where am I going wrong? my_record = mi_table.create_record('my record')my_record.attributes['record ID'] = '000IK'my_record = session.update([my_record])[0]