I don't know. I got spheres, but the diameter was the first non-zero number in the number I entered for the diameter. So 0.1 became 1 and 0.10 became 10. For the rest I didn't change anything, just ran your script.
Yes, that did the trick. Thank you very much.
One last question though. Doesn't the script work with decimal numbers? My box has dimensions 1x1x1 mm and I want my spheres to be 0.05 mm. However when I enter that into the script the spheres get diameter 5 mm, so it doesn't seem to read the...
@FrankSwinkels
your script gives me some errors when I run it. I don't know if there is anything that I should change to make it work with my file.
The errors I get are:
Dim nullFeatures_Sphere As Features.Sphere = Nothing
>>Type 'Features.Sphere' is not defined
Dim sphereBuilder1 As...
I want to analyse the mechanical behavior of a polymer matrix filled with filler particles. When the material is created for experiments the fillers will be randomly distributed throughout the matrix. Therefore the spheres have to be randomly distributed in the model as well.
Sander
I have a box filled with (randomly generated) points. On these points i want to create spheres with a constant radius. I can do so by the 'create a sphere' method, but I can't select more than one point. Since I have over a hundred points in my box it is going to be time consuming to add all the...