> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# DrawnBy

## Definition

Represents the **NinjaScript** object which created the drawing object.

## Property Value

The **NinjaScript** object which created the drawing tool; this value will be null if drawn by a user.

## Syntax

`DrawnBy`

## Examples

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{       
    // if the drawing tool was not created by a user, 
    // print the name of the object that it was created       
    if(!IsUserDrawn)
        Print(DrawnBy.Name);
}
```