UG\NX secondary development to create a center line

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


Introduction:

The following is an example of creating a centerline in the drawing module, using the ufun function.

Effect:    

code:

#include "me.hpp"

#include <stdio.h>
#include <string.h>
#include <uf.h>
#include <uf_ui.h>
#include <uf_drf.h>
#include <uf_object_types.h>

static int mask_for_drf_arcs(UF_UI_selection_p_t select, void *type)
{
    UF_UI_mask_t mask[3] = {
  
   
   { UF_circle_type, 0, 0 },
                   {UF_solid_type, 0, UF_UI_SEL_FEATURE_CIRCULAR_EDGE },
                   { UF_section_edge_type, 0, 0 }};

    if (!(UF_UI_set_sel_mask(select,
            UF_UI_SEL_MAS

Guess you like

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