Applies To:

ChemDraw Menu Extensions Interface:  Access Functions


Indicates if anything is currently selected in the given document.


long CDAPI CDIsStructureSelected( long documentToken );

documentToken a document token representing the document of interest, as provided to the DLL in a GetSubmenuItemName, GetSubmenuItemState or DoSubmenuChoice call.

Returns a long with a value of 0 if there are no items selected, or a non-zero number if there are any items selected in the indicated document.


This function must have ordinal number 0 in the Import Definition File.

Unlike many of the other functions, the return value is not an error indicator.  This function does not return an error status.


See Also:

GetSubmenuItemName, GetSubmenuItemState, DoSubmenuChoice

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA