END C++ add-in programatically

END C++ add-in programatically

Anonymous
Not applicable
541 Views
4 Replies
Message 1 of 5

END C++ add-in programatically

Anonymous
Not applicable

How do I end a C++ add-in from code?

I've used the template but,

I have to manually END it from the add-in Fusion menu.

 

Hope that makes sense?

 

Dave Whiteley

0 Likes
Accepted solutions (1)
542 Views
4 Replies
Replies (4)
Message 2 of 5

jiri.manak
Contributor
Contributor

adsk::terminate();

 

 

Jiri

0 Likes
Message 3 of 5

Anonymous
Not applicable

adsk:: does not have 'terminate' as a member.

0 Likes
Message 4 of 5

jiri.manak
Contributor
Contributor
Accepted solution

it has

try this:

#include <Core/CoreAll.h>
#include <Fusion/FusionAll.h>


    bool try_terminate() {
        return adsk::terminate();
    }

Jiri

0 Likes
Message 5 of 5

Anonymous
Not applicable

That worked! Many thanks.

0 Likes