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, 08:56
Default [Designmodeler] Scripting-how to name: counting edges, NamedSelection, ..
  #1
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 11
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 10:12
[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 16:01.