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.

Register Log in

Can the compass be moved with a macro?

Rehn

New member
Hello,


I want to automate the reach function. You click on reach and then move the compass to the target location and then select the manikin segment. Is there a way to either move the compass using a macro or a way to pass in the target location without using the compass?


Thanks,


Tucker
 

Rehn

New member
Yes, yes it can. Howevermysolution is horriblyclunky.
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">


CATIA.StartCommand"change current axis and snap compass"


Set productDocument1 = CATIA.ActiveDocument


Set selection1 = productDocument1.Selection


selection1.Search "Name=rough_faucet,all"


CATIA.StartCommand"Reach (position only)"


selection1.Search "Name=left hand,all"</BLOCKQUOTE>
 

Sponsor

Top