Sunday, February 05, 2012
How do I copy sketches to Clipboard???
Last Post 29 Jan 2010 12:41 AM by fatkids. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
fatkidsUser is Offline
New Member
New Member
Posts:53

--
12 Jan 2010 08:54 AM  

Hi all!

I want to copy  outline of sketches to Clipboard,and then paste it into another sketch.

I would like to how to achieve?

Please help!

Thanks!

Julian GuilloUser is Offline
Guru
Basic Member
Basic Member
Posts:125

--
19 Jan 2010 09:46 AM  

If the second sketch does not exist then you are looking for:
Sketches.AddByTearOff method

If the second sketch exists, i guess that you have to add the profile elements in the first sketch to the part SelectSet:
'These lines are by heart. They might have a mistake. Sorry, no time for more right now.
oCircle2D=oPart.Sketches.Item(1).Profiles.Item(1).Circles2d.Item(1) 'First Circle in first profile in first sketch.
oMySelectSet=oPart.SelectSet
oMySelectSet.Add oCircle2D
oMySelectSet.Copy

oPart.Sketches.Item(2).Profiles.Item(1).Paste 'if there is an existing Profile in sketch 2 or

oMyProfile=oPart.Sketches.Item(2).Profiles.Add(oRefPlane) 'Create a new profile in sketch 2.
oMyProfile.Paste
oMyProfile.End (condition) 'See help

R.D. HollandUser is Offline
Solid Edge Developer
New Member
New Member
Posts:50

--
26 Jan 2010 10:19 AM  
You may want to try the select set's "CopyProfile" method (there is a "CutProfile" method too). I believe you just add the profile to the select set and then call CopyProfile.
fatkidsUser is Offline
New Member
New Member
Posts:53

--
29 Jan 2010 12:41 AM  
Thanks Julian Guillo and R.D. Holland!
Let's me try!
You are not authorized to post a reply.

Active Forums 4.2
Copyright © 2011 JasonNewell.NET