Protocol For Reloading Proxy Objects

Protocol For Reloading Proxy Objects

Kyudos
Advisor Advisor
953 Views
3 Replies
Message 1 of 4

Protocol For Reloading Proxy Objects

Kyudos
Advisor
Advisor

Say I've opened a file containing my custom objects before loading my ARX. So they are now proxy objects.

 

If I then APPLOAD my plugin, what is the correct protocol for 'un-proxy-ifying' my objects?

 

Closing the files first and then reopening them seems simplest, but is there a 'proper' way? 

0 Likes
Accepted solutions (1)
954 Views
3 Replies
Replies (3)
Message 2 of 4

artc2
Autodesk
Autodesk
When your application loads and registers its classes, proxies for objects of those classes in drawings already open should automatically resurrect to be the actual objects rather than proxies.
Message 3 of 4

Kyudos
Advisor
Advisor

And is the reverse true? If I unload my APP, should my objects automatically turn to proxies?

 

At the moment, my app detects if one (or more) of my files are open and refuses to load / unload in that case. I remember not really liking to do it that way, but was having some problems with proxy objects and didn't have the time to figure out the actual issue.

 

But it should be seamless if everything is working correctly?

 

0 Likes
Message 4 of 4

artc2
Autodesk
Autodesk
Accepted solution
Yes, if your app is unloaded, then any objects of classes that it implements should automatically become proxies as part of the unloading process.