Reach (large)

Welcome to the COE Discussion Forums! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


 

Follow COE on

COE DISCUSSION FORUM
Instantiate Machining Process Template using Action?
Last Post 25 Feb 2010 09:13 AM by CPOSNER. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
CLIFFJOHNSON
500+ Poster
500+ Poster
Posts:553
Avatar


--
02 Feb 2010 09:09 AM  

I am trying to instantiate a machining process template using an Action and the InstantiateTemplate() function. Is this possible? The documentation does say InstantiateTemplate can be used with "Any" template. Perhaps they were not considering NC process templates when they wrote that.

If would be very cool to get this to work as I think it would allow a way to bypass the limits of the process template instantiation methods available  in machining.

let lx (List)
let mp (MachiningProcess)
let mma(Mfg2DMAFeature)

lx = `Part Operation.1` ->Query("Mfg2DMAFeature","x.Name==\"SEAL_GROOVE_1\"" )
Message("found # matching prismatic machining areas",lx->Size())

for mma inside lx
{
mp = InstantiateTemplate("NCProcessARM|SEAL_GROOVE_1",`Manufacturing Program.1` )
mp->SetAttributeObject("TargetInProgramInput", `Manufacturing Program.1` )
mp->SetAttributeObject("GeometryToMachineInput",mma)
EndModifyTemplate(mp)
}

CPOSNER
Occasional Poster
Occasional Poster
Posts:43
Avatar


--
25 Feb 2010 09:13 AM  
What's the vague error message that you are getting? Try just setting mma as a "feature" only.

e.g. "let mma(feature)"
You are not authorized to post a reply.

Active Forums 4.1