CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS Meshing & Geometry

Scripting API Design Modeler - Spline

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 16, 2010, 16:57
Question Scripting API Design Modeler - Spline
  #1
New Member
 
MM
Join Date: Nov 2010
Posts: 2
Rep Power: 0
mieszko1st is on a distinguished road
Hi
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,

Code:
  p.Sp7 = SplineBegin();
    with(p.Sp7)
    {
      SplineFlexibility = agc.Yes
    SplineXYW(0.0,0.0,1);
    SplineKnot(0.33);
     SplineXYW(0.5,0.7,1);
     SplineKnot(0.55);
  SplineXYW(0.9,0.4,1);
     SplineCtrlPtEnd(0.0,1.0,4,0,0,0);
    }
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
MM
mieszko1st is offline   Reply With Quote

Old   February 27, 2014, 12:13
Default
  #2
New Member
 
federico
Join Date: Jan 2013
Posts: 13
Rep Power: 4
fedefrance is on a distinguished road
I have the same problem, did you find a work around?
fedefrance is offline   Reply With Quote

Old   March 1, 2014, 08:30
Default
  #3
New Member
 
MM
Join Date: Nov 2010
Posts: 2
Rep Power: 0
mieszko1st is on a distinguished road
I gave up modelling the geometry in Ansys Design Modeller and eventually imported geometry from external 3D modelling software (Pro/Engineer).
mieszko1st is offline   Reply With Quote

Old   March 3, 2014, 06:09
Default
  #4
New Member
 
federico
Join Date: Jan 2013
Posts: 13
Rep Power: 4
fedefrance is on a distinguished road
Ok, thanks

I wil try to give the geometry by points and then let the design modeler interpolate. Something like what is explained here http://www.youtube.com/watch?v=6wQPeBpvwCk
fedefrance is offline   Reply With Quote

Reply

Tags
design modeler, geometry, script, spline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Points in Design Modeler danh ANSYS Meshing & Geometry 5 March 30, 2015 10:45
[Other] Connecting 3D bodies in Ansys Design Modeler chipper ANSYS Meshing & Geometry 3 June 19, 2010 09:46
Modeling Terrain in Design Modeler Will C ANSYS 0 February 26, 2010 19:13
Design Modeler to ICEM..... Joe CFX 0 January 24, 2008 04:39
Info: Short Course On Thermal Design of Electronic Equipment Arnold Free Main CFD Forum 0 August 10, 1999 10:18


All times are GMT -4. The time now is 01:37.