CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Macro in Star CCM+ (https://www.cfd-online.com/Forums/star-ccm/195908-macro-star-ccm.html)

redhybrid November 20, 2017 11:05

Macro in Star CCM+
 
Hi guys,

My programming knowledge is poor so I need some guidance here~

I am new to Star CCM+ using macro recording/play in Star CCM+ to deal with the repeated work (settings).

1.If I want to go deeper into Star CCM+ macro, I need to learn JAVAscript first?

2.Can excel VBA does the same thing for Star CCM+?

Thank you

bluebase November 21, 2017 07:28

Hi redhybrid,

there is a dedicated subforum for StarCCM and alikes. It would be good practice to post such a software-specific question there.

Putting that on the side:

1. StarCCM macros are written in java, not javascript. Whether you need to "learn" java depends on whether you have any previous programming experience. Refering to the second question, you do have some with VBA. The concepts of objects, variables, loops, etc. shouldn't be new to you. With the help of google, stackoverflow, etc. you should be able to write starccm macros without having to become a java programmer.

Starccm has a very detailed api documentation. moreover, you can fully integrate the api into an ide, such as netbeans. That way, you can simple adapt a recorded macro using the doc.

2) If you can call java methods from vba, there might be a tiny chance to use vba to run starccm. I think, this wouldn't make much sense. The time to figure out this way out oneself could be better spent on doing a java tutorial and searching on stackoverflow for whatever is unknown.

Best regards,
Sebastian

redhybrid November 27, 2017 10:10

Thank you Sebastian!

linyanx October 25, 2018 15:02

Quote:

Originally Posted by redhybrid (Post 673027)
Thank you Sebastian!

Hi redhybrid,

How was your process goes? I'm trying to find some tutorials about the Netbean IDE integrated with STAR-CCM. Could you please share your experience if any?

Thanks,
Linyan


All times are GMT -4. The time now is 04:56.