ComponentOccurrence.CreateGeometryProxy Method
Parent Object: ComponentOccurrenceDescription
Method that creates a proxy object for input object. A proxy object represents another object within the assembly space. Queries made on the proxy object are returned with respect to the assembly space, not the space the real geometry exists in.
Syntax
ComponentOccurrence.CreateGeometryProxy( Geometry As Object, Result As Object )Parameters
Name | Type | Description |
Geometry | Object | Input entity to create a proxy for. This entity must exist under the tree of this occurrence. |
Result | Object | Output proxy object created. |
Samples
Name | Description |
Add mate constraint using work planes in parts | This sample demonstrates creating a mate constraint between two occurrences using the work planes within those occurrences. |
Create rotational assembly joint | This sample demonstrates creating an assembly joint. It connects the midpoints of the edges of two faces using a rotational joint. To do this it first creates a geometry intent object of the midpoint of the edge and then creates another intent using the face and the midpoint intent. It does this to create to midpoint intents which it then uses to create the rotational connection. The sample uses and existing part that must be set up to allow it to work correctly. To create the sample part you can use any part that has a planar face and a linear edge connected to that planar face. A simple box is sufficient. In this part Add a mate iMate to the planar face and rename the iMate to "Face1". Also add a mate iMate to a linear edge that is on the face previously named and rename this iMate to "Edge1". Save the part to "C:\Temp\SamplePart.ipt" or any other name and edit the code below to reference the file. You can then run the sample code which will create a new assembly, insert two instances of the part and create a rotational connection between them. Then it will animation the rotation by driving the connection. |
Associative body copy | The following sample demonstrates copying bodies (associatively and non-associatively) across parts in an assembly. |
Projection - project across parts | This sample demonstrates projecting a sketch entity across parts in an assembly. To use the sample, have an assembly open that contains at least two occurrences, (parts only), and run the program. |