Software Developer's Kit - ChemDraw

Send comments on this topic
IsAttachmentPoint Property
See Also 


Member of ChemDraw Control.Atom.

Sets and returns whether the atom is an external attachment point. 

Property type

Read-write property


Visual Basic
Public Property IsAttachmentPoint() As Boolean

Return Type



This property returns true if the atom is an external attachment point, else returns false. Attachment Points specify where the fragments should bond to the parent structure on the alternative group label. After creating the attachment point, you can verify the node is present with a bond or a selection tool. This provides a way to check the definition of pre-existing attachment points.


'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

'Checks if this property is True or False 
 If  myAtom.IsAttachmentPoint = True then
         Text1.Text = "Atom is IsAttachmentPoint"
         Text1.Text = "Atom is not IsAttachmentPoint"
     End If
 End Sub 

See Also