FullDocumentName and GetLocationFoundIn |
Top Previous Next |
These two functions tell you about the "location" of the part.
{ // Show in what current project the part is... CComBSTR bstrLocationName; LocationTypeEnum eType; pPartDoc->GetLocationFoundIn(&bstrLocationName, &eType); TRACE (L"GetLocationFoundIn Location = <%s>, enum = %d", bstrLocationName, eType); // For example: <WorkSpace>, enum = 45057, read from the project file, I think }
{ // Show the simple full file path of the part... _bstr_t fdn = pPartDoc->GetFullDocumentName (); TRACE (L"FullDocumentName = <%s>",LPCWSTR (fdn)); "C:\\WillyWonker\\Chocolate.ipt" }
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)