-
Find and change characters for Named Selections inside Spaceclaim
Say we have a some Named Selections inside Spaceclaim with the "." character inside their name. We would like to replace this character by "_". Can we use scripting to do that?
-
How to get Faces Aligned with a Direction and Located at the "Top" of the Body
This example is how to get faces aligned with a direction and also located on the "top" of the body in that direction. You can see the type of faces in the image, aligned with the Z Direction. Notice one of the 3 blocks does not have a face selected because it it not oriented in line with the Z axis. This is useful often…
-
The same script have the different result between debug mode and publish mode
hi everyone, I run the same script between edit debug mode and publish mode, there are different results. At the edit mode will have the correct result, that's why? I have attached the script file.
-
Helix around a curve. For example half circle.
Hi everyone. I am running a project for a CFD simulation of fluid flow inside an internally helical ribbed tube ( Rifled technology - tube) of a compact heat exchanger, where the tube would be bent 180 degrees. I know how to draw a helix twisted a long straight curve using SpaceClaim. But how can I sweep a helical surface…
-
How do I set up specific shared topology on edges?
How can I set up shared topology on specific edges in spaceclaim or discovery scripting?
-
How to select specific direction faces.
How to select only the X and Y direction faces?
-
How to create an Origin (Coordinate System) at the middle of an Edge in SpaceClaim?
I would like to create an Origin at the midpoint of each Edge included in a Group. How can I do that with SpaceClaim Scripting?
-
Determine if Spaceclaim and/or Discovery has Geometry External Dependencies
Does someone have a snippet to check if any other the parts/bodies in SC or Discovery are external referenced instead of internal?
-
Discovery Pull Helix revolve creates wrong height
Hi all, I have taken scripting of the Pull with helix revolve tool and want to parameterise. For some reason, the "height" of Pull is not being respected, e.g. creating a height of 34mm instead of the requested 31.9mm. This seems random, as for other dimensions the too works properly. Dscript file also attached. Can you…
-
Referencing SpaceClaim dlls
Hi, I have created several ACT functionalities in SpaceClaim ANSYS 2020R2 which I'm transfering to 2023R1. I have tried to use the following code snippet in both versions: _import clr clr.AddReference("SpaceClaim.Api.V20.Scripting.dll") import SpaceClaim.Api.V20.Scripting as SCv20_Scripting rootPart =…
-
How to modify the color property of beams and surfaces from script
Hello, I'm using SpaceClaim 2021 R1 with python interpreter V19 I need to change the color property of beams and surfaces, in particular beams, but I couldn't find a way. I tried recording the operation to get the snippet code but, when I change the color, it doesn't record anything. I hope someone have already found out a…
-
Can I interact with SpaceClaim or Ansys Discovery from outside the application ?
Hello there. I want to interact with either SpaceClaim or Discovery programmatically, create geometries, and save files, without interacting with the software's UI. Very similar to the Pyfluent library to interact with Ansys Fluent with a Python script. How can it be done?
-
How to delete Edges of some components in SpaceClaim?
How to delete Edges of some components in SpaceClaim?
-
How to export the cross point on the surface to csv file?
On the SpaceClaim or Discovery, How to export the cross point on the surface like the following image to csv file?
-
How can I set the .stil import unit system (Spaceclaim/Discovery)
How can I use the document insert API to insert an stl but specify the unit system to use for that file? Options = ImportOptions.Create() Options.Stl.Units=??
-
Two ways to copy a component (subtle differences)
A channel partner reported that comp = GetRootPart().Components[0] compCopy1 = ComponentHelper.CopyToRoot(comp) compCopy2 = Copy.Execute(ComponentSelection.Create(comp)) CompCopy1 is faster, but creates the component with a very small offset. Michael Janes reply was: The component has a transform, and…
-
How to access the Discovery result and read the result value through script?
who can give me a example and teach me how to read the discovery result through the script, i can't find any demo or example to introduce.
-
How can I assign a material to multiple bodies in Spaceclaim?
How can I assign a material to multiple bodies in Spaceclaim? The material can be in the Local Materials or in the Library
-
How do I run Discovery in batch?
I am looking for command line command to run a Discovery script in batch mode
-
Compute surface normal of face
Hello all, I have a faceted body as shown below and I would like to capture the top faces, bottom faces and cylindrical faces separately and assign named selections using scripting. There are hundreds of such fins and to manually assign named selections is very tedious and also each fin has different dimensions, but they…
-
How to obtain simulation progress through running SpaceClaim/SPEOS Core in the background?
Hello! I am running SPEOS Core in the background using the command line, and I want to see if it is possible to obtain some sort of progress percentage so that I can display it somewhere instead of just waiting for the process to finish. Does anyone know if this is possible? Thank you!
-
Space Claim script to detect overlapping selections
In Space Claim is there a command for detecting overlapping named selections? It is not possible to record "Named Selections" > "Detect Overlapping Selections" Are any examples available?
-
Python SpaceClaim API: Setting object visibility from selection
Greetings, I am trying to "check the box" for a number of parts in the structure tree. Using the recording feature of the API, I get the ViewHelper.SetObjectVisibility class/method. Trying to apply this to my existing selection yields nothing though - code below. How can I toggle the parts based on my existing selection?…
-
How to generate named selections for faces in contact between 2 bodies?
-
How to create a surface cylinder in Spaceclaim?
-
How to select the shared edges in Spaceclaim?
How to select the shared edges in Spaceclaim?
-
Select face by location (Rayfire)
How to select a face by location?
-
change Spaceclaim options
How to change the Spaceclaim options (for instance, Autosave, Rendering quality and Language) ?
-
Select a body by location
Select a body by location
-
Convert Catia parameters into Script Parameters