没什么问题的
-
-
- using System;
- using System.Linq;
- using System.Text;
- using System.Drawing;
- using Autodesk.AutoCAD.Runtime;
- using Autodesk.AutoCAD.ApplicationServices;[assembly: CommandClass(typeof(TlsTest.Class3))]
- namespace TlsTest
- {
- class Class3
- {
- [CommandMethod("PositionApplicationWindow")]
- public static void PositionApplicationWindow()
- {
- // Set the position of the Application window
- Point ptApp = new Point(0, 0);
- Application.MainWindow.Location = ptApp;
- // Set the size of the Application window
- Size szApp = new Size(400, 400);
- Application.MainWindow.Size = szApp;
- }
- }
- }
|