|
[Sponsors] |
November 16, 2010, 16:57 |
Scripting API Design Modeler - Spline
|
#1 |
New Member
MM
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
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); } 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 |
|
February 27, 2014, 12:13 |
|
#2 |
New Member
federico
Join Date: Jan 2013
Posts: 13
Rep Power: 13 |
I have the same problem, did you find a work around?
|
|
March 1, 2014, 08:30 |
|
#3 |
New Member
MM
Join Date: Nov 2010
Posts: 2
Rep Power: 0 |
I gave up modelling the geometry in Ansys Design Modeller and eventually imported geometry from external 3D modelling software (Pro/Engineer).
|
|
March 3, 2014, 06:09 |
|
#4 |
New Member
federico
Join Date: Jan 2013
Posts: 13
Rep Power: 13 |
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 |
|
Tags |
design modeler, geometry, script, spline |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Connecting 3D bodies in Ansys Design Modeler | chipper | ANSYS Meshing & Geometry | 4 | January 25, 2018 10:45 |
Importing Points in Design Modeler | danh | ANSYS Meshing & Geometry | 5 | March 30, 2015 11:45 |
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 11:18 |