SelChain with preselected curve

Hello,

is there a way to use preselcted curve for SelChain command?

I made script for SELCHAIN command like this

-SelChain 
_ChainContinuity=_Tangency
_GapTolerance=0.15
_AngleTolerance=1
pause
enter
_Join
enter

Purpose of this is to “cleanup” 2D drawing as much as possible after make2D command

I want to make python script based on this but I can not pass preselected curve to SelChain

    for curve in curves:
    
        rs.SelectObject(curve)
        rs.Command ("' -SelChain _ChainContinuity=_Tangency _GapTolerance=0.15 _AngleTolerance=1  enter" , False)

Thanks in advance!
Aleksandar

Hi @AleksandarSM,

No, as far as I know you need to select the curve to start the chain every time.

– Dale

OK,

Thanks