#1
|
|||
|
|||
Dynamic subpart loading
I'm trying to create a macro for loading subparts in Me10 that make possible to decide the point of insertion and the orientation of the subpart loaded before it be inserted in the drawing. Do someone know how i can do this? Thanks, Daniele.
|
#2
|
|||
|
|||
re: Dynamic subpart loading
Daniele, What you are asking first requires that you have your subparts saved with a pre-determined reference point. The user then can be prompted to select a point for the file to load as well as an angle of orientation. Here is an example macro that will do the basic stuff. Good Luck. define load_ref_part local p1 local ref_ang local ref_name READ 'Enter the part name to load' ref_name READ PNT 'Select the part reference point' P1 READ NUMBER 'Enter the orientation angle' ref_ang load SUBPART ref_name P1 modify del_old rotate center p1 ref_ang ref_name end end_define
|
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
|
|