Register  Login   Search
 Latest Posts Minimize

RE: Solid edge reports using an excel macro ?
Solid Edge Programming
09/07/2010 9:49 AM
jason.newell

Creating StructuralFrame - SE20, VB6
Solid Edge Programming
09/07/2010 9:27 AM
Nirantar.Vidyarthee

Solid edge reports using an excel macro ?
Solid Edge Programming
09/06/2010 5:02 PM
jvizi

RE: Remove unused Linestyles
Solid Edge Programming
09/03/2010 7:45 AM
jr199

Remove unused Linestyles
Solid Edge Programming
09/02/2010 1:25 PM
kmwolf

How to read block in a dft file without opening the dft file?
Solid Edge Programming
09/02/2010 9:02 AM
assassin.007

Inquire Element - Measure Diameter by VBA
Solid Edge Programming
09/02/2010 6:40 AM
JM

dissolve Reference to SubASM - how to??
Solid Edge Programming
09/02/2010 2:23 AM
LIHE

RE: Using Insight on a 64 bit Computer
Solid Edge General
08/31/2010 7:47 AM
Atom

Using Insight on a 64 bit Computer
Solid Edge General
08/30/2010 3:06 PM
Atom

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 9:57 AM
JBZ

RE: File Properties using VB.NET leave file locked
Solid Edge Programming
08/30/2010 3:20 AM
jr199

File Properties using VB.NET leave file locked
Solid Edge Programming
08/27/2010 4:36 PM
JBZ

RE: XLS link to the part
Solid Edge Programming
08/27/2010 4:11 PM
JBZ

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/27/2010 3:27 AM
jr199

vb6 se20 - solid edge Part - Hole size
Solid Edge Programming
08/26/2010 9:42 PM
cadraw

vb6 se20 - how to Drawing View Depth
Solid Edge Programming
08/26/2010 9:24 PM
cadraw

RE: Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/26/2010 7:35 AM
jr199

RE: About the "Callout"!
Solid Edge Programming
08/26/2010 3:42 AM
fatkids

RE: Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/25/2010 3:28 AM
ErWo

RE: help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/24/2010 10:12 PM
assassin.007

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 3:47 PM
peter6396

Save As for each view -- how 2 wait for SE !
Solid Edge Programming
08/24/2010 4:09 AM
LIHE

RE: FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/24/2010 1:28 AM
ErWo

help to transfer C# codes as following to C++ codes?
Solid Edge Programming
08/23/2010 10:34 PM
assassin.007

Problem while getting the objects using "SelectSet" property.
Solid Edge Programming
08/22/2010 7:59 AM
pratap

FamilyMembers Panel problem (refreshing)
Solid Edge Programming
08/20/2010 4:12 AM
peter6396

RE: AddLoftedFlange in SheetMetal
Solid Edge Programming
08/19/2010 4:33 AM
jason.newell

RE: PartList Positioning
Solid Edge Programming
08/19/2010 2:10 AM
ErWo

RE: Alternate Assemblies
Solid Edge Programming
08/18/2010 4:54 PM
peter6396


  
 Forums Minimize

Subject: How do I copy sketches to Clipboard???
Prev Next
You are not authorized to post a reply.

Author Messages
fatkidsUser is Offline
Site Member
Site Member
Posts:46

01/12/2010 8: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
SE Guru
Site Member
Site Member
Posts:105

01/19/2010 9: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
Site Member
Site Member
Posts:36

01/26/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
Site Member
Site Member
Posts:46

01/29/2010 12:41 AM  
Thanks Julian Guillo and R.D. Holland!
Let's me try!
You are not authorized to post a reply.
Forums > Solid Edge > Programming > How do I copy sketches to Clipboard???



ActiveForums 3.7

  

 Users Online Minimize

Membership Membership:
Latest New User Latest: lumpypumpkin
New Today New Today: 2
New Yesterday New Yesterday: 2
User Count Overall: 1972

People Online People Online:
Visitors Visitors: 2
Members Members: 0
Total Total: 2

Online Now Online Now:

  

The Code Project

Spatial Freedom Astroid

Use OpenDNS

Copyright 2010 JasonNewell.NET   Terms Of Use  Privacy Statement