Example 6: Example Code
void ChopDownTree( SE_Transmittal xmittal, SE_Object tree_parent_obj,
SE_Object tree_obj, SE_Object bldg_model_obj )
ret = SE_RemoveComponentRelationship( tree_parent_obj, tree_obj, NULL );
ret = SE_RemoveFromTransmittal( tree_obj, xmittal );
// We could replace the previous 2 lines of code with 1 call to SE_RemoveObjectTree( tree_obj );
ret = SE_CreateObject( xmittal, SE_DRM_CLS_FEATURE_MODEL_INSTANCE,
ret = SE_AddComponentRelationship( tree_parent_obj, bldg_fmi_obj, NULL );
ret = SE_AddAssociateRelationship( bldg_fmi_obj, bldg_model_obj, NULL, SE_FALSE );