Software Developer's Kit - ChemDraw

Send comments on this topic
AltGroup Object
See Also  Members 

Description

Member of ChemDraw Control.

For a list of all members defined for this object, see AltGroup Members.

ChemDraw AltGroup Class is used to create a search query that contains variable functional groups or substructures.

Object Model


























Remarks

In ChemDraw you can create AltGroup definitions that contain variable functional groups or substructures, that represent a set of substituents, so that any of them can match a query. Instead of submitting multiple queries on structures that share a common substructure, you can submit a single query with the parent structure. The parent structure can have attachment points to a list of AltGroups that you can define.

An AltGroup is a container object holding ChemDraw objects. Typically it is used for query searches and contains fragments.

Example

'This example reads data from an alternative group
 Private Sub cmdShowAtoms_Click()
    Dim vAltGroup as ChemDrawControl10Ctl.AltGroup
    Set vAltGroup = ctlChemDraw.AltGroups.Item(1)
    For I = 1 To vAltGroup.Atoms.Count
        If  vAltGroup.Atoms.Item(I).IsAttachmentPoint = False Then
            List1.AddItem (vAltGroup.Atoms.Item(I).LabelText)
        Else
            List1.AddItem ("Number:º " & I & " is an attachment point")
        End If
     Next I
 End Sub

See Also