nv-l
[Top] [All Lists]

RE: [nv-l] Display created objects with the API

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Display created objects with the API
From: "Allison, Jason \(JALLISON\)" <JALLISON@arinc.com>
Date: Mon, 7 Mar 2005 12:53:07 -0500
Delivery-date: Mon, 07 Mar 2005 17:53:45 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Thread-index: AcUjPaKRwcQv4a80S8ehCsqpp4qkEwAAE1Fg
Thread-topic: [nv-l] Display created objects with the API
The code below creates a symbol to an already created object.  I don't
know what the issue with your code is, the only glaring difference would
be that you need to use some of your created object properties in the
creation of your symbol.  Also, you may want to add some error checking
so that you can see exactly what your error is.

Good luck,

              // Create a new Symbol for this object on the Ack Map
              new_symbol_id =
                OVwCreateSymbol(map,
                                ack_submap_id,
                                object_list->objects[i].object_id,
                                ack_symbol_info->symbol_type,
                                ack_symbol_info->symbol_label,
                                ack_symbol_info->symbol_status,
                                ack_symbol_info->status_source,
                                NULL,
                                ovwMergeDefaultCapabilities);

              if (OVwIsIdNull(new_symbol_id)) {
                printf("monitor_ackCB - OVwCreateSymbol failed: %s\n",
                        OVwErrorMsg(OVwError()));
              } // end OVwIsIdNull

Jason Allison
Principal Engineer
ARINC Incorporated

-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]
On Behalf Of Fernando Mari
Sent: Monday, March 07, 2005 12:46 PM
To: nv-l@lists.us.ibm.com
Subject: [nv-l] Display created objects with the API


Hi,

I use Netview 7.1.3 Windows 2000 server

I use the following code to create an object and it symbol, but when I 
open the netview
console is not displayed! any clue?

obj_id = OVwDbCreateObjectByHostname("10.1.50.1");
map = OVwGetMapInfo();
symid = OVwCreateSymbol( map, map->root_submap_id, object_id, 
ovwSWorkstationComputer, "test", ovwUnknownStatus,ovwSymbolStatusSource,

NULL, ovwNoSymbolFlags );   

thanks,

Fernando


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web