SoBaseKitCreatePathToPart Method (String, Boolean, SoPath) |
Returns a path that begins at this nodekit and ends at partName.
Namespace: OIV.Inventor.Nodekits
public virtual SoNodeKitPath CreatePathToPart( string partName, bool makeIfNeeded, SoPath pathToExtend )
Searching for the part is the same as in OIV.Inventor.Nodekits.SoBaseKit.GetPart(System.String, System.Boolean). NULL is returned if partName cannot be found, or if makeIfNeeded is false and the part is not yet built. If the part is retrieved and the argument pathToExtend is NULL, the path returned begins at this and ends at partName. If pathToExtend is not NULL, the path created is a copy of pathToExtend with entries appended all the way down to partName. It is okay for pathToExtend to go beyond the nodekit; extra nodes will be popped off the tail before continuing from this down to partName.