Hi Naveen,
Thanks for getting back on this topic so quickly, strongly appreciated.
I'm mostly using
ComApiBridge.State.ObjectFactory(nwEObjectType, null, null)
Here are the types I create with a quick explanation for each:
InwOaPropertyVec and InwOaProperty aka nwEObjectType.eObjectType_nwOaPropertyVec and nwEObjectType.eObjectType_nwOaProperty
for getting/setting a specific (or a set of specific) user-defined properties in a model item
InwLVec3f aka nwEObjectType.eObjectType_nwLVec3f
for creating RGB colors once and reusing them repeatedly in our Renderer plugin
InwLBox3f aka nwEObjectType.eObjectType_nwLBox3f
for creating a boundingbox used for example to zoom the current view to a specific area with ComApiBridge.State.ZoomInCurViewOnBoundingBox
InwOaPath aka nwEObjectType.eObjectType_nwOaPath
to get an empty path that I fill one by one to match an existing ModelItem and directly go down its parents from top to check if they are partitions.
Aka to build a list of partitions of a specific modelItem from the root instead of using higher level Parent calls that are super slow
InwOpSelection aka nwEObjectType.eObjectType_nwOpSelection
to get an empty selection which I fill with Paths from model items and use to override transparency with ComApiBridge.State.OverrideTransparency
InwOpView aka nwEObjectType.eObjectType_nwOpView
to create a blank view and be able to set its ApplyHideAttribs and ApplyMaterialAttribs values
A few other types I just looked at but not used yet at least via ObjectFactory creation...
My guess/hope is these COM objects are cleared at some point when not used but I suddenly get a doubt since I can't fathom by which magic this would happen 😉
Also if something need to be done in my source code to "release" these, wondering if there is a generic mechanism or if it would depend on the object type?