everyeasy 发表于 2005-5-17 14:21:00

为什么这几句话在我的机器上编译通不过??
                pt2.X = pt1.X + x;
                        pt2.Y = pt1.Y + y;
                        pt2.Z = pt1.Z;
报错信息为:
error CS0200: Property or indexer 'Autodesk.AutoCAD.Geometry.Point3d.X' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'Autodesk.AutoCAD.Geometry.Point3d.Y' cannot be assigned to -- it is read only
error CS0200: Property or indexer 'Autodesk.AutoCAD.Geometry.Point3d.Z' cannot be assigned to -- it is read only
CommandLinePrompts.Message("\n所输入的参数无法创建图形!");
报错信息为:
error CS0246: The type or namespace name 'CommandLinePrompts' could not be found (are you missing a using directive or an assembly reference?)
页: 1 [2]
查看完整版本: [ARX]利用AutoCAD 2005.NET API进行AutoCAD的二次开发(一)