Align Workplane To Geometry With A Macro

Align Workplane To Geometry With A Macro

danmic7JH66
Advocate Advocate
1,613 Views
5 Replies
Message 1 of 6

Align Workplane To Geometry With A Macro

danmic7JH66
Advocate
Advocate

I came across this post and I made some use out of the solution. One thing I haven't been able to get to work though is aligning a workplane to the geometry of each selected surface. I use the code...

MODE WORKPLANE_CREATE ; SELECTION CENTRE

to get a workplane off the surface but I can't seem to get it aligned properly with the code

MODE WORKPLANE_EDIT ALIGN GEOMETRY

Is this even possible without user input? 

0 Likes
Accepted solutions (2)
1,614 Views
5 Replies
Replies (5)
Message 2 of 6

5axes
Advisor
Advisor
Accepted solution

It looks like similar to this post ?

Message 3 of 6

danmic7JH66
Advocate
Advocate

Never seen that one, Ill give it a whirl and report back, thanks!

0 Likes
Message 4 of 6

danmic7JH66
Advocate
Advocate

Pretty similar and it helps, I understand how it gets the i,j,k values but is there a way to rotate a workplane along those values?

0 Likes
Message 5 of 6

5axes
Advisor
Advisor
Accepted solution

Use the command

MODE WORKPLANE_EDIT DIRECTION Z
MODE DIRECTION COMPONENT I $VectI
MODE DIRECTION COMPONENT J $VectJ
MODE DIRECTION COMPONENT K $VectK

EditWorkplane.jpg

 

Message 6 of 6

danmic7JH66
Advocate
Advocate

You're a doll thanks a million.

0 Likes