Skip to main content

ModelCenter APIs 2025 R1

Variables

Last update: 16.07.2025

public class Variables : PHXCOMObject, Iterator<E>

A collection of variables

Author

Sharp, 11/2002

Functions

Name Summary
disableGC public disableGC(gc: Boolean)
If true, prevents releaseObjects from doing anything.
forEachRemaining public forEachRemaining(action: Consumer<in E>)
getCount public getCount(): Int
gets the number of variables in this collection
getItem public getItem(index: Int): Variable
public getItem(name: String): Variable
Gets a particular element of this collection
hasNext public hasNext(): Boolean
Returns true if next() can return another valid variable from this iterator
next public next(): Any
Returns the next available object from this collection.
release public release()
Releases the COM reference to ModelCenter for this object.
releaseObjects public releaseObjects()
This function attempts to release any COM resources left behind from objects which have been finalized but release() was never called on them.
remove public remove()
Unimplemented.
resetIterator public resetIterator()
Resets the iterator with respect to the hasNext() and next() functions.
setReferenceDebugMode public setReferenceDebugMode(on: Boolean)
When set to true, the system will keep a list of active COM objects that are allocated but not yet released since this method was invoked.

Connect with Ansys