|
[Sponsors] |
September 7, 2022, 18:42 |
Starccm +Java Marco
|
#1 |
New Member
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10 |
Hi,
I have created a tag named ”test”. Now i want to play a macro to put the tag on all my contact surfaces. Anyone can provide with a macro. I am new and this Will be a good beginning |
|
September 7, 2022, 19:35 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66 |
There's a nice built in feature that does exactly what you want.
Use the record a macro button, do a few of the changes. Stop recording. It creates a macro file for you. |
|
September 7, 2022, 19:37 |
|
#3 |
New Member
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10 |
Obviously i have Done that. Yes I have Done that but dont know how to Wright the for loop so that I get all the contact. If you know how to do it, please share.
|
|
September 7, 2022, 22:46 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66 |
Sure, it's
for (class name : classCollection) { statements} Now put in the class that you get from your recorded maccro The class collection you'll get from the getBanannaManager().getObjects(); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Java vs C++ for CFD mesh processing | ssh123 | Main CFD Forum | 19 | July 12, 2021 09:15 |
Java Error and StarCCM | notpron | STAR-CCM+ | 0 | January 5, 2016 18:48 |
Macro to access java files in sub-directory | abraum | STAR-CCM+ | 3 | July 11, 2012 02:46 |
[Other] Problems with starccm mesh | AndTen | OpenFOAM Meshing & Mesh Conversion | 1 | February 23, 2010 04:43 |
Getting OpenFOAM to coexist with an existing JAVA VM | nik777 | OpenFOAM Installation | 5 | February 22, 2007 07:21 |