I will try to explain my problem, how I am using Catia to study it, and what kind of macro I think would do what I need.
So, I am designing a telescope composed by two mirrors. For optimum performance, those mirrors have nominal position in relation to each other (distance and orientation), however, manufacturing and alignment (assembling) of the mechanical structures in the real world could result in small disaligment of the mirrors in respect to each other.
I have created a simplified model of the telescope, where the first mirror (orange one) is fixed in the xy plane, centered at the origin. The second mirror (yellow) is holded by an hexapod (6x tubes, colored lines in the figure) at a plane nominally parallel to the first mirror. Check the figure below.
If all the 6 tubes of this hexapod have the exact same length, then the second mirror is parallel to the first mirror. But, if the 6 tubes does not have the exact same length, then the second mirror have a small translation and rotation in relation to the first mirror, to measure those values I just need to record XYZ position of two points:
"M2 Center": the center of the second mirror
"M2 Vector": the vector formed by this point the previous one defines the normal vector of the second mirror.
In fact, the length of those 6x bars are not the only parameters that affect the final position of the second mirrors, we have several others parameters of interest listed in a design table (at the Assembly level, .CATProduct level).
So, in terms of macro, this is what I need:
1) Run/start the macro with a .CATProduct file.
2) For each line in the given Design Table
2a) "Update-All"
Update all documents, at part and assembly levels, update the two points
"M2 Center"
"M2 Vector"
*Those points are linked to the position of other parts in the assembly.
2b) Record XYZ coordinates of the interest points
In a .txt, .csv, excel....
"M2 Center"
"M2 Vector"
*Note that those points are inside a part (.CATPart), not at the assembly level (.CATProduct)
A Proficient mechanical engineer with 3 year of experience and having hands on experience in Automotive Interior and Exterior Trims using Catia V5 and solidwork
Hello There,
I am working in Catia V5 for almost like a decade now. I looked at your requirement and saw you are interested in having a macro to create your model based on some conditions...I can do it for you ... we can discuss about it. You can let me know in detail about your specific requirement...I am giving an estimated time of 15 days but it could vary ( maybe early or little late) based on your need...but it could be done easily..if you want me to create macro for you..do let me know I will start working. Thanks