Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing ~6000 Spheres

  • Thread starter Thread starter VincentvD
  • Start date Start date
V

VincentvD

Guest
Goodday,


I want to create a graphical representation of a so called pebblebed. Basicaly this means I want to place a pebble (r=0.635) in ~6000 locations (in txt file). I can import the txt file as point cloud, but then I seem to be unable to pattern on it. Doing it manually (1 by 1)is not an option due to the high amount of objects.


If you have advice on how to tackle this problem or what a macro for this would look like thenI would love to hear it.


zipped txt file with locations: 2010-09-13_072752_PEBBEX_edit_to_235mm.zip
 
I already solved it:


You can simply create a long macro


boolstatus = Part.AddComponent("D:\vjjvandijk\Desktop\Afstuderen VvD\Geometrie pebblebeds\pebble.SLDPRT",-8.2053837,2.2300666, 0.635)


but then for all your particles and execute.


He will place a sphere at each location, now I wonder if my computer will be able to handle that many points.


Note: You can not exceed 64k in your visual basic script, so you have to do it in parts.
 
Vincent,


Hmmm, 6000 parts in an asm file? Hope you're on 64-bit with lots of RAM, and bump down the curve detail and HLR/HLV resolution before you run the script so you're vid card doesn't melt... :)


Good luck!


Jim
http://www.linkedin.com/in/shawengineering
 

Part and Inventory Search

Sponsor

Back
Top