点击查看详细介绍

UG 二次开发 标注 选择问题

olympic 15年前 5921 1

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


我想写个程序.出UG的孔位表 .
只想出我选择的.UG 里有个命令,可以出全部的,但不适合
现在的问题是.假如,我想标注两条边之间的距离尺寸,我要手动选择的话,
用UG open c , 我无论如何都不能选择.肯定是我函数用错了.
目前我用的形式如下:
  1. tatic int init_proc_curve(UF_UI_selection_p_t select, void* user_data)
  2. {
  3. int num_triples = 5;
  4. UF_UI_mask_t mask_triples[] =
  5. {
  6. UF_line_type, 0, 0,
  7. UF_circle_type, 0, 0,
  8. UF_conic_type, 0, 0,
  9. UF_spline_type, 0, 0,
  10. UF_solid_type, 0, UF_UI_SEL_FEATURE_ANY_EDGE
  11. };
  12. // enable only solid body
  13. UF_UI_set_sel_mask(
  14. select,
  15. UF_UI_SEL_MASK_CLEAR_AND_ENABLE_SPECIFIC,
  16. num_triples,
  17. mask_triples
  18. );
  19. return (UF_UI_SEL_SUCCESS);
  20. }

  21. int select_draft(tag_t select[], int *body_no)
  22. {
  23. char cue[] =

0

最新回复 (1)
  • ssy871120 13年前
    1

    在选择函数前加UF_UI_set_cursor_view()

请登录后发表新帖