Isocurve help

Isocurve help

J_Gow
Participant Participant
811 Views
5 Replies
Message 1 of 6

Isocurve help

J_Gow
Participant
Participant

Hello all,

 

My goal is to ultimately write a script to create an Isocurve on a user selected face or faces using the getIsoCurve method.

 

I am stuck at the beginning just trying to generate an Isocurve.  I'm testing it on individual faces of a very simple patch surface derived from a T-Splines mesh and also on another patch surface extruded from a circle.  The messageBox returns 'None Type' for isocurve: 

# Snippet from my code
face0 = ui.selectEntity('Select a Face', 'Faces').entity
isocurve = face0.geometry.evaluator.getIsoCurve(.5, False)
ui.messageBox('Output: {0}'.format(isocurve.objectType))

1.  How do query a face to determine which direction the U and V are?

2.  Am I inputting the correct type of argument for the parameter?

3.  Once an Isocurve is created, is it technically a Curve3D object?

4.  I may be asking a lot of Fusion with this one, is it possible to convert an Isocurve to a spline?

 

Thank you for your help,

Josh 

0 Likes
812 Views
5 Replies
Replies (5)
Message 2 of 6

J_Gow
Participant
Participant

Please disregard questions 1 and 2, I figured out what I was doing wrong.  

I needed to go directly to the Surface Evaluator and not through Geometry.  so now it works:  isocurve  = face.evaluator.getIsoCurve(parameter, bool)

Also, I overlooked that it returns an Object Collection, so now doing  isocurve.count returns 1.

Message 3 of 6

J_Gow
Participant
Participant

Well, I did some more digging on the forums and ended up finding answers to the rest of my questions.  It's considered a 3d nurbscurve and it can be converted to a spline.   

0 Likes
Message 4 of 6

ut15
Explorer
Explorer

HI,

 

if possible to have the list complete script?

 

Thanks

0 Likes
Message 5 of 6

kandennti
Mentor
Mentor

Hi @ut15 .

 

I made an experimental one using the getIsoCurve method, but there was no use for it, so I'm releasing it here.

https://github.com/kantoku-code/Fusion360_Small_Tools_for_Developers/blob/master/UVviewer/UVviewer.p... 

 

 

Message 6 of 6

J_Gow
Participant
Participant

Wow nice job, you got much further than I did.  I was still learning the API and Fusion at the time and ended up abandoning trying to figure out a script.  However in hindsight I also have not had a need for it.  I'd rather create a curve on a surface using project to surface because the projected curve will recalculate if changes are made to the reference curve.