Make2d set output layers

Hi,

is there a way to script make2d command with defining output layers in Rhino 7, in way like in Rhino 5?

in rhino 5 I was using

rs.Command(" -Make2D DrawingLayout=CurrentCplan "
+"ShowTangentEdges=Yes "
+"CreateHiddenLines=Yes "
+"MaintainSourceLayers=No "
+'VisibleLineLayer "CON visible" '
+'VisibleTangentsLayer "CON visible tan" '
+'HiddenLineLayer "CON hidden" '
+'HiddenTangentsLayer "CON hidden tan" '
+'AnnotationLineLayer "CON annotation" Enter ',
False)

I managed to script all except the output layers…

command =   "-_Make2D _Layout=CPlane _Properties=ByOutputLayers _CreateHiddenLines=Yes _ShowTangents=Yes _GroupOutput=No Enter Enter"  
rs.Command(command, False)

I could loop through the output curves and change their layer, but is there a direct way?

Thanks in advance,
Aleksandar

Hi @AleksandarSM,

Unlike Rhino 5, Rhino 6 has exposed all of the Make2d calculations to RhinoCommon. Thus, you no longer need to script the command. And since you seem to need more control of the output, I suggest you just write your own custom Make2d routine.

Here is an example of using HiddenLineDrawing.Compute:

SampleMake2dSnapshots.py

– Dale