Skip to main content

ModelCenter APIs 2026 R1

CachePin

Last update: 18.06.2026

public class CachePin : PHXCOMObject

This is the wrapper class that handles the native COM calls to a CachePin. The class is used by Java plug-ins to ModelCenter.

Functions

Name Summary
checkinOnFlush public checkinOnFlush(messsage: String)
Checkin with the specified message when the file is unpinned.
disableGC public disableGC(gc: Boolean)
If true, prevents releaseObjects from doing anything.
getLocalPath public getLocalPath(): String
Get the local path of the file in the cache.
getUrl public getUrl(): String
Get the original URI of the resource.
isValid public isValid(): Boolean
Is this object pinning a file?
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.
releasePin public releasePin(): Boolean
Unpin the current file if a file is pinned.
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