Is This Content Helpful?
We're glad to know this article was helpful.
How can we make this better? Please provide as much detail as possible.
This article contains a script that adds a North Arrow to a layout.
theDoc = av.GetActiveDoc
theODB = odb.open("$AVHOME\etc\north.def".asfilename)
theODBNEW = theODB.Get(0)
'-- Define Northarrow to grab
theArrowObj = theODBNEW.Get(0)
'-- r must be a rectangle on the View or Layout
'-- r is the rectangle on the View/Layout where the northarrow will be drawn
'-- The setarrow request adds the specified
'-- arrow to the defined rectangle area
r = theDoc.getDisplay.returnvisextent
if (r <> nil) then
gn = NorthArrow.Make(r)