Software Developer's Kit - ChemDraw

Send comments on this topic
AttachmentPointType Property
See Also 


Member of ChemDraw Control.Atom.

Sets and returns the type of external attachment point for this atom, that is an external attachment point.

Property type

Read-write property


Visual Basic
Public Property AttachmentPointType() As CDExternalConnectionType

Return Type


The ability to indicate an attachment point is useful in polymer-bound combinatorial synthesis, protein chemistry, and other situations. ChemDraw has four standard attachment point drawing tools that allow you to indicate a point of attachment while maintaining chemical meaning. These are Diamond, Star, PolymerBead and Wavy. There is a fifth option, if your prefer to leave it unspecified. See CDExternalConnectionType.

If this property is absent the node is treated as having an unspecified external connection type, which is then treated as a black diamond by ChemDraw.

Attachment points are used to specify where fragments should bond to the parent structure on the alternative group label. Numbered attachment  points  allow you  to specify precisely how the structure fragments are connected to your parent structure. Only the diamond tool will show rank numbers.


'Declares variables
 Dim myAtom As ChemDrawControl10Ctl.Atom
'Checks that there is an atom loaded in the variable
 If  Selection.Atoms.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdAttachmentPointType_Click()
    'Sets a value
     myAtom.AttachmentPointType = kCDExternalConnectionStar
    'Reads the value 
     Text1.text = myAtom.AttachmentPointType

 End Sub 

See Also