Deletes selected CAD data LTCustomizer21 for AutoCAD LT reference manual
ActiveX
Function delete_select_data(ename As Integer) As Boolean
Function delete_select_data_item(ename As Integer, dxfcode As Short, index As Integer) As Boolean
C/C++
int WINAPI LTC_delete_select_data(int ename_index);
int WINAPI LTC_delete_select_data_item(int ename,short dxfcode,int index);
parameter
ename:index number read by select(). Specifies a value in range of 0 - return value of select() -1.
dxfcode:DXF group code
index: index number that start from 0 in case of existing same groupe code
return value
ActiveX: True: success .False: failure
C/C++: 1: success .0: failure
delete_select_data() removes all selected CAD data which ename indicates. delete_select_data_item() removes only a part of selected CAD data which ename indicates.
For example, delete_select_data_item() can remove a part of vertex information in Light Weight Polyline(LWPOLYLINE, supports since LT97,R14).
example:if ename assumes LWPOLYLINE, below sentences remove first XY coordinates.
delete_select_data_item(ename,10,1)
delete_select_data_item(ename,20,1)
Be careful to use delete_select_data_item(). If you removed necessary data item, action is unknown after executed update_select_data(). For example, in LWPOLYLINE data, what you remove DXF group code 90(means number of coordinates) is the same that you destroyed LWPOLYLINE data.
delete_select_data_item(ename,90) 'forbidden action.
These function modifies on AutoCAD LT when you execute update_select_data(),and set_select_..() as well.