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.


COE Community News

Follow COE on

COE DISCUSSION FORUM
Instantiate Machining Process Template using Action?
Last Post 25 Feb 2010 03:13 PM by CPOSNER. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
CLIFFJOHNSON
Advanced Member
Advanced Member
Posts:516
Avatar

--
02 Feb 2010 03:09 PM  

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
New Member
New Member
Posts:21
Avatar

--
25 Feb 2010 03:13 PM  
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