UG\NX secondary development selection reference plane UF_UI_select_with_single_dialog

Author of the article: Caspian
Source Website: Ace Pilot_Caspian_Caspian NX Secondary Development 3000 Cases, Caspian BlockUI Column, C\C++-CSDN Blog


Introduction:

        Use the UF_UI_select_with_single_dialog function to select the datum plane.

Effect:

      

code:

#include "me.hpp"

//过滤 基准平面 UF_datum_plane_type
int InitProcDatum(UF_UI_selection_p_t select, void* user_data)
{

	UF_UI_mask_t mask = { UF_datum_plane_type, 0, 0 };

	if (!UF_CALL(UF_UI_set_sel_mask(select,
		UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC, 1, &mask)))
		return (UF_UI_SEL_SUCCESS);
	else
		return (UF_UI_SEL_FAI

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/132714819