Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

3Dx: Relationship between the positions of two physical parts

Status
Not open for further replies.

CarlosR2022

Electrical
Sep 16, 2010
36
My apologies - this might be a mathematical question rather than a Catia 3Dx question. Assume 2 physical parts Part1 & Part2 in an assembly - all origin positions are 0,0,0. I used Snap to align them to get pos1(11) and pos2(11) - their two transformation matrixes. Then Part1 is moved different position in the assembly with a new pos1'(11). Is it possible to obtain the pos2'(11) mathematically so I can align Part2 to Part1 in Part1's new position in the same way before Part1 is moved?

The ultimate goal is to write a macro so that whenever Part1 is moved, I can always place Part2 correctly. I don't have an issue with VBA but just the math side.
 
Replies continue below

Recommended for you

if both p1 and p2 have the same position to start with, if you move p1 to new position, you can align p2 with the same new position of p1.. no math involved here.

1 p1 = p2
2 p1 move to new position p1' so p1' ≠ p2
3 you align p2 with new position p2'=p1'

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor