Software Developer's Kit - ChemDraw

Send comments on this topic
IsVariableAttach Property
See Also 


Member of ChemDraw Control.Atom.

Sets and returns whether the atom is a variable attachment point or not.

Property type

Read-write property


Visual Basic
Public Property IsVariableAttach() As Boolean

Return Type



This property returns true if the atom is a variable attachment point, else returns false. Variable attachment points are the points through which we can draw different positional isomers of a compound using an abbreviated notation that  retains chemical significance.


'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

'Reads if this property is True/False 
 If  vAtom.IsVariableAttachIs = True then
         Text1.Text = "Atom is IsVariableAttach"
         Text1.Text = "Atom is not IsVariableAttach"
     End If
 End Sub 

See Also