打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
General Material Information | Search | Autodesk Knowledge Network
https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/Revit-API/files/GUID-F0C7BA6A-8C58-45B4-8639-1E08CBC6781D-htm.html
private void ReadMaterialProps(Document document, Material material){    ElementId strucAssetId = material.StructuralAssetId;    if (strucAssetId != ElementId.InvalidElementId)    {        PropertySetElement pse = document.GetElement(strucAssetId) asPropertySetElement;        if (pse != null)        {            StructuralAsset asset = pse.GetStructuralAsset();            // Check the material behavior and only read if Isotropic            if (asset.Behavior == StructuralBehavior.Isotropic)            {                // Get the class of material                StructuralAssetClass assetClass = asset.StructuralAssetClass; // Get other material properties                // Get other material properties                double poisson = asset.PoissonRatio.X;                double youngMod = asset.YoungModulus.X;                double thermCoeff = asset.ThermalExpansionCoefficient.X;                double unitweight = asset.Density;                double shearMod = asset.ShearModulus.X;                double dampingRatio = asset.DampingRatio;                if (assetClass == StructuralAssetClass.Metal)                {                    double dMinStress = asset.MinimumYieldStress;                }                elseif (assetClass == StructuralAssetClass.Concrete)                {                    double dConcComp = asset.ConcreteCompression;                }            }        }    }}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
unity3d meshBaker教程(四) 制作预置材质
PSE
PSE认证简介
SAP 物料凭证清单--MB51的配置(转)
【机考】F3科目考试重点,看完必过!
SAP各模块字段与表的对应关系
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服