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

[Designmodeler] Scripting-how to name: counting edges, NamedSelection, ..

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2015, 08:56
Default [Designmodeler] Scripting-how to name: counting edges, NamedSelection, ..
  #1
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 9
USER1234 is on a distinguished road
Hi,

does anybody know how to script counting edges, NamedSelections, Lines, ... in a "for-loop". I could only find an example for counting bodies but I couldn't transfer the scripting to others.

Example for bodies:
Code:
for (var i = 0; i < ag.fm.BodyCount; i++)
{
    var f1=ag.fm.body(i);
    f1.Name = "Line_Body_"+f1.PartID
}
agb.Regen();
For example this Code doesn't work with "...ag.fm.NamedSelCount;..".

Best regards
Max
USER1234 is offline   Reply With Quote

Reply

Tags
count, script

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
[snappyHexMesh] snappyHexMesh sticking point natty_king OpenFOAM Meshing & Mesh Conversion 10 August 5, 2019 20:18
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09:54
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43


All times are GMT -4. The time now is 14:57.