Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Macro that asks for object selections...

camerontitus

New member
Hi,
I'm sort of new to Catia, though I'm getting pretty experienced. My only trouble is that I don't know how to script very well.

What I'm looking to do, in a nutshell:

Have a dialog box pop up that instructs/asks the user to select multiple objects. After they are selected, it responds by moving on in the code to do other commands using the selected objects.

I plan on recording the macro, selecting the objects I want along the way, doing the necessary actions, then going into the editor later and replacing the selections with the necessary code to allow mid-program selecting then using those selections instead. Kind of the same concept as using InputBox to customize values during a program run.

FYI: this macro is being used to guide someone in assigning virtual parts and loads to run FEA.

Thanks in advance.
 

Sponsor

Articles From 3DCAD World

Back
Top