Posts: 5
Registered: ‎12-27-2006
Message 1 of 2 (189 Views)

Root Node

189 Views, 1 Replies
01-23-2007 08:53 AM
I'm trying to get the Root Node in Python but obviously I haven't quite grapsed the concept fully. Can someone give me an idea as to where I may be going wrong?

bool WireTapServerHandle::getRootNode(
WireTapNodeHandle &root
) const"

"The root node may be queried through the call getRootNode.."
"root: The root parameter is a WireTapNodeHandle object."
"Upon success, the result is placed in the root parameter."

# server = WireTapServerHandle('myMachine')
# root = WireTapNodeHandle()
# rootNode = server.getRootNode(root)
# print root
# print root.getNodeId()

Gives ""

Rather than an ID I would like to see the root node as a string, perhaps I need to call 'WireTapNodeHandle::getNodeTypeStr' once I get the concept correct?
Valued Contributor
Posts: 51
Registered: ‎11-17-2006
Message 2 of 2 (189 Views)

Re: Root Node

01-23-2007 08:22 PM in reply to: bfattorini

You're hitting a bit of silliness in the API. To see the actual ID on a WireTapNodeId object, you need to call the id() function as follows:


Yucky. A simple cast operator on our end should do the trick. We'll try to get that in to avoid the confusion.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.