CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Starccm +Java Marco

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2022, 18:42
Default Starccm +Java Marco
  #1
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
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
Muh is offline   Reply With Quote

Old   September 7, 2022, 19:35
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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.
LuckyTran is online now   Reply With Quote

Old   September 7, 2022, 19:37
Default
  #3
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
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.
Muh is offline   Reply With Quote

Old   September 7, 2022, 22:46
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,737
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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();
LuckyTran is online now   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 09:24.