//設定選取過濾條件為只允許sheet body跟face
private int init_proc(IntPtr select, IntPtr user_data)
{
UFUi.Mask[] masks = {
new UFUi.Mask {object_type = UFConstants.UF_solid_type, object_subtype = 0, solid_type = UFConstants.UF_UI_SEL_FEATURE_ANY_SHEET},
new UFUi.Mask {object_type = UFConstants.UF_solid_type, object_subtype = 0, solid_type = UFConstants.UF_UI_SEL_FEATURE_ANY_FACE}
};
try
{
theUfSession.Ui.SetSelMask(select, UFUi.SelMaskAction.SelMaskClearAndEnableSpecific, 2, masks);
return UFConstants.UF_UI_SEL_SUCCESS;
}
catch
{
return UFConstants.UF_UI_SEL_FAILURE;
}
}
//選擇多個sheet body或是face
private int SelectSheetsOrFaces(string prompt, out Tag[] objects)
{
int resp;
int count = 0;
double[] cursor = new double[3];
objects = nul