AddMateConstraint

AddMateConstraint

ss13953642009
Advocate Advocate
188 Views
1 Reply
Message 1 of 2

AddMateConstraint

ss13953642009
Advocate
Advocate

When establishing an assembly constraint between the origin coordinate system plane of a new part document and the origin coordinate system plane of the component, how can you create a proxy for the origin coordinate system plane in the part document?

am8_2025011309582921.png

0 Likes
Accepted solutions (1)
189 Views
1 Reply
Reply (1)
Message 2 of 2

ss13953642009
Advocate
Advocate
Accepted solution

You need to create proxies for the faces obtained from the components.

Object oAsmPlane = null;
//创建代理
occurrence.CreateGeometryProxy(occurrenceXZPlane, out oAsmPlane);
AssemblyConstraints assemblyConstraints = assemblyDocument.ComponentDefinition.Constraints;
assemblyConstraints.AddFlushConstraint(XZPlane, oAsmPlane, 0);

0 Likes