How to declare a sphere object ??

How to declare a sphere object ??

Anonymous
Not applicable
348 Views
1 Reply
Message 1 of 2

How to declare a sphere object ??

Anonymous
Not applicable

Good morning,

 

I know this is a diferent theme but I didn´t find any information about declaring spheres,  this is my problem, hope you understand me.

1.- I have a main assy with 3 or more subassemblies.

2.- One of my subassemblies contain only spheres

3.- I want to insert other subassembly several times, one per sphere and make a mate constraint with each sphere, I have the main part of the code, my problem is that I can´t declare the spheres, I tried to declare them as occurrences, documents or surface but it didn´t work, this is what I´ve tried:

 

'TryA

Dim sphere As Sphere

sphere = oWelddefinition.Occurrences.Item(totaldespots).Definition

 

'TryB

Dim spherepart As Sphere

spherepart = oWelddefinition.Occurrences.Item(totaldespots).SurfaceBodies(1)

 

'TryC

Dim spherepart As Sphere

spherepart = oWelddefinition.Occurrences.Item(totaldespots).SurfaceBodies(1).Faces(1)

 

 

I know that this lines are stupid -.- but I didn´t find anything about declaring spheres

 

ANYONE WHO CAN HELP ME PLEASE??!!

 

0 Likes
349 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

is it possible ? If it is not possible, what i want is to constraint a ball that is derived of a step file , the problem is that the balls are not in the origin and i cannot make a constraint with the center point of the balls with a code in vb, anyone who can help me please?

0 Likes