- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm a long time Fusion 360 user wading into scripting for the first time. I study fish and need to slice up a model of a fish I built 100 times and export the relative masses of each segment (segment mass/total body mass). I need to do this for a total of nine fish and doing it by hand is really tedious.
So far I have a script where, as far as I can tell, I am able to:
enter the body length of the fish
enter the number of segments I want
select the main body and the starting face
calculate the segment thickness
The next steps I need to do and am having trouble figuring out are:
1: Creating offset planes from the starting face
2: Splitting the body using the offset planes
3: exporting masses of each segment
I have experience coding in Python/MATLAB generally. But I do not know much about the Autodesk libraries or how to use them. I haven't found any good video tutorials that go beyond creating the first script. I know I'll need For Loops and things like that. I'm mainly having trouble figuring out how to create planes and things like that. I've been looking at some of the sample codes like bottle and pipe but they are of limited use. I don't necessarily need someone to write this for me, just point me toward some articles or templates that would help get me started.
Here is a screenshot of my code:
and the model I am trying to slice (the face I'm using to offset planes highlighted in blue):
Thanks a million,
Stephen
Solved! Go to Solution.