- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am struggling with the following, I have 2 ketches in a components:
->Cmp
-->Sketch_Target (empty)
-->Sketch_Source (contains some sketch entities)
I am trying to copy the sketch entities from the source to the target then delete the source.
try:
sketch_target = comp.sketches.item(0)
sketch_source = comp.sketches.item(1)
ui.messageBox("the component contains the sketches: "+ sketch_target.name +" and "+sketch_source.name)
sketch_source.copy(sketch_source.sketchCurves, adsk.core.Matrix3D.create(), sketch_target)
except:
ui.messageBox("cannot copy the sketch")
But it does not work. Does anyone has an example to share, or can tell me where I am wrong?
Sylvain
Solved! Go to Solution.