model_server/driver_aset/src/driver.cxx
//------------------------------------------
// delete
//
// delete selected objects in a specified view.
// delete all selected objects if specified view
// is null.
//------------------------------------------
delete
delete selected objects in a specified view.
delete all selected objects if specified view
is null.
delete delete selected objects in a specified view . delete all selected objects if specified view is null .
void driver::del (viewPtr view)
{
    Initialize(driver::del);
    objArr nodes_to_remove;
    opened_node = NULL;
    start_transaction() {
	update_selection (view, 0);
	fill_array_with_selected_appnodes (view, nodes_to_remove);
	unselect (view);
	Obj *el1;
	ForEach (el1, nodes_to_remove) {
	    remove_object ( checked_cast(commonTree,el1) );
	}
    } end_transaction();
}
void driver :: del ( viewPtr view ) { Initialize ( driver :: del ) ; objArr nodes_to_remove ; opened_node = NULL ; start_transaction ( ) { update_selection ( view , 0 ) ; fill_array_with_selected_appnodes ( view , nodes_to_remove ) ; unselect ( view ) ; Obj * el1 ; ForEach ( el1 , nodes_to_remove ) { remove_object ( checked_cast ( commonTree , el1 ) ) ; } } end_transaction ( ) ; }
delete
delete selected objects in a specified view.
delete delete selected objects in a specified view .
// unselect these objects