ricbio
October 14, 2013, 11:23pm
1
Hello,
Is there any command that allows me to create a surface from a curve network?
I know I can do it using the interface but what is the rhinopython command for it?
I have found it in https://github.com/mcneel/rhinopython/blob/master/scripts/rhinoscript/surface.py
It is supposed to be AddNetworkSrf but I don’t think this function is available…
Thanks in advance
Ricardo
dale
(Dale Fugier)
October 15, 2013, 6:51pm
2
This seems to work:
import rhinoscriptsyntax as rs
curves = rs.GetObjects("Select curves in network", rs.filter.curve, True, True)
if curves: rs.AddNetworkSrf(curves)
Check the Rhino.Python help file for details.
Hmm, looks like the Python Help file is missing an entry for NetworkSrf in the Index tab…
–Mitch
ricbio
October 17, 2013, 10:21am
4
Hey Dale,
Thanks for your reply.
I have tried that command but I guet the following error:
Message: ‘module’ object has no attribute ‘AddNetworkSrf’
ricbio
October 17, 2013, 10:22am
5
Hey Mitch,
It is true. I cannot find any help regarding ‘AddNetworkSrf’
any other thoughts on this?
clement
October 17, 2013, 12:40pm
6
Hi Ricardo,
you´ll need to update your syntax files for rs from this link . In particular the AddNetworkSrf method is located in surface.py .
c.
dale
(Dale Fugier)
October 17, 2013, 3:17pm
7
Also, make sure you have the latest service release of Rhino 5.
Help -> Check for updates…
ricbio
October 17, 2013, 4:02pm
8
Dear Clement,
Thanks so much.
Do you have any ideas/guides/tutorial on how to perform an update of my syntax files?
Ricardo
Hi Ricardo,
i´ve written a small [script][1] to download the 27 files into a user definable temp folder. Then once i´ve downloaded them, i´m overwriting the old files under:
C:\Users\YourName\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython\settings\lib\rhinoscript```
I´m shure this will change at some so Rhino automatically downloads and updates the files.
c.
[1]: http://tinyurl.com/n5emfxp
ricbio
October 21, 2013, 10:01am
10
Dear all,
Thanks so much for your answers. After updating the surface.py I did manage to use the command AddNetworkSrf.
Ricardo