-
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…
-
Scripting surfaces in SpaceClaim 2023 R2 getting slow
Hello, I wrote a script for creating a geometry of beams and surfaces in space claim 2021 R1. Now I'm testing it in 2023 R2 and I am getting several problems: -The script is 10x slower and it seems that the surfaces are the problem. -sometimes lines are not solidified and are not converted into beams, it seems to happen…
-
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?
-
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 =…
-
Script doesn't work while inside ACT Extension
I'm trying to create a Workbench Mixed Wizard, to analyze a simple cantilever beam. I managed to make the geometry generation script to work for any SpaceClaim instance I open as standalone. Although, when it's part of a step of a Wizard, I get the following error: I feel like I should import the SpaceClaim scripting…
-
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?
-
Cyclic Symmetry with Multiple Cyclic Index (Angles)
Hi, it would be appreciated, if any one can clarify for the below query. 1) Can we use different sector angles for each component of an Assembly in cyclic symmetry analysis? For example, we are providing 36 (1/10th) degrees of sector angle to Component A and 72 (1/5th) degrees to Component B of sector angle in the…
-
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=??
-
Can I change material properties in SpaceClaim through Scripting?
How can I access and change the properties of a Material assigned to a body in the Tree?
-
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 can I access Custom Component Properties in SpaceClaim?
How can I access a user-defined property in Custom Component Properties?
-
Cyclic symmetry with Bonded Contacts
Hi, it would be appreciated, if any one can clarify for the below query. 1) Do cyclic symmetry work with open joints and the contacts between them being bonded? (Figure). 2) Furthermore, do the hoop continuity stress affects both the components due to the bonded contacts (as it behaves as a continuous component) in Cyclic…
-
Creating beam profile in SpaceClaim and assigning to curve
I would like to create a beam profile and assign it to a curve using script. I know start point and end point.
-
Get bounding box of whole CAD assembly in SpaceClaim/Disovery.
I would like to get the bounding box of the whole CAD using script. Is that any way to do that?
-
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?