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

怎么使用织梦做网站app与网站的区别

怎么使用织梦做网站,app与网站的区别,制作微信的网站有哪些,wordpress 视频直播大家好#xff0c;今天要介绍的是关于平面、曲面相关的API。 下面是相关的API: #xff08;1#xff09;第一个为ISurfacePlanarFeatureData#xff0c;这个API的含义为允许访问平面表面特征#xff0c;下面是官方的具体解释#xff1a; 下面是官方使用的例子#xff…大家好今天要介绍的是关于平面、曲面相关的API。 下面是相关的API: 1第一个为ISurfacePlanarFeatureData这个API的含义为允许访问平面表面特征下面是官方的具体解释 下面是官方使用的例子 This example shows how to create a planar surface feature. //---------------------------------------------------------------------------- // Preconditions: // 1. Verify that the specified document template exists. // 2. Open an Immediate window. // // Postconditions: // 1. Creates a new model document with a boss extrusion. // 2. Creates Surface-Radiate1 and Surface-Plane1 in the FeatureManager //    design tree. // 3. Inspect the Immediate window. //---------------------------------------------------------------------------- using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; using System.Runtime.InteropServices;   namespace CreateSurfacePlaneFeature_CSharp.csproj {     partial class SolidWorksMacro     {           ModelDoc2 Part;         SelectionMgr swSelMgr;         SelectData swSelData;         SurfaceRadiateFeatureData swRadiate;         SurfacePlanarFeatureData swPlane;         Feature swFeat;         Entity swEnt;         object[] vRadEnt;         object[] vBoundEnt;         Entity swRadDirEnt;         int i;           bool boolStatus;           public void Main()         {             Part  (ModelDoc2)swApp.NewDocument(C:\\ProgramData\\SolidWorks\\SOLIDWORKS 2015\\templates\\Part.prtdot, 0, 0, 0);             Part  (ModelDoc2)swApp.ActiveDoc;               boolStatus  Part.Extension.SelectByID2(Front Plane, PLANE, -0.0448901407839529, 0.0279954694016864, 0.00466820674117181, false, 0, null, 0);             Part.SketchManager.InsertSketch(true);             Part.ClearSelection2(true);             boolStatus  Part.Extension.SetUserPreferenceToggle((int)swUserPreferenceToggle_e.swSketchAddConstToRectEntity, (int)swUserPreferenceOption_e.swDetailingNoOptionSpecified, false);             boolStatus  Part.Extension.SetUserPreferenceToggle((int)swUserPreferenceToggle_e.swSketchAddConstLineDiagonalType, (int)swUserPreferenceOption_e.swDetailingNoOptionSpecified, true);             object vSkLines  null;             vSkLines  Part.SketchManager.CreateCornerRectangle(-0.0555749908365768, 0.0329075527136081, 0, 0.0478203409524033, -0.0317145296545045, 0);             Part.ClearSelection2(true);             Part.SketchManager.InsertSketch(true);             Part.ShowNamedView2(*Trimetric, 8);             Part.SketchManager.InsertSketch(true);             Part.ClearSelection2(true);             boolStatus  Part.Extension.SelectByID2(Sketch1, SKETCH, 0, 0, 0, false, 4, null, 0);               object myFeature  null;             myFeature  Part.FeatureManager.FeatureExtrusion2(true, false, false, 0, 0, 0.00254, 0.00254, false, false, false,             false, 0.0174532925199433, 0.0174532925199433, false, false, false, false, true, true, true,             0, 0, false);               boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0447337592343047, 0.0328467250718631, 0.00258132540182032, false, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0556265649287866, 0.0156695101210289, 0.0025672149453726, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0140113588298618, -0.0317157034173761, 0.00254079743683633, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, 0.047780958393389, -0.00542256709667299, 0.00256078163948814, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, FACE, 0.0478203409524554, -0.00305747564971171, 0.000546558985774936, true, 1, null, 0);               Part.InsertRadiateSurface(0.0254, false, false);               swSelMgr  (SelectionMgr)Part.SelectionManager;             swSelData  swSelMgr.CreateSelectData();               boolStatus  Part.Extension.SelectByID2(Surface-Radiate1, REFSURFACE, 0, 0, 0, false, 0, null, 0);               swFeat  (Feature)swSelMgr.GetSelectedObject6(1, -1);             swRadiate  (SurfaceRadiateFeatureData)swFeat.GetDefinition();               // Get radiate surface data             Debug.Print(File    Part.GetPathName());             Debug.Print(    swFeat.Name);             Debug.Print(    Distance:   swRadiate.Distance * 1000.0   mm);             Debug.Print(    Flip?   swRadiate.Flip);             Debug.Print(    Propagate to tangent faces?   swRadiate.PropagateToTangentFaces);               // Roll back to get direction reference and radiated edges             boolStatus  swRadiate.AccessSelections(Part, null);             swRadDirEnt  (Entity)swRadiate.DirectionReference;             Part.ClearSelection2(true);               vRadEnt  (object[])swRadiate.RadiatedEntities;                 Debug.Print(Type as defined in swSelectType_e:);             for (i  0; i  swRadiate.GetRadiatedEntitiesCount() - 1; i)             {                 swEnt  (Entity)vRadEnt[i];                 Debug.Print(    Radiated Entity(  i  )    swEnt.GetType());               }               swRadiate.ReleaseSelectionAccess();               Part.ClearSelection2(true);             boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0150796523155918, 0.0330635737250304, 0.0277193529692568, false, 1, null, 0);     boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0556924155575302, -0.00146678127401856, 0.0280574247206573, true, 1, null, 0);     boolStatus  Part.Extension.SelectByID2(, EDGE, -0.00737846281163002, -0.0317262656324715, 0.0279565971788429, true, 1, null, 0);     boolStatus  Part.Extension.SelectByID2(, EDGE, 0.047950275020753, 0.00971418585908168, 0.0278100659315328, true, 1, null, 0);       boolStatus  Part.InsertPlanarRefSurface();     Part.ClearSelection2(true);       boolStatus  Part.Extension.SelectByID2(Surface-Plane1, REFSURFACE, 0, 0, 0, false, 0, null, 0);       // Roll back to get the planar surface bounding edges     swFeat  (Feature)swSelMgr.GetSelectedObject6(1, -1);     swPlane  (SurfacePlanarFeatureData)swFeat.GetDefinition();       boolStatus  swPlane.AccessSelections(Part, null);     vBoundEnt  (object[])swPlane.BoundingEntities;       Debug.Print(Types of planar surface bounding entities as defined in swSelectType_e:);       for (i  0; i  swPlane.GetBoundingEntitiesCount() - 1; i) { swEnt  (Entity)vBoundEnt[i]; Debug.Print(    Bounding entity(  i  )    swEnt.GetType());       }       swPlane.ReleaseSelectionAccess();           }           /// summary         /// The SldWorks swApp variable is pre-assigned for you.         /// /summary           public SldWorks swApp;       } } 2第二个为ISurfaceRadiateFeatureData这个API的含义为允许访问表面辐射功能下面是官方的具体解释 下面是官方使用的例子 This example shows how to create a radiate surface feature. //---------------------------------------------------------------------------- // Preconditions: // 1. Verify that the specified document template exists. // 2. Open an Immediate window. // // Postconditions: // 1. Creates a new model document with a feature extrusion. // 2. Creates Boss-Extrude1 and Surface-Radiate1 in the graphics area and //    FeatureManager design tree. // 3. Inspect the Immediate window. //---------------------------------------------------------------------------- using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; using System.Runtime.InteropServices;   namespace CreateSurfRadiateFeat_CSharp.csproj {     partial class SolidWorksMacro     {           ModelDoc2 Part;         SelectionMgr swSelMgr;         SelectData swSelData;         SurfaceRadiateFeatureData swRadiate;         Feature swFeat;         Entity swEnt;         object[] vRadEnt;         Entity swRadDirEnt;         int i;           bool boolStatus;           public void Main()         {             Part  (ModelDoc2)swApp.NewDocument(C:\\ProgramData\\SolidWorks\\SOLIDWORKS 2015\\templates\\Part.prtdot, 0, 0, 0);             Part  (ModelDoc2)swApp.ActiveDoc;               boolStatus  Part.Extension.SelectByID2(Front Plane, PLANE, -0.0448901407839529, 0.0279954694016864, 0.00466820674117181, false, 0, null, 0);             Part.SketchManager.InsertSketch(true);             Part.ClearSelection2(true);             boolStatus  Part.Extension.SetUserPreferenceToggle((int)swUserPreferenceToggle_e.swSketchAddConstToRectEntity, (int)swUserPreferenceOption_e.swDetailingNoOptionSpecified, false);             boolStatus  Part.Extension.SetUserPreferenceToggle((int)swUserPreferenceToggle_e.swSketchAddConstLineDiagonalType, (int)swUserPreferenceOption_e.swDetailingNoOptionSpecified, true);             object vSkLines  null;             vSkLines  Part.SketchManager.CreateCornerRectangle(-0.0555749908365768, 0.0329075527136081, 0, 0.0478203409524033, -0.0317145296545045, 0);             Part.ClearSelection2(true);             Part.SketchManager.InsertSketch(true);             Part.ShowNamedView2(*Trimetric, 8);             Part.SketchManager.InsertSketch(true);             Part.ClearSelection2(true);             boolStatus  Part.Extension.SelectByID2(Sketch1, SKETCH, 0, 0, 0, false, 4, null, 0);               object myFeature  null;             myFeature  Part.FeatureManager.FeatureExtrusion2(true, false, false, 0, 0, 0.00254, 0.00254, false, false, false,             false, 0.0174532925199433, 0.0174532925199433, false, false, false, false, true, true, true,             0, 0, false);               boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0447337592343047, 0.0328467250718631, 0.00258132540182032, false, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0556265649287866, 0.0156695101210289, 0.0025672149453726, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, -0.0140113588298618, -0.0317157034173761, 0.00254079743683633, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, EDGE, 0.047780958393389, -0.00542256709667299, 0.00256078163948814, true, 2, null, 0);             boolStatus  Part.Extension.SelectByID2(, FACE, 0.0478203409524554, -0.00305747564971171, 0.000546558985774936, true, 1, null, 0);               Part.InsertRadiateSurface(0.0254, false, false);               swSelMgr  (SelectionMgr)Part.SelectionManager;             swSelData  swSelMgr.CreateSelectData();               boolStatus  Part.Extension.SelectByID2(Surface-Radiate1, REFSURFACE, 0, 0, 0, false, 0, null, 0);               swFeat  (Feature)swSelMgr.GetSelectedObject6(1, -1);             swRadiate  (SurfaceRadiateFeatureData)swFeat.GetDefinition();               // Get radiate surface data             Debug.Print(File    Part.GetPathName());             Debug.Print(    swFeat.Name);             Debug.Print(    Distance:   swRadiate.Distance * 1000.0   mm);             Debug.Print(    Flip?   swRadiate.Flip);             Debug.Print(    Propagate to tangent faces?   swRadiate.PropagateToTangentFaces);               // Roll back to get direction reference and radiated edges             boolStatus  swRadiate.AccessSelections(Part, null);             swRadDirEnt  (Entity)swRadiate.DirectionReference;             Part.ClearSelection2(true);               vRadEnt  (object[])swRadiate.RadiatedEntities;                 Debug.Print(Type as defined in swSelectType_e:);             for (i  0; i  swRadiate.GetRadiatedEntitiesCount() - 1; i)             {                 swEnt  (Entity)vRadEnt[i];                 Debug.Print(    Radiated Entity(  i  )    swEnt.GetType());               }               swRadiate.ReleaseSelectionAccess();             }           /// summary         /// The SldWorks swApp variable is pre-assigned for you.         /// /summary           public SldWorks swApp;       } } 3第三个为ISurfaceTrimFeatureData这个API的含义为允许访问表面修剪功能下面是官方具体解释 本篇文章要介绍的就是这么多我们下篇文章再见。
http://www.pierceye.com/news/720590/

相关文章:

  • 服务器上网站建设用什么搭建个人网站
  • 网站设计排版怎么做wordpress添加媒体
  • 网站服务器镜像外协加工网最新订单
  • 做网站要准备的资料广州响应式网站
  • 徐州网站建设方案维护wordpress主页访客记录
  • 西安网站优化招聘网多个网站 备案吗
  • 宣威网站wordpress 园林模板
  • 宁夏政务大厅城乡建设厅口网站怎么用抓爬工具做网站
  • 电影网站怎么建设深圳企业营销型网站
  • 天津工程建设网官方网站wordpress 静态化插件
  • 洛阳公司青峰做的企业网站设计本app
  • 宁波网站建设设计高效的设计公司
  • c2c网站架构免费推广网站工具
  • 网站建设案例基本流程图咨询公司名字大全
  • 成功的电子商务网站设计律师推广网站排名
  • 东莞桥头网站建设合肥商城网站建设
  • 做网站的准备什么合肥制作网页设计
  • 医院门户网站建设规划柳州建设厅官方网站
  • 公司建网站怎么建做网站的公司都很小吗
  • 手机cms建站系统重庆怎么站seo
  • 益阳建设局网站网站 设计 趋势
  • 奉贤网站建设网站制作金融企业如何做好网络推广
  • 范湖网站建设团队建设银行激活网站
  • 旅游网站开发网站设计报告书邢台旅游景点大全排名 免费
  • 如何创建div做网站推荐佛山伦教网站设计
  • 建设电子商务网站前的市场分析网站后台ftp
  • 华丽的网站模板律所网站建设
  • 网站 管理系统搜索关键词的方法
  • 网站桥页也叫设计班级网站建设
  • 安庆网站建设工作室方维网络科技有限公司