Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
(OP)
Hello Friends
I want to create Macro to Rotate Part Instance in Assy W.R.T. given axis with stop at intersection. Is it possible. Please guide me.
Thanks
I want to create Macro to Rotate Part Instance in Assy W.R.T. given axis with stop at intersection. Is it possible. Please guide me.
Thanks





RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
Yes, it is possible to programmatically rotate a Part in an Assembly. You may start recording a macro and use the [Manipulation] command to see how this can be done.
What do you mean by "... with stop at intersection"?
-GEL
Imposible is nothing.
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
Is it possible somehow ??
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
Basic Concept
Two parts A, B are in collision if they have a common volume ie C = A∩B ≠ 0
You may follow the following conceptual pseudo code:
0. Define an angle increment ∆φ=0.5 deg , accuracy level Cmin=1E-9 and φ=0 deg
1. Rotate part A by φ = φ + ∆φ
2. Calculate C=A∩B (with the aid of CATIA)
3. If (C = 0 And φ < 360deg) Then φ = φ + ∆φ, Goto 1
Else
If C > Cmin Then ∆φ = ∆φ/2, φ = φ - ∆φ ,Goto 1
Else Return
In my humble opinion, this is also how CATIA faces the collision problem. Due to this, in some singular cases the parts instead of colliding are jumping one over the other.
I hope it helps.
-GEL
Imposible is nothing.
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
there is an option in assy environment of catia which is "Stop manipulate on clash"
In "Move" toolbar you will find this command, select this before you use Manipulation command to move parts or products in your assembly for interference check.
Also there will be a check box in Manipulation dialog box "With respect to constraints", keep it checked. So whenver there is clash between parts you are moving,
it will stop the movement.
Hope it helps. I will try to create a macro if possible.
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
RE: Catia Macro: Rotate Part in Assy W.R.T. given axis with stop at intersection
Which means now you have got 100 bodies at 100 different angles.
We can use another macro which will save each body as new part file.
Now u can use these parts inside a product for individual or as per your requirement for clash analysis.
vikt