Software Developer's Kit - ChemDraw

Send comments on this topic
WarningsIgnored Property
See Also 


Member of ChemDraw Control.Geometry.

Returns whether the warnings of this geometry should be ignored or not.

Property type

Read-write property


Visual Basic
Public Property WarningsIgnored() As Boolean

Return Type



Indicates whether chemical warnings should be suppressed, or not, on this object. This property is set to False by default. Chemical warnings will be displayed (in the form of red boxes) on objects that have various types of unusual chemistry.  If this property is set to True, no warnings will be displayed on the object.


'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdWarningsIgnored_Click()
    'Toggles the value of WarningsIgnored
     If  vObject.WarningsIgnored = True Then
         vObject.WarningsIgnored = False
         vObject.WarningsIgnored = True
     End If
 End Sub

See Also