乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 112|回复: 3

[综合讨论] 大侠帮助先容下在族参数界说中,公式怎么用啊?

[复制链接]

15

主题

39

帖子

20

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
95
发表于 2010-10-12 15:06:25 | 显示全部楼层 |阅读模式
大侠帮助先容下在族参数界说中,公式怎么用啊?把资助粘贴过来也行,偶在资助里没有找到相干的内容,谢谢
回复

使用道具 举报

5

主题

135

帖子

130

银币

初来乍到

Rank: 1

铜币
26
发表于 2010-10-12 18:38:18 | 显示全部楼层
公式本身的应用其实比较简单,关键是在建模的时候自己要理清楚逻辑关系,为什么要用公式,为什么这么用公式要先理清楚。
对于公式本身,Revit中可以使用算术运算和三角函数运算;
Addition— +
Subtraction— -
Multiplication—*
Division—/
Exponentiation—^: x^y, x raised to the power of y
Logarithm—log
Square root—sqrt: sqrt(16)
Sine—sin
Cosine—cos
Tangent—tan
Arcsine—asin
Arccosine—acos
Arctangent—atan
e raised to an x power—exp
Absolute Value—abs
同时也可以运用条件语句,来做一些条件上的判断,贴一段英文的帮助吧;
A conditional statement uses this structure: IF (<condition>, <result-if-true>, <result-if-false>)

This means that the values entered for the parameter depend on whether the condition is satisfied (true) or not satisfied (false). If the condition is true, the software returns the true value. If the condition is false, it returns the false value.

Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters. You can use the following comparisons in a condition: <, >, =. You can also use Boolean operators with a conditional statement: AND, OR, NOT. Currently, <= and >= are not implemented. To express such a comparison, you can use a logical NOT. For example, a<=b can be entered as NOT(a>b).

The following are sample formulas that use conditional statements.

Simple IF: =IF (Length < 3000mm, 200mm, 300mm)

IF with a text parameter: =IF (Length > 35', “String1”, “String2”)

IF with logical AND: =IF ( AND (x = 1 , y = 2), 8 , 3 )

IF with logical OR: =IF ( OR ( A = 1 , B = 3 ) , 8 , 3 )

Embedded IF statements: =IF ( Length < 35' , 2' 6&quot; , IF ( Length < 45' , 3' , IF ( Length < 55' , 5' , 8' ) ) )

IF with Yes/No condition: =Length > 40 (Note that both the condition and the results are implied.)
回复

使用道具 举报

0

主题

43

帖子

43

银币

初来乍到

Rank: 1

铜币
0
发表于 2011-4-23 17:42:26 | 显示全部楼层
每天学习一点点,增强对软件的了解,谢谢你们的分享[s94]
回复

使用道具 举报

1

主题

36

帖子

34

银币

初来乍到

Rank: 1

铜币
10
发表于 2011-10-4 13:50:56 | 显示全部楼层
每天学习一点点,增强对软件的了解,谢谢你们的分享
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-4 09:09 , Processed in 0.768004 second(s), 60 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表