Using part names instead of instance names

Using part names instead of instance names

sam
Advocate Advocate
502 Views
3 Replies
Message 1 of 4

Using part names instead of instance names

sam
Advocate
Advocate

Hi Everyone, 

Is there any way we could use part names rather than using instance names (highlighted below). 

 

Constraints.AddMate("Mate1", "Part1:1", "Work Plane1", "Part2:1", "Work Plane1",
offset := 0.0, e1InferredType := InferredTypeEnum.kNoInference, e2InferredType := InferredTypeEnum.kNoInference,
solutionType := MateConstraintSolutionTypeEnum.kNoSolutionType,
biasPoint1 := Nothing, biasPoint2 := Nothing)

 

 

 

0 Likes
503 Views
3 Replies
Replies (3)
Message 2 of 4

HideoYamada
Advisor
Advisor

Hello sam,

 

Only the part name cannot determine which occurrence should to be processed.

(Imagine several same parts are existing in one assembly.)

 

Therefore you should specify the occurrence name rather than the part name.

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 3 of 4

sam
Advocate
Advocate

@HideoYamada I understand that and that is why I require it. I want mates working for the part instead of instance so that it works for all the instances. Any thoughts?

0 Likes
Message 4 of 4

HideoYamada
Advisor
Advisor

Hello sam,

 

You can create new sub or function doing it, but I think there is no API or integrated function simply to do it.

Try make it!

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp