How to declare a sphere object ??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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??!!