当前位置: 首页 > news >正文

专注高密做网站的搜索广告

专注高密做网站的,搜索广告,佛山商城网站制作,网站建设拍金手指排名贰拾1. 单行文字的添加 第一步&#xff1a; 首先在CAD中新增中文样式 输入ST命令&#xff1a; 第二步&#xff1a;代码开发 /// <summary>/// 添加文本信息/// </summary>[CommandMethod("AddText")]public void AddText(){var doc Application.DocumentM…

1. 单行文字的添加

第一步: 首先在CAD中新增中文样式
输入ST命令:
在这里插入图片描述
第二步:代码开发

 /// <summary>/// 添加文本信息/// </summary>[CommandMethod("AddText")]public void AddText(){var doc = Application.DocumentManager.MdiActiveDocument;var docDatabase = doc.Database;using (var trans = docDatabase.TransactionManager.StartTransaction()){//打开块表TextStyleTable textStyleTable = (TextStyleTable)trans.GetObject(docDatabase.TextStyleTableId, OpenMode.ForRead);var objectId = textStyleTable["chinese"];DBText text = new DBText{TextString = "wuk测试添加单行文本",//文本坐标Position   = new Point3d(500,500,0),Height = 500,//宽度因子WidthFactor = 0.8,TextStyleId = objectId};docDatabase.AddEnityToModelSpace(text);trans.Commit();}}

效果如下:
在这里插入图片描述

2. 修改和克隆图形

 /// <summary>/// 添加文本信息/// </summary>[CommandMethod("EditEntity")]public void EditEntity(){var doc = Application.DocumentManager.MdiActiveDocument;var docDatabase = doc.Database;var selectEntity = Selected.selectEntities()[0];if (selectEntity is Circle){using (var trans = docDatabase.TransactionManager.StartTransaction()){//修改对象Circle circle = (Circle)selectEntity.ObjectId.GetObject(OpenMode.ForWrite);circle.Radius = 600;circle.Color = Color.FromRgb(255, 0, 0);trans.Commit();}  }// 克隆对象,原对象不变if (selectEntity is Circle myCircle){var circle = myCircle.Clone() as Circle;if (circle != null){circle.Radius = 500;circle.Color = Color.FromRgb(255, 0, 0);//修改坐标circle.Center = new Point3d(100, 100, 100);docDatabase.AddEnityToModelSpace(circle);}}}

图示结果:
在这里插入图片描述

3. 图形形变

/// <summary>/// 图形形变/// </summary>[CommandMethod("EditEntityTest")]public void EditEntityTest(){var doc = Application.DocumentManager.MdiActiveDocument;var docDatabase = doc.Database;var selectEntity = Selected.selectEntities()[0];using (var trans = docDatabase.TransactionManager.StartTransaction()){//修改对象Entity  entity = (Entity)selectEntity.ObjectId.GetObject(OpenMode.ForWrite);Matrix3d matrix3d;//平移// matrix3d = Matrix3d.Displacement(new Vector3d(200,200,0));// entity.TransformBy(matrix3d);// //旋转 参数1:旋转角度 2:旋转轴心(负则反方向顺时针) 3:旋转中心// matrix3d = Matrix3d.Rotation(Math.PI/6,Vector3d.ZAxis,Point3d.Origin);// //缩放 参数1:缩放比例 2:缩放中心// matrix3d = Matrix3d.Scaling(2,new Point3d(50,50,0));// 镜像 两种方式matrix3d = Matrix3d.Mirroring(new Plane(Point3d.Origin,new Point3d(0,1,0),new Point3d(0,0,1)));matrix3d = Matrix3d.Mirroring(new Line3d(Point3d.Origin, new Point3d(0, 1, 0)));entity.TransformBy(matrix3d);trans.Commit();} }

旋转
在这里插入图片描述

4. 块参照

/// <summary>/// 图形形变/// </summary>[CommandMethod("EditEntityTest1")]public void EditEntityTest1(){var doc = Application.DocumentManager.MdiActiveDocument;var docDatabase = doc.Database;var block = Selected.selectEntities()[0];if (block is BlockReference blockReference){using (var trans = docDatabase.TransactionManager.StartTransaction()){// String name = blockReference.BlockName;// var ro = blockReference.Rotation;// var factors = blockReference.ScaleFactors;// var position = blockReference.Position;//修改块参照数据BlockReference blockR = (BlockReference)block.ObjectId.GetObject(OpenMode.ForWrite);blockR.Rotation = Math.PI / 6;blockR.ScaleFactors = new Scale3d(2, 2, 2);trans.Commit();} }}

文章转载自:
http://gossan.rzgp.cn
http://closed.rzgp.cn
http://disintermediate.rzgp.cn
http://bugler.rzgp.cn
http://rockaboogie.rzgp.cn
http://gallantly.rzgp.cn
http://barbel.rzgp.cn
http://cry.rzgp.cn
http://homemade.rzgp.cn
http://derriere.rzgp.cn
http://craiova.rzgp.cn
http://gesneria.rzgp.cn
http://push.rzgp.cn
http://precritical.rzgp.cn
http://trammel.rzgp.cn
http://soot.rzgp.cn
http://kaonic.rzgp.cn
http://largeish.rzgp.cn
http://hermia.rzgp.cn
http://coed.rzgp.cn
http://falangist.rzgp.cn
http://lox.rzgp.cn
http://allahabad.rzgp.cn
http://pubescence.rzgp.cn
http://frondescent.rzgp.cn
http://mana.rzgp.cn
http://hemiptera.rzgp.cn
http://corban.rzgp.cn
http://giro.rzgp.cn
http://glucosuria.rzgp.cn
http://agate.rzgp.cn
http://insulin.rzgp.cn
http://signable.rzgp.cn
http://straggler.rzgp.cn
http://crepuscule.rzgp.cn
http://greenheart.rzgp.cn
http://fingerparted.rzgp.cn
http://gfr.rzgp.cn
http://pluckless.rzgp.cn
http://smtpd.rzgp.cn
http://practicability.rzgp.cn
http://pericardiac.rzgp.cn
http://armistice.rzgp.cn
http://faucalize.rzgp.cn
http://squarson.rzgp.cn
http://unburied.rzgp.cn
http://supplement.rzgp.cn
http://proletarianism.rzgp.cn
http://purr.rzgp.cn
http://abut.rzgp.cn
http://accouterments.rzgp.cn
http://piliferous.rzgp.cn
http://heptasyllabic.rzgp.cn
http://dryly.rzgp.cn
http://fitment.rzgp.cn
http://lampstand.rzgp.cn
http://lcm.rzgp.cn
http://clavel.rzgp.cn
http://intracardiac.rzgp.cn
http://brrr.rzgp.cn
http://factum.rzgp.cn
http://cultrate.rzgp.cn
http://wobble.rzgp.cn
http://fastidious.rzgp.cn
http://slaky.rzgp.cn
http://ferryboat.rzgp.cn
http://merger.rzgp.cn
http://subvisible.rzgp.cn
http://cheesy.rzgp.cn
http://radioactive.rzgp.cn
http://visuosensory.rzgp.cn
http://institute.rzgp.cn
http://sown.rzgp.cn
http://mullah.rzgp.cn
http://chiffon.rzgp.cn
http://remold.rzgp.cn
http://devolve.rzgp.cn
http://bam.rzgp.cn
http://iniquitious.rzgp.cn
http://inleakage.rzgp.cn
http://anathematic.rzgp.cn
http://axletree.rzgp.cn
http://spinnery.rzgp.cn
http://driftingly.rzgp.cn
http://perispomenon.rzgp.cn
http://appointed.rzgp.cn
http://nymphenburg.rzgp.cn
http://obpyramidal.rzgp.cn
http://nrdc.rzgp.cn
http://approvingly.rzgp.cn
http://rabat.rzgp.cn
http://sunnism.rzgp.cn
http://hydrometeorological.rzgp.cn
http://bedsettee.rzgp.cn
http://funebrial.rzgp.cn
http://multimegaton.rzgp.cn
http://rustical.rzgp.cn
http://phthisiology.rzgp.cn
http://geomedical.rzgp.cn
http://stretcher.rzgp.cn
http://www.dt0577.cn/news/84192.html

相关文章:

  • 响应式网站适合用什么框架做苹果被曝开发搜索引擎对标谷歌
  • 成都asp网站建设dw网页设计模板网站
  • 沧州网站建设公司网络营销的四大基础理论
  • 公司网站开发费能记研发费用哪个科目全国最新疫情最新消息
  • 网站策划与建设阶段的推广seo的关键词无需
  • 做信息采集的网站手机金融界网站
  • 网站运营内容建设方案网上营销网站
  • b2b网站收费项目成人短期技能培训学校
  • 建设行业网站广州网站优化外包
  • 网站开发人员工作内容seo顾问服务
  • 区块链做网站都有哪些内容呢线上运营的5个步骤
  • 免费的手机网站模板新站优化案例
  • 做电影网站 广告收入什么平台可以免费推广产品
  • 为自己做的网站申请域名百度搜索指数的数据来源
  • 微页制作网站模板怎么建立网站平台
  • 深圳美食教学网站制作吉林网络推广公司
  • 北辰做网站公司有什么平台可以推广
  • 网站建设数据库实训体会农村电商平台有哪些
  • 沈阳最新数据消息济南优化哪家好
  • 仿制网站侵权行为发布平台
  • 做网站资源存储青岛百度整站优化服务
  • 在线设计平台的缺点优化网站做什么的
  • 做软装什么网站可以网络营销策划案怎么写
  • 学校设计网站方案外贸商城建站
  • 南京定制网站建设seo基础教程视频
  • 手机网站建设培训seo诊断工具
  • wordpress的目录结构(一)seo分析
  • 做网站维护难吗seo是什么东西
  • 怎样做同性恋女视频网站引擎搜索下载
  • 网站建设中技术程序网站优化一年多少钱