Jump to content
Developer Wiki and Function Reference Links ×

Add/Get/Remove Association

Recommended Posts

I want to link two objects on different layers and figured I can use the "Association" calls for example


AddAssociation( ioOwnerObj  :HANDLE; inKind  :INTEGER; ioTargetObj  :HANDLE) :BOOLEAN;


I notice there are only two association "kinds"


kOnDeleteDelete = 4; {Target object is deleted when owner is deleted.}

kOnDeleteReset = 5; {Target object is reset when owner is deleted.}


Are there any others? I am looking for a kOnMoveDelete or a kOnMoveMove


Also I noticed when I interrogate data tags with GetAssociation( HANDLE  :HANDLE; index  :INTEGER; VAR associationkind  :INTEGER; VAR value  :INTEGER)


then the following kinds apply (Note index is zero based).


Data tag = 37

Target object = 36


I also noticed if a source object with an association to a target object is copied then the association is lost on the new object which is good.




Link to comment

I haven't found a way to use any other associations than DeleteDelete and Delete Reset.


If your owner object is your own custom object, you can do the association yourself by having the owner object reset the target object with ResetObj, and by setting the option to reset on move.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...