Need help with a macro please

Hello dear fellows

I need a little help with this macro:

When i click the macro then the Line, macro needs to create 2 parallel lines to this line(OFFSET), first one is 4" off on the north side of the selected line and the second one will be 8" off on the north side of the selected line. Then 2 perpendicular lines between offsetted lines end gonna close the shape.

Usage: We are manufacturing countertops. After drawing the countertops adding a 4" strip to the back.

TIA

Hi Caglar - try

! _Offset _Pause _Cap=_None _ThroughPoint 4 r0,10,0
_SelNone _SelLast _Offset _Cap=_Flat _ThroughPoint 4 r0,10,0

-Pascal

Hello Pascal. That worked great. I can not thank you enough.

Can I ask you one more thing:

How can i make a macro for selecting a layer name is CUT LINE ?

TIA

Hi Caglar -

-SelLayer “Cut Line”

Please see
https://docs.mcneel.com/rhino/8/help/en-us/index.htm#information/rhinoscripting.htm?Highlight=Scripting

-Pascal

Thank you very much sir. Once again. That was very helpful