Getting and setting the sketch name (as well as other objects) |
Top Previous Next |
Here is how to get and set the sketch (and other objects) name:
CComPtr<PlanarSketch> pSketch; ... CComBSTR bstrSketchName ; pSketch->get_Name (&bstrSketchName) ; //Get the sketch name ... pSketch->put_Name (CComBSTR(L"Tube_Base")) ; // Set the name
Many many objects in the Inventor API have names, like workplanes and parts etc. You can usually interrogate and change the names with the methods shown above. |
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)