Rhino Command Script

Hello, I just started writing scripts and I thought it would be good to see the scripts of rhino commands to learn better. Is there a way to view the script for these commands?
Thanks in advance

Welcome @agaheroglu,

I don’t think so, but you sure can check out the rhinocommon source code of rhinoscriptsyntax functions:

import rhinoscriptsyntax as rs
import inspect

print inspect.getsource("rs.AddPoint")  # outputs the source code of this fu

rhinoscriptsyntax is a “wrapper” for rhinocommon, meaning that each of its functions executes rhinocommon code in the background.

Thank you so much