For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

7.1 replacement for user defined data

Lion G.'s picture

In earlier occt versions it's been possible to add user defined data to an AIS_InteractiveObject using 

void AIS_InteractiveObject::AddUser(const Handle(Standard_Transient)& aUser)

Also see the questions and .

However, in 2ec85268a1e5790ad6f7d6d05577c493ce8547a2 from 13/10/2016, this functionality has been removed. Also in this commit, AIS_IdenticRelation received similar functions as the ones removed from AIS_InteractiveObject but it seems like this could be a coincidence.

Can anyone give me some hints about how to add custom data to AIS_InteractiveObject with the current occt releases?

Kirill Gavrilov's picture

You can sub-class presentations or use AIS_InteractiveObject::SetOwner() which has the same interface and intended for application data.

Lion G.'s picture

Works great! Thank you very much!

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.