Does anyone have experience on reading the content of CWR files (programmatically, without SolidWorks)?
I can't find any information about an API for that, or about the file's internal structure/format.
Could someone point me in the right direction?
It also doesn't seem like Solidworks can...
Well if anyone else has this problem, I think I found the solution;
After setting the pressure load, instead of choosing Constant, choose Tabular, but under Tabular Data>Independent Variable select Step.
Now the tabular data table will only contain one cell where you can add the "Constant" value...
I understand, but Ansys Workbench doesn't allow me to create a non-tabular pressure load. Even if I select "Constant" it will set it to "ramped" and create a table with two values...
In Ansys Workbench (19.0), in Mechanical, I have a Static Structural analysis. I've added a pressure load on a geometric surface, where I under Magnitude selected Constant and set a value. By doing this a frame in the UI shows "Tabular Data" with two points 0,0 and 1,<my value>. This makes sense...
I'm trying to do this in C#/C++, but for the sake of the question, I will make an example using Python.
In Ansys Mechanical, if I create a Pressure on a geometric face, set the Magnitude to Tabular Data and change the Independent Variable to for example Z.
I can then insert rows and values in a...
Interesting, so getFaces returns the node ids defining the face?
Maybe my code works then...
In C# I call getFaces something like this:
int[] tri3faces;
int[] tri6faces;
int[] quad4faces;
int[] quad8faces;
meshregion.GetFaces(out tri6faces, out quad8faces, out tri3faces, out quad4faces)...
Can you do this:
model = ExtAPI.DataModel.Project.Model
a = model.Analyses[0]
meshData = a.MeshData
#ids for selected faces
current_ids = ExtAPI.SelectionManager.CurrentSelection.Ids
#mesh region for first selected face
region = meshData.MeshRegionById(current_ids[0])
quad8faces = []...
I can give you the link from the api docs for GetFaces(): https://storage.ansys.com/act/v190/ACTReferenceHTML/Mechanical/index.html#Reference.methode.Ansys.ACT.Interfaces.Mesh.IMeshRegion.GetFaces.html
I'll have to come back to you later for the code.
But if you have an IMeshRegion, you should...
I am trying to create a plugin for Ansys Mechanical in Workbench 19.0, and I am doing so using the .NET API in a mix of C# and C++/CLI project.
Part of the plugin is to extract a lot of information form an analysis. It took me a long time to figure out how to set up my environment, but I'm...