ERROR
When adding a Neatline to a Layout, clicking the OK button on the Neatline dialog causes ArcView to return the message:
Error in Graphic.Neatline at 3114
Stop: A(n) CompositePen object does not recognize the request SetWidth
A Composite Pen is currently selected in the Pen Palette. As programmed, the Neatline tool can not use complex line symbols.
Code:
r.GetSymbol.SetWidth(NeatWidth)
r.GetSymbol.SetCapStyle(#BASICPEN_CAP_SQUARE)
r.GetSymbol.SetJoinStyle(#BASICPEN_JOIN_MITER)
Code:
if (r.GetSymbol.Is(BasicPen)) then 'Insert this line
r.GetSymbol.SetWidth(NeatWidth)
r.GetSymbol.SetCapStyle(#BASICPEN_CAP_SQUARE)
r.GetSymbol.SetJoinStyle(#BASICPEN_JOIN_MITER)
end 'Insert this line
Note:
This script will now override the system script of the same name, but only for your current project. See the attached document for more information on system scripts.
Article ID:000002101
Get help from ArcGIS experts
Download the Esri Support App