hexagon logo

Subroutine issues

Hi,

First time i use subroutines.
I have one part to measure in different positions so i've made 2 programs with 2 different CAD orientation.
Now i've made a third programm to recall both programs but:

- CAD doesn't show up in the main program, i have to remember where i have to probe...
- in the 2 programs i have operator comments with pictures showing the jigs to use --> the pictures doesn't appear in the main program.
- it is not possible to run only one program at a time, i have to suppress the subroutine lines to make it work, and i can't mark/unmark these lines.

Do you have some solutions for these 3 points ?

Thanks.
Parents
  • if you're writing one program with multiple cad orientations you want to sue viewsets.

    Procedure is-->

    1) import model_1. write program
    2) import model_2. say YES treat as an assembly. go into cad assembly tree, uncheck (hide) model_1 and write your program for model_2.
    3) repeat step 2 for model_3.
    4) once your program(s) are all written into the one measurement routine, go to the very top of your routine, only show model_1 and CREATE a VIEWSET. next only show model_2 and CREATE a VIEWSET. next only show model_3 and CREATE a VIEWSET.
    5) at the top of the code for program 1 RECALL VIEWSET for model_1. at the top of the code for program 2 RECALL VIEWSET for model_2. at the top of the code for program 3 RECALL VIEWSET for model_3.
Reply
  • if you're writing one program with multiple cad orientations you want to sue viewsets.

    Procedure is-->

    1) import model_1. write program
    2) import model_2. say YES treat as an assembly. go into cad assembly tree, uncheck (hide) model_1 and write your program for model_2.
    3) repeat step 2 for model_3.
    4) once your program(s) are all written into the one measurement routine, go to the very top of your routine, only show model_1 and CREATE a VIEWSET. next only show model_2 and CREATE a VIEWSET. next only show model_3 and CREATE a VIEWSET.
    5) at the top of the code for program 1 RECALL VIEWSET for model_1. at the top of the code for program 2 RECALL VIEWSET for model_2. at the top of the code for program 3 RECALL VIEWSET for model_3.
Children
No Data