CAD software discussion forum > 3D CAD/CAM > Macro to find smallest tool size needed

Macro to find smallest tool size needed

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 1 of 6

 Macro to find smallest tool size needed
23-08-2002 04:34 . pm | View his/her posts only
I have finished a macro that analyzes specfic part faces and tells you what the smallest tool size you will need (Smallest Radius).
At the VX prompt type: $load minrad2.vxm (make sure you file/search path is legit).
Pick the interior surfaces of the part when prompted.
And the macro should post the smallest value in the message window and also highlight the face in question with Entity Inquire.
The VX part is version 6.5

Let me know what you think.

Rank: 1

Robert

Newbie

posts: 0

Registered: 2011-11-22

Message 2 of 6

23-08-2002 04:53 . pm | View his/her posts only
Hey Mike,

I tried it and got this error:

ERROR: Line 11, macro [Z:Mike Hallackminrad2.vxm].

I'll try again on Monday

Rank: 1

OldForumPost

Newbie

posts: 0

Registered: 2012-1-14

Message 3 of 6

23-08-2002 05:38 . pm | View his/her posts only
Than you wouldn't need me. lol

Here is the revised macro
I had to break line 11 into 2 seperate print statements and then combine.
And I moved the final print command to end.

mjh
Re-posted as:
minrad.vxm

Rank: 1

Robert

Newbie

posts: 0

Registered: 2011-11-22

Message 4 of 6

26-08-2002 09:28 . am | View his/her posts only
Hey Mike,

Not having much luck here. I dragged the macro onto my VX6.5 session and got...

ERROR: Line 17, macro [C:driversminrad.vxm].

hmmm...

Rank: 1

Robert

Newbie

posts: 0

Registered: 2011-11-22

Message 5 of 6

26-08-2002 09:32 . am | View his/her posts only
I tried the macro again from my local VX sh_prod directory and it seemed to work although this time I got...

The smallest radius is 3.271003 [mm] on face entity #152239
Show entity information.
ERROR: Unable to project point on face.

but at least I got the radius.

Pretty cool

Rank: 1

Mike

Newbie

posts: 0

Registered: 2002-8-28

Message 6 of 6

28-08-2002 09:51 . am | View his/her posts only
Mike,

A most excellent use of the macro tool. COOL
See also