Removing IsolateObjects document
-
I am using
IsolateObjects
to copy an object into a separate document in order to render a preview of the isolated object.The documentation mentions "The caller owns the pointed document."
Do I simply need to perform aBaseDocument::Free
on the obtained document?
Or do I need to callKillDocument
? -
I was reading the original R20 documentation, when the above question popped up.
Luckily, the latest online SDK documentation contains a BaseDocument Manual, where it mentions (if I understand it correctly) thatKillDocument
is to be called to remove a BaseDocument from the list.
Which meansKillDocument
should only be used if a BaseDocument was created and inserted in the list (viaInsertBaseDocument
).So, as long as I use
IsolateObjects
without performing anInsertBaseDocument
I should be fine with calling BaseDocument::Free to free the obtained basedocument.
If I perform anIsolateObjects
and subsequently callInsertBaseDocument
then I should useKillDocument
.
Correct? -
hi,
yes,
KillDocument
is not necessary in that case.Cheers,
Manuel