Copy part sketch to assembly

Copy part sketch to assembly

TechInventor20
Advocate Advocate
231 Views
2 Replies
Message 1 of 3

Copy part sketch to assembly

TechInventor20
Advocate
Advocate

If someone of you have an idea how to kopie or use a sketch from a part in the assembly?

And then maybe I can make a ilogic rule to do that automatically.

0 Likes
232 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @TechInventor20.  So, you have a sketch that already exists within a part, and that part is represented by a component within the assembly, and you want to be able to use that part's sketch for something within the main assembly, right?  What specifically are you planning on using it for?  To use it, you could simply dig down into that part's PartComponentDefinition (through the ComponentOccurrence.Definition), and get the actual PlanarSketch object, then use that component's ComponentOccurrence.CreateGeometryProxy method to get a copy of it within the 3D coordinate space of the main assembly, which would then be a PlanarSketchProxy object.  But I'm not sure what you would want to do with it from that point.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

TechInventor20
Advocate
Advocate

Yes, I have a sketch which I have automated but that is not possible to do in an other part, because then i need 20 different sketches in that part. So if you say I can do it this way then I'll try to do it that way. With the sketches I can make an extrude on another part that is just cut off for the looks on the drawing.

 

Is it possible to get back to you if I can't get it to work?

0 Likes