One of the objects in my plugin needs to store an array of other objects of a certain type in its container. I was looking at the sdk documentation and did not see any way of storing a BaseObject in a container. Is there some easy way to do this or do I need to do something like store the names of all the objects and search for them each time I need them?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/10/2005 at 23:26, xxxxxxxx wrote:

The link is returned as a base-level BaseList2D class. It can store anything derived from this class (BaseObject, BaseTag, and so forth). There is also a GetObjectLink() variation which will return the pointed link as a BaseObject*. Otherwise, cast the returned pointer to the type being set:

BaseObject doesn't have a GetLink() method (either declared or inherited). Most of the time, you get and set your BaseLinks through the object's BaseContainer (GetDataInstance() is one way to get to it) and requires a generic LONG ID value.

No, the link is to a single instance of one of the classes mentioned above. One link per ID only. To store multiple objects, you will need multiple IDs.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 27/10/2005 at 16:18, xxxxxxxx wrote:

The only thing that leads me to believe that the BaseObject must be in the document is that whenever GetLink() or a variation is called, there is a BaseDocument* argument. And there is no mention that it can be NULL.