Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I need help with this macro, at the beginning I need it to show a list with the workplanes to select just one (commented part of the code) after that open the option to create a plane aligned in the geometry and then get the plane that I selected at the beginning and align its top view with the plane aligned in the geometry
// STRING LIST $PlanoP = {}
// $PlanoP = INPUT ENTITY MULTIPLE Workplane "Selecione o plano de trabalho principal"
// GRAPHICS LOCK
// DIALOGS MESSAGE OFF
// DIALOGS ERROR OFF
ACTIVATE Workplane INCLINADO
MODE WORKPLANE_CREATE ; INTERACTIVE GEOMETRY
Macro Pause "Clique na face que deseja alinhar a vista"
ACTIVATE Workplane "1"
ROTATE TRANSFORM TOP
COPY WORKPLANE INCLINADO
RENAME Workplane "INCLINADO_1" "INCLINADO_X"
MODE WORKPLANE_EDIT START "INCLINADO_X"
MODE WORKPLANE_EDIT ALIGN VIEW
MODE WORKPLANE_EDIT FINISH ACCEPT
delete workplane"1"
Solved! Go to Solution.