Copy Sketch

Hello,

 

How can I copy a sketch from a Subassembly to another Subassembly?

 

The code workes fine when I copy the sketch from the Topassembly to an Subassembly.

 

objOccurrence1 = objOccurences.Item(2)

ObjLayouts = objDocuments.Layouts

ObjLayout = objLayouts.Item(2)

ObjDocuments.CopySketch (ObjLayout, objOccurrence1, False)

 

I tried following, but it doesn't work.

 

objOccurrence1 = objOccurences.Item(2)

objOccurrence2 = objOccurences.Item(3)

ObjLayouts = objOccurrence2.Layouts

ObjLayout = objLayouts.Item(2)

ObjDocuments.CopySketch (ObjLayout, objOccurrence1, False)

 

How can I access the Layout from an Subassembly or Part?

 

Posted by: Gakusei
Post date: 9/6/2012 1:17:22 AM