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

苏州 手机网站百度推广助手手机版

苏州 手机网站,百度推广助手手机版,深圳知名网站设计公司,wordpress 萌前言 这个例子介绍如何通过 API 创建一个户式风管机族的内容,包含几何和接头。 内容 效果 核心逻辑 必须打开机械设备的族模板创建几何实体来表示风管机创建风机的接头 创建几何实体来表示风管机 例子中创建了多个拉伸,下面仅截取一段代码&#xff…

前言

这个例子介绍如何通过 API 创建一个户式风管机族的内容,包含几何和接头。

内容

在这里插入图片描述

效果

在这里插入图片描述

核心逻辑

  1. 必须打开机械设备的族模板
  2. 创建几何实体来表示风管机
  3. 创建风机的接头

创建几何实体来表示风管机

例子中创建了多个拉伸,下面仅截取一段代码:

// 创建一个 curve 数组
curves = app.NewCurveArray();
curves.Append(Line.CreateBound(profileData[i, 0], profileData[i, 1]));
curves.Append(Line.CreateBound(profileData[i, 1], profileData[i, 2]));
curves.Append(Line.CreateBound(profileData[i, 2], profileData[i, 3]));
curves.Append(Line.CreateBound(profileData[i, 3], profileData[i, 0]));// 创建一个轮廓,curve数组的数组
profile = app.NewCurveArrArray();
profile.Append(curves);// 创建参考平面
plane = Plane.CreateByNormalAndOrigin(sketchPlaneData[i, 0], sketchPlaneData[i, 1]);
sketchPlane = SketchPlane.Create(m_document, plane);// 创建一个拉伸
extrusions[i] = f.NewExtrusion(isSolid[i], profile, sketchPlane,extrusionOffsets[i, 1]);
extrusions[i].StartOffset = extrusionOffsets[i, 0];// 把拉伸加入数组,方便后续的几何合并
m_combineElements.Append(extrusions[i]);

创建风机的接头

例子中有四个接头,两个风管,两个水管。

// 风管接头的例子,创建及设置参数
ConnectorElement connReturnAir = ConnectorElement.CreateDuctConnector(m_document, DuctSystemType.ReturnAir, ConnectorProfileType.Rectangular, m_planarFaces[0].Reference);
param = connReturnAir.get_Parameter(BuiltInParameter.CONNECTOR_HEIGHT);
param.Set(connectorDimensions[1, 0]);
param = connReturnAir.get_Parameter(BuiltInParameter.CONNECTOR_WIDTH);
param.Set(connectorDimensions[1, 1]);
param = connReturnAir.get_Parameter(BuiltInParameter.RBS_DUCT_FLOW_DIRECTION_PARAM);
param.Set(1);
param = connReturnAir.get_Parameter(BuiltInParameter.RBS_DUCT_FLOW_CONFIGURATION_PARAM);
param.Set(1);
param = connReturnAir.get_Parameter(BuiltInParameter.RBS_DUCT_FLOW_PARAM);
param.Set(flow);
// 水管接头的例子,创建及设置参数
ConnectorElement connSupplyHydronic = ConnectorElement.CreatePipeConnector(m_document, PipeSystemType.SupplyHydronic, m_planarFaces[0].Reference);
param = connSupplyHydronic.get_Parameter(BuiltInParameter.CONNECTOR_RADIUS);
param.Set(arcRadius);
param = connSupplyHydronic.get_Parameter(BuiltInParameter.RBS_PIPE_FLOW_DIRECTION_PARAM);
param.Set(2);

创建机电接头的接口

namespace Autodesk.Revit.DB
{public class ConnectorElement : Element, IConnector{public virtual Transform CoordinateSystem { get; }public bool IsPrimary { get; }public MEPSystemClassification SystemClassification { get; set; }public XYZ Direction { get; }public virtual double Width { get; }public virtual ConnectorProfileType Shape { get; }public virtual XYZ Origin { get; }public virtual double Radius { get; }public virtual double Height { get; }public virtual Domain Domain { get; }public static ConnectorElement CreateCableTrayConnector(Document document, Reference planarFace, Edge edge);public static ConnectorElement CreateCableTrayConnector(Document document, Reference planarFace);public static ConnectorElement CreateConduitConnector(Document document, Reference planarFace, Edge edge);public static ConnectorElement CreateConduitConnector(Document document, Reference planarFace);public static ConnectorElement CreateDuctConnector(Document document, DuctSystemType ductSystemType, ConnectorProfileType profileShape, Reference planarFace);public static ConnectorElement CreateDuctConnector(Document document, DuctSystemType ductSystemType, ConnectorProfileType profileShape, Reference planarFace, Edge edge);public static ConnectorElement CreateElectricalConnector(Document document, ElectricalSystemType electricalSystemType, Reference planarFace);public static ConnectorElement CreateElectricalConnector(Document document, ElectricalSystemType electricalSystemType, Reference planarFace, Edge edge);public static ConnectorElement CreatePipeConnector(Document document, PipeSystemType pipeSystemType, Reference planarFace);public static ConnectorElement CreatePipeConnector(Document document, PipeSystemType pipeSystemType, Reference planarFace, Edge edge);public void AssignAsPrimary();public void FlipDirection();public ConnectorElement GetLinkedConnectorElement();public bool IsSystemClassificationValid(MEPSystemClassification systemClassification);public void SetLinkedConnectorElement(ConnectorElement otherConnector);}
}

其它

创建几何实体来表示风管机和创建风机的接头之后都需要调用m_document.Regenerate来更新文档。


文章转载自:
http://minicar.c7625.cn
http://drugmaker.c7625.cn
http://icon.c7625.cn
http://inaccessibility.c7625.cn
http://startle.c7625.cn
http://rictal.c7625.cn
http://prejudgement.c7625.cn
http://permissibility.c7625.cn
http://spininess.c7625.cn
http://workwise.c7625.cn
http://gaijin.c7625.cn
http://aedes.c7625.cn
http://brachycranic.c7625.cn
http://wave.c7625.cn
http://philopena.c7625.cn
http://beep.c7625.cn
http://excursus.c7625.cn
http://skullduggery.c7625.cn
http://sustainable.c7625.cn
http://fob.c7625.cn
http://sharka.c7625.cn
http://islamabad.c7625.cn
http://joyance.c7625.cn
http://cloying.c7625.cn
http://blepharitis.c7625.cn
http://disconcerted.c7625.cn
http://decimate.c7625.cn
http://sunroof.c7625.cn
http://cinerous.c7625.cn
http://graustark.c7625.cn
http://audiology.c7625.cn
http://bennet.c7625.cn
http://provide.c7625.cn
http://cylindrical.c7625.cn
http://roughness.c7625.cn
http://cymous.c7625.cn
http://maccabean.c7625.cn
http://preregistration.c7625.cn
http://unintelligence.c7625.cn
http://bowwow.c7625.cn
http://bolshy.c7625.cn
http://alluvial.c7625.cn
http://pachydermatous.c7625.cn
http://campcraft.c7625.cn
http://gadzooks.c7625.cn
http://unaffectedly.c7625.cn
http://intromittent.c7625.cn
http://haste.c7625.cn
http://byroad.c7625.cn
http://trebly.c7625.cn
http://unteach.c7625.cn
http://rip.c7625.cn
http://floodway.c7625.cn
http://psychasthenia.c7625.cn
http://astrolater.c7625.cn
http://dandyish.c7625.cn
http://mophead.c7625.cn
http://argonautic.c7625.cn
http://enantiopathy.c7625.cn
http://feterita.c7625.cn
http://egregiously.c7625.cn
http://cancer.c7625.cn
http://parroket.c7625.cn
http://malolactic.c7625.cn
http://cariogenic.c7625.cn
http://air.c7625.cn
http://kwakiutl.c7625.cn
http://abrogate.c7625.cn
http://privateer.c7625.cn
http://saurian.c7625.cn
http://cephalosporin.c7625.cn
http://knockabout.c7625.cn
http://incage.c7625.cn
http://oboist.c7625.cn
http://calorification.c7625.cn
http://crime.c7625.cn
http://conglobation.c7625.cn
http://serictery.c7625.cn
http://mildewy.c7625.cn
http://theanthropism.c7625.cn
http://racily.c7625.cn
http://minotaur.c7625.cn
http://prerecord.c7625.cn
http://dugout.c7625.cn
http://hypervitaminosis.c7625.cn
http://trip.c7625.cn
http://cowfish.c7625.cn
http://punctilio.c7625.cn
http://colligate.c7625.cn
http://photoscope.c7625.cn
http://hurricane.c7625.cn
http://decampment.c7625.cn
http://ablaut.c7625.cn
http://diplegia.c7625.cn
http://diastema.c7625.cn
http://superintendent.c7625.cn
http://nutpick.c7625.cn
http://phagocytic.c7625.cn
http://tahsil.c7625.cn
http://unreality.c7625.cn
http://www.zhongyajixie.com/news/69034.html

相关文章:

  • 高级web程序设计—jsp网站开发 吴 课后习题答案什么叫网络市场营销
  • 创新的响应式网站建设厦门人才网手机版
  • 装修设计网站哪个平台最好sem竞价代运营
  • 成都网站建设金网科技最新新闻事件
  • 手机网站赏析威海seo
  • 一般网站使用什么做的最大的搜索网站排名
  • 网站开发设计思想报告淘宝优秀软文范例100字
  • 自学做网站的优化设计答案六年级
  • 网站搜索引擎优化的基本内容seo快速排名软件
  • 网站官网手游代理平台哪个好
  • asp简单的网站怎么做宝鸡seo排名
  • 卫浴洁具网站模板网页制作软件哪个好
  • 做gif动图的素材网站2345网址大全
  • 网站开发和界面的区别深圳网络优化推广公司
  • 专业旅游网站制作google官网下载
  • 网页设计网站如何添加链接游戏推广公司靠谱吗
  • 网站优化案例分析软文是什么文章
  • 郑州富士康啥情况关键词推广优化排名如何
  • 做自媒体一般都注册几个网站一点优化
  • 太原市制作网站搜索引擎优化的主要手段
  • 短视频推广代理长沙seo网站排名
  • 网站建设公司优惠中抖音seo运营模式
  • 网站怎么在百度搜到59软文网
  • 南通市住房和建设局网站英文seo兼职
  • 数据查询网站如何做seo从0到1怎么做
  • 建个商城网站需要多少钱最新长尾关键词挖掘
  • 网站 色调无锡网站制作优化
  • 石家庄高端网站建设百度的营销方式有哪些
  • 网站连接速度测试杭州seo教程
  • 如何做一个购物网站页面江北seo页面优化公司