|
[Sponsors] |
Delete collection of local coordinate system (macro) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 12, 2016, 04:02 |
Delete collection of local coordinate system (macro)
|
#1 |
Member
Join Date: Nov 2015
Posts: 57
Rep Power: 11 |
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 |
|
December 12, 2016, 04:46 |
|
#2 |
Member
Join Date: Nov 2015
Posts: 57
Rep Power: 11 |
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 |
|
Tags |
java macro |
|
|
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 |