ilogic flat pattern & zeroing XYZ coordinates

ilogic flat pattern & zeroing XYZ coordinates

Anonymous
Not applicable
667 Views
2 Replies
Message 1 of 3

ilogic flat pattern & zeroing XYZ coordinates

Anonymous
Not applicable
Hi all,
I hope this doesn't get too long winded 😕
currently at my workplace, we use a piece of ilogic code, that automatically runs within the part template on save that to auto populates
the iproperties with the the length, width and thickness of the part (it uses the extremities of the part on the xyz planes)....
This works great until you try and use the top down method of modelling, and when a part is created on a "funny" angle, the extremities of the the part are read wrongly!.
We have found a work around for this, we convert the part into a sheet metal part, create the flat pattern then we run the ilogic rule.
Because the flat pattern zeros the XYZ coordinates of the part, I was wondering if anyone knew the ilogic code that the flat pattern uses to Zero it's co-ordinates, then I could implement this into our code....
I hope this all makes sense?
Many Thanks, in advance 😆😆
0 Likes
Accepted solutions (1)
668 Views
2 Replies
Replies (2)
Message 2 of 3

GosponZ
Collaborator
Collaborator

Do you want to share your code?

0 Likes
Message 3 of 3

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

No iLogic code is used internally by anything 🙂

 

Even if you knew the logic of how the flat pattern is oriented, it might not give you the result you'd expect if the part can be based on any of the planes with any rotation.

I think the best would be if the people creating the parts also provided a UCS for the measurement directions.

Based on that you could create a TransientBrep, transform it and then check the RangeBox of the model.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes