CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Delete collection of local coordinate system (macro)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2016, 04:02
Default Delete collection of local coordinate system (macro)
  #1
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 11
taillanm is on a distinguished road
Hello all,

Does someone know how to delete a collection of coordinate systems in a macro?

I started writing:
Collection<Object> CoordSys = simulation_0.getCoordinateSystemManager().getLabCo ordinateSystem().getLocalCoordinateSystemManager() .getChildren();

If I print this I get a list of all my coordinate systems, however I would like to remove them all. I tried:
.removeAll();
.removeObjects();
but those commands don't work as my collection doesn't seem to be a collection of objects

Maximilian
taillanm is offline   Reply With Quote

Old   December 12, 2016, 04:46
Default
  #2
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 11
taillanm is on a distinguished road
With a little bit of trial and error i came up with:

Collection<CoordinateSystem> CoorSys = simulation_0.getCoordinateSystemManager().getLabCo ordinateSystem().getLocalCoordinateSystemManager() .getObjects();

simulation_0.getCoordinateSystemManager().getLabCo ordinateSystem().getLocalCoordinateSystemManager() .removeObjects(CoorSys);

Maximilian
taillanm is offline   Reply With Quote

Reply

Tags
java macro


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
How can I fix a local coordinate system to the inlet phys-zephyr STAR-CCM+ 3 May 8, 2014 06:46
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
Create coordinate system using Macro Jonny6001 STAR-CCM+ 1 August 19, 2012 19:05
local coordinate system for porousZone Nico A. OpenFOAM Programming & Development 0 November 15, 2011 05:32
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 07:13.