Copy properties when offsetting?

I do try to create a macro to copy the properties from the original curve to a new one created with the Offset command. Unfortunately my approach don’t work properly, so maybe somebody have a solution for this issue.

! _Offset

Hello- I don’t see off hand how to get there in a macro - here’s a script you can put on a button:

! _-RunPythonScript (
import rhinoscriptsyntax as rs
ID = rs.GetObject("Select a curve to offset",4, select=True,preselect=True)
if ID:
    rs.Command("_Offset", True)

    if rs.LastCommandResult() == 0:
        offID = rs.LastCreatedObjects()[0]
        rs.MatchObjectAttributes([offID], ID)


1 Like

Thank you. Works good.