Hi !
Can someone tell me how to retreive the relation collection of an object ?
I have this code (only the relevant code posted) and the relation.count is 0 but in the image attached we can see 1 relation.
Set Relatii = oPiesa_De_Modificat.Part.Relations.SubList(oHole(i), True)
The relation...
Catiaer (Mechanical)(OP) is right.
"c:Center graph" works only if the active workbench is not assembly design.
.
.
.
Solved it !
You have to assign an user alias to this command and use that name in place of "center graph".
Works every time.