Command Question

Hello guys,

I am trying to use GH Python Command to call function in Rhino7.
The case is using ‘Dupborder’ to get brep naked edges. The code is simple as below:
rs.Command(‘dupborder’)

The issue is I don`t want jump out GH canvas then select from Rhino viewport. I simply want the data can be passed directly into another component. is there any way to achieve that?

Many thanks,
Lei

Hi Lei - rs.DuplicateSurfaceBorder((brep Id) will add the curves to the document. If you want to get the curves without adding them to the document, Rhino Common’s Brep.DuplicatenakedEdgeCurve() should help.

https://developer.rhino3d.com/wip/api/RhinoCommon/html/M_Rhino_Geometry_Brep_DuplicateNakedEdgeCurves.htm

-Pascal

Thanks Pascal.
Just what I need.

Lei