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

有哪些公司做网站可以中英切换的网站怎么做

有哪些公司做网站,可以中英切换的网站怎么做,榆树市住房和城乡建设局网站,我想在阿里巴巴网站开店_怎么做今天在讲述主要内容之前#xff0c;先说一个不太相关的问题。 我之前在其他文章中看到有一些朋友在问为什么获取到的点位数据需要乘以1000进行单位转换#xff0c;其实原因是这样的#xff0c;在所有使用的API中如果没有特殊说明#xff0c;所有的长度单位都是米#xff…今天在讲述主要内容之前先说一个不太相关的问题。 我之前在其他文章中看到有一些朋友在问为什么获取到的点位数据需要乘以1000进行单位转换其实原因是这样的在所有使用的API中如果没有特殊说明所有的长度单位都是米角度单位都是弧度顺手解答一下那位朋友的疑问。 下面开始今天文章的主题 1、介绍第一个和选择管理器相关的APIGetSelectedObjectCount2 Method (ISelectionMgr) 这个API的解释为获取所选对象的数目。 2、第二个API为GetSelectedObject6 Method (ISelectionMgr) 这个API的解释为获取选择对象这个我平时用的非常多。 下面是使用的例子 public void Main(){ModelDoc2 swModel  default(ModelDoc2);ModelDocExtension swModelDocExt  default(ModelDocExtension);FeatureManager swFeatureManager  default(FeatureManager);MidSurface3 swMidSurfaceFeature  default(MidSurface3);Feature swFeature  default(Feature);SelectionMgr swSelectionMgr  default(SelectionMgr);Face2 swFace  default(Face2);bool status  false;int errors  0;int warnings  0;string fileName  null;int count  0;object[] faces  null;int i  0;fileName  C:\\Users\\Public\\Documents\\SOLIDWORKS\\SOLIDWORKS 2018\\samples\\tutorial\\api\\box.sldprt;swModel  (ModelDoc2)swApp.OpenDoc6(fileName, (int)swDocumentTypes_e.swDocPART, (int)swOpenDocOptions_e.swOpenDocOptions_Silent, , ref errors, ref warnings);swModelDocExt  (ModelDocExtension)swModel.Extension;status  swModelDocExt.SelectByID2(, FACE, -0.0533080255641494, 0.0299999999999727, 0.0131069871973182, true, 0, null, 0);status  swModelDocExt.SelectByID2(, FACE, -0.0370905424398416, 0, 0.0289438729892595, true, 0, null, 0);swFeatureManager  (FeatureManager)swModel.FeatureManager;swFeatureManager.InsertMidSurface(null, null, 0.0, false);status  swModelDocExt.SelectByID2(Surface-MidSurface1, REFSURFACE, 0, 0, 0, false, 0, null, 0);swSelectionMgr  (SelectionMgr)swModel.SelectionManager;swFeature  (Feature)swSelectionMgr.GetSelectedObject6(1, -1);swMidSurfaceFeature  (MidSurface3)swFeature.GetSpecificFeature2();count  swMidSurfaceFeature.GetFaceCount();Debug.Print(Number of faces for midsurface feature:   count);faces  (object[])swMidSurfaceFeature.GetFaces();for (i  faces.GetLowerBound(0); i  faces.GetUpperBound(0); i){swFace  (Face2)faces[i];Debug.Print(Area of face   i   of midsurface feature:   swFace.GetArea());}}/// summary///  The SldWorks swApp variable is pre-assigned for you./// /summarypublic SldWorks swApp;3、第三个API为GetSelectedObjectType3 Method (ISelectionMgr) 这个API的解释为获取选择对象的类型。 下面介绍一个使用的例子 public void Main() { ModelDoc2 swModel default(ModelDoc2); bool boolstatus false; SelectionMgr SelMgr default(SelectionMgr); TableAnnotation theTableAnnotation default(TableAnnotation); int SelObjType 0; int TableAnnotationType 0; swModel (ModelDoc2)swApp.ActiveDoc; SelMgr (SelectionMgr)swModel.SelectionManager; SelObjType SelMgr.GetSelectedObjectType3(1, -1); if (SelObjType ! (int)swSelectType_e.swSelANNOTATIONTABLES) { MessageBox.Show(Select a BOM table in the drawing before running this example.); return; } theTableAnnotation (TableAnnotation)SelMgr.GetSelectedObject6(1, -1); TableAnnotationType theTableAnnotation.Type; if (TableAnnotationType ! (int)swTableAnnotationType_e.swTableAnnotation_BillOfMaterials) { MessageBox.Show(Select a BOM table in the drawing before running this example.); return; } Debug.Print(Table before inserting a column...); // Display table before inserting a column DisplayTableColumnProps(theTableAnnotation); // Insert new column boolstatus theTableAnnotation.InsertColumn2((int)swTableItemInsertPosition_e.swTableItemInsertPosition_Last, 0, New Column, (int)swInsertTableColumnWidthStyle_e.swInsertColumn_DefaultWidth); boolstatus theTableAnnotation.SetColumnType2(theTableAnnotation.ColumnCount - 1, (int)swTableColumnTypes_e.swBomTableColumnType_PartNumber, true); Debug.Print( ); Debug.Print(Table after inserting a column...); // Display table after inserting a column DisplayTableColumnProps(theTableAnnotation); } public void DisplayTableColumnProps(TableAnnotation theTableAnnotation) { int ColCount 0; int i 0; string iString null; int ColType 0; string ColTypeString null; string ColTitle null; Debug.Print(Col# Type   Title); ColCount theTableAnnotation.ColumnCount; for (i 0; i ColCount - 1; i) { ColType theTableAnnotation.GetColumnType2(i, true); ColTypeString System.Convert.ToString(ColType); ColTitle theTableAnnotation.GetColumnTitle2(i, true); iString System.Convert.ToString(i); Debug.Print(iString     ColTypeString   ColTitle); } } /// summary /// The SldWorks swApp variable is pre-assigned for you. /// /summary public SldWorks swApp; 今天介绍的这三个API都是选择管理器相关的API还是比较常用的。 本篇文章就介绍这些我们下篇文章再见。
http://wiki.neutronadmin.com/news/141692/

相关文章:

  • 做电商运营还是网站运营哪个好wordpress配置数据库失败6
  • 凡科建站网址红色经典ppt模板免费下载
  • 廊坊seo网站管理网站备案是域名还是空间
  • 加强政务公开与网站建设百度上做推广怎么做
  • 门户网站建设对策及建议网站开发培训课程表
  • 做网站切图网页转向网站
  • 网站联盟平台在线代理网页服务器
  • 网站建设对公司有什么好处邢台市最新人事调整
  • 做注册任务的网站有哪些四川建设行业数据共享平台网站问题
  • 无忧建站营销型网站概念
  • 网站开发确认函推广网页模板
  • 公众号做电影采集网站会被封做建材的网站有哪些
  • 网站左侧悬浮导航wordpress 权限修改
  • 鞍山市城乡建设局网站重庆品牌网站建设公司排名
  • 网站站欣赏电商公司名字大全
  • 手机移动网络屏蔽的网站网站制作:网推宝|百度
  • 如何做网站 代码做电影网站 需要进那些群
  • 成都科技网站建设咨询手机版网站建设
  • 网站开发协议合作网站建设分金手指排名十三
  • 产品型网站手游推广个人合作平台
  • python网站开发的优势成都网站建设服务有什么
  • 有哪个网站可以做ppt赚钱易网拓营销型网站
  • 河北省廊坊市建设银行网站大淘客网站怎么做
  • 外卖网站建设可行性分析照片编辑在线
  • 最新网站域名ip地址查询wordpress修改pageid
  • 网站一般如何做搜索功能手机怎么弄微信公众号
  • 男的和女的做那种事情网站做网站可以用中文域名备案嘛
  • 网站做二级域名干什么用大连住房和建设局网站
  • 网站建设技术知乎上海进出口贸易博览会
  • 建设一个网站需要什么硬件软件网络新闻专题做的最好的网站