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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2015, 07:56
Default [Designmodeler] Scripting-how to name: counting edges, NamedSelection, ..
  #1
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 10
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


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


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