Message 1 of 3
ClientNodeResources.Add

Not applicable
06-16-2006
08:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Another baffling discrepancy from the API help
files. Note the emphasized text.
files. Note the emphasized text.
Description
Method that creates a new ClientNodeResource. The
new ClientNodeResource is returned. If no expanded icon is passed in, the node
ending up with this resource will use the standard icon as the icon to use when
it is expanded. The state icon is used to prefix the regular icon, typically
denoting the dynamic state of the object it represents.
Syntax
Public Function Add( _
ByVal ClientId As String, _
ByVal Id As Long, _
ByVal Icon As Picture _
) As ClientNodeResource
- ClientId
- Input string that uniquely identifies the
client. Some suggestions might be the ProgID of the Add-In creating the
resource, or its CLSID in a string form, e.g.
"{C9A6C580-3817-11D0-BE4E-080036E87B02}", although any unique string is valid.
- Id
- Input integer identifier that uniquely
identifies the resource to the client. This identifier
must be unique within the context of this owning document, and within this
AddIn. The ClientId and the Id taken together uniquely
identify this object.
- Icon
- Input IPictureDisp of a 16X15 pixel image. Only
bitmaps are supported as a valid input type.
Inventor 10 apparently ignored the Id parameter,
as every ClientNodeResource I created used an Id of 0 and it worked. In
Inventor 11, however, it would crash when the second ClientNodeResource was
created with a duplicate Id of 0. These sorts of things drive us
codemonkeys crazy. So which is it - the documentation for Inventor 10 was
wrong, or the Id parameter just simply wasn't implemented
correctly?
as every ClientNodeResource I created used an Id of 0 and it worked. In
Inventor 11, however, it would crash when the second ClientNodeResource was
created with a duplicate Id of 0. These sorts of things drive us
codemonkeys crazy. So which is it - the documentation for Inventor 10 was
wrong, or the Id parameter just simply wasn't implemented
correctly?
Brian R.
Iwaskewycz
style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">CAD Systems
Manager
style="FONT-SIZE: 14pt; FONT-FAMILY: Verdana">
href="http://www.corefurnace.com">Core Furnace Systems