UCS to UCS iLogic

UCS to UCS iLogic

anandvGHB7Z
Observer Observer
1,138 Views
2 Replies
Message 1 of 3

UCS to UCS iLogic

anandvGHB7Z
Observer
Observer

I have tried the following ucs to ucs constraint ilogic code to assemble two .ipt files. But it doesn't work when try to assemble to .asm files. Is there something wrong with the code?

 

Constraints.AddUcsToUcs("UcsToUcs1", "SHEET DUMMY:1", "SHEET", "125X125X9 RHS:1", "RHS", 
                            xOffset := 0, yOffset := 0, zOffset := 0)
0 Likes
Accepted solutions (1)
1,139 Views
2 Replies
Replies (2)
Message 2 of 3

MjDeck
Autodesk
Autodesk
Accepted solution

It will work between two subassemblies. But if your UCS is on a part within the subassembly, you have specify the part component name. Use a component path such as {"SHEET DUMMY:1", "PartX:1"}.
The easiest way to get the rule statement is to create a Constraint Set manually, using the Constrain command. Then open the rule editor and use Capture Current State to generate the rule statement. Right-click on the first constraint in the rule editor. Here's a screenshot:
CaptureCurrentStateUcsToUcs.png


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 3

anandvGHB7Z
Observer
Observer

Thanks Heaps Mike

0 Likes