using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Interop;
[CommandMethod("PrefsSetCursor")]
public static void PrefsSetCursor()
{
// This example sets the crosshairs for the drawing window
// to full screen.
// Access the Preferences object
AcadPreferences acPrefComObj = (AcadPreferences)Application.Preferences;
// Use the CursorSize property to set the size of the crosshairs
acPrefComObj.Display.CursorSize = 100;
var getColorM = acPrefComObj.Display.ModelCrosshairColor;
var getColorL = acPrefComObj.Display.LayoutCrosshairColor;
}