Wiretap

Reply
Member
bfattorini
Posts: 5
Registered: ‎12-27-2006
Message 1 of 2 (181 Views)

Root Node

181 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?

"WireTapServerHandle::getRootNode
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
or
# 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
labuted
Posts: 51
Registered: ‎11-17-2006
Message 2 of 2 (181 Views)

Re: Root Node

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

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:

node.getNodeId().id()

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

Dan
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.