Current scene file path?

On 16/03/2016 at 11:54, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R15-R17 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Is there anyway to get the path of the current scene file? I mean the .c4d file.

Regards!

On 16/03/2016 at 12:46, xxxxxxxx wrote:

If it has been saved, BaseDocument::GetDocumentPath() and BaseDocument::GetDocumentName().

if (pDoc->GetDocumentPath().Content())
{
	Filename fullDocPath = pDoc->GetDocumentPath() + pDoc->GetDocumentName();
}