Daylight v4.9
Release Date: 1 February 2008

Name

dt_setbondtype - specify the type of a bond object

Generic Prototype

dt_setbondtype(dt_Handle, dt_Integer) => dt_Boolean

C Prototype

#include "dt_smiles.h"

dt_Boolean dt_setbondtype(dt_Handle bond, dt_Integer type)

FORTRAN Prototype

include 'dt_f_smiles.inc'

logical dt_f_setbondtype(bond, type)

integer*4 bond
integer*4 type

Description

Sets the bonds type to 'type'. Values of 'type' are: DX_BTY_UNKNOWN, DX_BTY_SINGLE, DX_BTY_DOUBLE, DX_BTY_TRIPLE, DX_BTY_AROMAT, and DX_BTY_WILD. May only be used when the molecule is in the modify-on state. May also effect the bond order: if the bond type is single, double, or triple, the bond order is also; if the bond type is set to aromatic, the bond order becomes unknown.

Return Value

Returns the success (TRUE) or failure (FALSE) of the operation.

Related Topics

dt_addbond(3) dt_bond(3) dt_bondorder(3) dt_bondtype(3) dt_dbo(3) dt_setbondorder(3) dt_setdbo(3)