Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the name of a document programaticlly (C++ & COM)

1 REPLY 1
SOLVED
Reply
Message 1 of 2
oransen
320 Views, 1 Reply

How to change the name of a document programaticlly (C++ & COM)

I'd hoped that I could change the name of a part document like I did with sketches, simply assignment:

 

 

BSTR bstrName ;
pPartDoc->get_FullDocumentName (&bstrName) ;

wprintf (L"\nFull document name was %s\n",wchar_t(bstrName)) ;

pPartDoc->FullDocumentName = L"Whatever" ;

 

But the compiler complains about no put method on that last line.

 

How do I change the name of a Part Document programatically?

1 REPLY 1
Message 2 of 2
oransen
in reply to: oransen

Forget it! I should have been doing DisplayName, and that works.

 

Kudos to me!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report