SurfaceBody Copy |
This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly. |
Body Imprinting and matching the results |
This sample is intended to demonstrate a technique of finding the matching surfaces between the original input bodies and output imprinted bodies. This relies on transient keys, which is a unique ID associated with each B-Rep entity. A transient key is only good as long as the model is not recomputed. |
Imprint bodies within an assembly. |
This sample demonstrates creating imprinted bodies from two selected occurrences in an assembly. |
Associative body copy |
The following sample demonstrates copying bodies (associatively and non-associatively) across parts in an assembly. |
Transient surface body creation |
The following sample demonstrates the creation of a transient surface body consisting of a single rectangular face. The body is created in transient space and then copied over to a part document as a base feature. |
Create primitive BRep |
This sample demonstrates the creation of primitive (solid) BRep. |