|
[Sponsors] |
[Designmodeler] Scripting-how to name: counting edges, NamedSelection, .. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 20, 2015, 08:56 |
[Designmodeler] Scripting-how to name: counting edges, NamedSelection, ..
|
#1 |
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 |
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(); Best regards Max |
|
Tags |
count, script |
|
|
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 |