Creating splines on multiple planes and loft using python code. Fusion 360 API

Creating splines on multiple planes and loft using python code. Fusion 360 API

Anonymous
Not applicable
1,542 Views
6 Replies
Message 1 of 7

Creating splines on multiple planes and loft using python code. Fusion 360 API

Anonymous
Not applicable

Hi All,

I'm attempting to design a human body like model using Fusion 360 API. Goal is to use Python code to create the spline shapes that would represent accurate dimensions based on the input parameters. In Fusion, I begin by Drawing abdomen shape like splines on multiple sketch planes,with reasonable spacing in between, from the top to the bottom, then using loft tool to combine and create a solid body.

Tweaking the points on each spline should change the shape and surface of the body created. I would like to do all this and more (later on)through the API in Fusion. At the moment my knowledge on scripting and using Fusion API is a work in progress.

Any help would be greatly appreciated please.

 
0 Likes
1,543 Views
6 Replies
Replies (6)
Message 2 of 7

TrippyLighting
Consultant
Consultant

There are software packages out there such as MakeHuman, which allow you to modify many aspects of human anatomy more or less parametrically. Those are quad-mesh and Sub-D based for a good reason. Sub-D surfaces are more malleable (deform more easily) than geometry created by NURBS surfaces.

 

Assuming that lofted NURBS surfaces comprised form a series of spline profiles is going to behave as you would like it to is pretty unlikely. Then you'll start adding more points and more curves, probably one or more rails and it'll all go haywire.


EESignature

Message 3 of 7

Anonymous
Not applicable

Thanks for the reply Peter,

While MakeHuman seems to be a good tool for 3D modeling, i want to believe that Fusion360 is well capable of a tool to solve this issue. Part of my workflow involves 3D printing the designed model and so it has to be a Solid model, I don't think or know if Makehuman has all the tools that I need. There's also more to this project that just creating Splines and loft, but you're definitely right, sub-D based mesh are easily deformed/morphed than CAD models, however that's not the issue at hand. I just want to be able to input x,y,z values in python and make it create multiple splines on different construction planes , then loft. I'd also like to be able to parametrically manipulate the shape of the lofted model via Fusion 360 API. I appreciate your inputs.

0 Likes
Message 4 of 7

TrippyLighting
Consultant
Consultant

@Anonymous wrote:

... i want to believe that Fusion360 is well capable of a tool to solve this issue. 


The tool isn't the limitation here.

Before engaging in hours of programming you should first try to manually model human anatomy with the method you are proposing. If you are happy with the result, then engage in programming.

 


EESignature

Message 5 of 7

Anonymous
Not applicable

Thanks for your prompt replies peter.

I have already designed the model in Fusion 360 and we have even gone as far as 3D printing the prototype, now all we need to do is optimize the process. I'm happy with the model so at this stage coding is way forward. It's also not the whole human anatomy, it's basically just the combination of the Thorax and abdomen section just as I show on the attached video.(not sure if you're able to see it below)

Message 6 of 7

TrippyLighting
Consultant
Consultant

I cannot see the video, but that’s OK. What you described actually has a good chance of success.

This forum has a section dedicated to the API and you may want to ask this question there.


EESignature

Message 7 of 7

Anonymous
Not applicable

Sample video 

Here is the video just in case you'd still want to have a look, but also for anyone else viewing this thread who can't see the video as well.  I thought I'd have a better shot posting this question on both sides of the Fusion forum, but thanks for the guidance. I'm still waiting for a response from the other side(Fusion 360 API forum). 

0 Likes