求vb.net实例
版主们,能否提供些关于vb.net的开发实例,供小弟学习学习,小弟在此先 谢谢了! 开发手册里有很多的官网的教程应该也有不少
http://www.adskconsulting.com/adn/cs/api_course_sched.php 谢谢指点
我也是刚学,简单画线和画圆public void LineCir()
{
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction ta = db.TransactionManager.StartTransaction())
{
BlockTable bt = (BlockTable)ta.GetObject(db.BlockTableId, OpenMode.ForRead);
BlockTableRecord btr = (BlockTableRecord)ta.GetObject(bt, OpenMode.ForWrite);
Line Lent = new Line(new Point3d(0, 0, 0), new Point3d(20, 10, 0));
Circle Cent = new Circle(new Point3d(0, 0, 0), Vector3d.ZAxis, 5);
btr.AppendEntity(Lent);
btr.AppendEntity(Cent);
ta.AddNewlyCreatedDBObject(Lent, true);
ta.AddNewlyCreatedDBObject(Cent, true);
ta.Commit();
}
}
页:
[1]