CFD Online Discussion Forums

CFD Online Discussion Forums (
-   ANSYS Meshing & Geometry (
-   -   Scripting API Design Modeler - Spline (

mieszko1st November 16, 2010 16:57

Scripting API Design Modeler - Spline
Need some help in Ansys Design Modeler scripting API. The goal is to write a script, which draws a spline using control points. According to DM API manual following functions are available : SplineXYW(x,y,weight), SplineKnot(knot), SplineCtrlPtEnd(beginParam, endParam, order, closed, rational, periodic)
I wrote some simple script,


  p.Sp7 = SplineBegin();
      SplineFlexibility = agc.Yes

but the design modeler crashes after running the script. I guess that the functions or parameters in the script are wrong or not sufficient, causing the program to crash.
Do you have any experience in writing such scripts ? Any idea of correct syntax to draw a spline based on control points successfully ?

Thanks for any help

fedefrance February 27, 2014 12:13

I have the same problem, did you find a work around?

mieszko1st March 1, 2014 08:30

I gave up modelling the geometry in Ansys Design Modeller and eventually imported geometry from external 3D modelling software (Pro/Engineer).

fedefrance March 3, 2014 06:09

Ok, thanks

I wil try to give the geometry by points and then let the design modeler interpolate. Something like what is explained here

All times are GMT -4. The time now is 19:35.