morauski
Automotive
- Dec 21, 2008
- 20
I want to copy from one geometrical set to others based on the layer assignment in the original. i can determine the layer and create all of the other sets i need. I thought that a copy and pastespecial would work but it just pastes it under the first one in the original set. So how do you set where the paste is going to be applied? i have a this as part of the code
part1.InWorkObject = part1.HybridBodies.Item("Where I want it")
CATIA.ActiveDocument.Selection.Copy
part1.InWorkObject = part1.HybridBodies.Item("Where I want it")
CATIA.ActiveDocument.Selection.Add(part1.HybridBodies.Item("Where I want it"))
CATIA.ActiveDocument.Selection.PasteSpecial "CATPrtResultWithOutLink"
Or if there is a better way to do it let me know.
part1.InWorkObject = part1.HybridBodies.Item("Where I want it")
CATIA.ActiveDocument.Selection.Copy
part1.InWorkObject = part1.HybridBodies.Item("Where I want it")
CATIA.ActiveDocument.Selection.Add(part1.HybridBodies.Item("Where I want it"))
CATIA.ActiveDocument.Selection.PasteSpecial "CATPrtResultWithOutLink"
Or if there is a better way to do it let me know.