CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS

Scripting Designmodeler - create skin out of line bodies - named selection

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2015, 03:40
Default Scripting Designmodeler - create skin out of line bodies - named selection
  #1
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 9
USER1234 is on a distinguished road
Hi,

I'm writing a Script (with MATLAB) for Ansys Designmodeler to get a volume of a complex tooth geometry. I've imported a cloud of Points and created Line Bodies from this Points.
The Points define two tooth flanks. Every flank has the same number of Points and is mirrored.
Now I want to use the Skin/Loft to get a Volume. In the Ansys Help I could find the Scripting for Skin/Loft:

Quote:
//Create Skin from sketches in 4 offset planes var
Skin1 = agb.Skin(agc.Add, agc.No, 0.0, 0.0);
Skin1.Name = "Point2OvalSkin"
Skin1.AddBaseObject(ps1.Sk1);
Skin1.AddBaseObject(ps2.Sketch2);
Skin1.AddBaseObject(ps3.Sketch3);
Skin1.AddBaseObject(ps4.Sketch4);
agb.Regen(); //To insure model validity
The problem is, that Designmodeler crashes when I AddBaseObject(Line Body) - Code is this:

Quote:
var Skin1 = agb.Skin(agc.Add, agc.No, 0.0, 0.0);
Skin1.Name = "Line2Skin"
for (var i = 0; i < ag.fm.BodyCount; i+=2)
{
var f1=ag.fm.body(i);
Skin1.AddBaseObject(f1);
}
agb.Regen();
I found out, that "skin.AddBaseObject()" needs an edge, a sketch or a named selection.

Now my question:
Can somebody help me and give me a hint how to write script for named selection of line bodies. It would be usefull not to just give me the code - please explain to me what to do - i want to understand what I'm doing!

I want to skin each "mirrored" Line Body ...

Best regards

Max

Last edited by USER1234; May 20, 2015 at 04:52.
USER1234 is offline   Reply With Quote

Reply

Tags
line bodies, named selection, script, skin

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
[Gmsh] 3D Mesh conversion from gmsh-2.5.0 to OpenFOAM Ancioi OpenFOAM Meshing & Mesh Conversion 17 January 9, 2019 00:50
[ANSYS Meshing] Multiple line select for named selection Tanjina ANSYS Meshing & Geometry 8 October 17, 2013 15:16
Creating named selection for a line sketch amir00251 ANSYS 6 July 31, 2012 09:02
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 13:18.