Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
NSBowser
774 Views, 2 Replies

How to Create Workplane At UCS Origin?

Simplified Situation: 

I have an assembly (assyDoc) which contains a UCS in 3D Space, not aligned relative to the origin at all. I would like to create a workplane, such as via AddByPlaneAndPoint, using an Assembly Origin Plane and the UCS Center Point. 

 

 

What I've Tried:

I've tried using the UCS.origin, which returns a workpoint, but that errors:

 

var wp1 = workPlanes.AddByPlaneAndPoint(assyYZPlane, UCS.Origin);

I thought maybe the UCS origin and Center Point were not the same thing, so I tried creating a Pt using the 3 UCS planes first, but that also errors:

var centerPt = workPoints.AddByThreePlanes(UCS.XYPlane, UCS.XZPlane, UCS.YZPlane);

It feels to me like I'm missing a proxy aspect the way that it wont create work features in the assembly using the UCS items, however, you can only create proxies (as far as i am aware) using componentOccurrences, which the UCS in the assembly is not. Maybe there is something i am missing that the UCS planes are not really at the same level in the assembly as I am thinking they are, but I see no other way of utilizing them or creating proxies of them.

 

Thanks for any help!

Nathan


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.