Hi All,
I haven't had any luck figuring out what's wrong with my script.
The core coding (eg. building the parts) were from a script that Ivana(Thanks!) helped me with creating multiple cubes in SW.
Description of script:
Takes a text file that contains 8 bits followed by a 2. There are 128 sets of bytes.
Each high bit in the byte represents a cube that needs to be printed on a substrate.
There's an algorithm that checks whether the next bit is a 1 or 0. I need my parts to be STL files so there'll be issues if two cubes are made side by side instead of one extruded rectangle.
Once the part is made save and close it.
Start building the next set of Byte.
I've attached both the input design file and the script.
Your help is greatly appreciated!
Thanks.
SolidworksApi macros