cancel
Showing results for 
Search instead for 
Did you mean: 

AddLoc with Ext Axes

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Hello everybody,

 

is it possible to add a depart location using the Path Template function with correct External Axis Value?

 

I need to add the approach and the departure locations before and after an ARC Seam Operation with two External Axes set according to the first and the last locations of the seam. Using the AddLoc command I'm not able to set the correct external axis values for the departure location. The approach loc is fine.

 

arc1.jpg

<Action Name="Arc_1_app_dep_locs" Description="Najezdni a vyjezdni body pro ARC" LocRange="First">
	<AddLoc Name="approach" RefLoc="First" RefreshFilter="true" Placed="Before" CopyAttachment ="true" CopyExternals="true" RelX="0" RelY="0" RelZ="20.0" >
	</AddLoc>
	<AddLoc Name="depart" RefLoc="Last" RefreshFilter="true" Placed="After" CopyAttachment ="true" CopyExternals="true" RelZ="20.0">
	</AddLoc>
</Action>  

 arc2.jpg

 

 

Thank you in advance

 

Dave

1 REPLY

Re: AddLoc with Ext Axes

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

OK. I've found the mistake.

 

The reason of the problem was the wrong LocRange value. LocRange="First" refers to the first loc of the seam. Because I don't know how to refer to last First and the Last location at one time, I've resolved it by using combined action:

 

<Action Name="RootAction" LocRange="AllWithOperation">
<ActionRef>Add1</ActionRef>
<ActionRef>Add2</ActionRef>
</Action>

<Action Name="Add1" LocRange="First">
<AddLoc Name="approach" RefLoc="First" RefreshFilter="true" Placed="Before" CopyExternals="true" RelX="0" RelY="0" RelZ="20.0" >
</AddLoc>
</Action>

<Action Name="Add2" LocRange="Last">
<AddLoc Name="depart" RefLoc="Last" RefreshFilter="true" Placed="After" CopyExternals="true" RelZ="20.0">
</AddLoc>
</Action>