用户登录
找回密码
立即注册
搜索
热搜: 视频教程
查看: 9600|回复: 3

帮忙看看,究竟应该怎样改

[复制链接]

13

主题

16

帖子

98

积分

注册会员

Rank: 2

积分
98
发表于 2017-3-23 22:19:48 | 显示全部楼层 |阅读模式
1.jpg 2.jpg 我就是想读取Revit里的一条钢筋直径参数,然后输出,但总是不行,那个钢筋直径的参数信息出不来,不知道哪里错了,请大神帮忙看看,该怎么改?
回复

使用道具 举报

3

主题

10

帖子

116

积分

注册会员

Rank: 2

积分
116
发表于 2017-3-24 11:40:53 | 显示全部楼层
请查阅Parameter 类 的API

另外提问的标题请注明是什么问题,让其他的论坛好友可以更快的检索信息
Public method AsDouble Provides access to the double precision number within the parameter.
Public method AsElementId Provides access to the Autodesk::Revit:B::ElementId^ stored within the parameter.
Public method AsInteger Provides access to the integer number within the parameter.
Public method AssociateWithGlobalParameter Associates this parameter with a global parameter in the same document.  
Public method AsString Provides access to the string contents of the parameter.
Public method AsValueString()()()() Get the parameter value as a string with units.
Public method AsValueString(FormatOptions) Get the parameter value as a string with units.
Public method CanBeAssociatedWithGlobalParameter Tests whether this parameter can be associated with the given global parameter.  
Public method CanBeAssociatedWithGlobalParameters Tests whether this parameter can be associated with any global parameter.  
Public method Dispose Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject.)
Public method DissociateFromGlobalParameter Dissociates this parameter from a global parameter.  
Public method Equals Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method GetAssociatedGlobalParameter Returns a global parameter, if any, currently associated with this parameter.  
Public method GetHashCode Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType Gets the Type of the current instance.
(Inherited from Object.)
Public method Set(Double) Sets the parameter to a new real number value.
Public method Set(Int32) Sets the parameter to a new integer value.
Public method Set(String) Sets the parameter to a new string of text.
Public method Set(ElementId) Sets the parameter to a new element id.
Public method SetValueString Set the parameter value according to the input string.
Public method ToString Returns a string that represents the current object.
(Inherited from Object.)
回复

使用道具 举报

13

主题

16

帖子

98

积分

注册会员

Rank: 2

积分
98
 楼主| 发表于 2017-3-25 11:12:00 | 显示全部楼层
ZFC 发表于 2017-3-24 11:40
请查阅Parameter 类 的API

另外提问的标题请注明是什么问题,让其他的论坛好友可以更快的检索信息

好的好的,谢谢
回复

使用道具 举报

0

主题

1

帖子

9

积分

新手上路

Rank: 1

积分
9
发表于 2018-4-3 10:59:48 | 显示全部楼层
改成MessageBox.Show(string.Format("钢筋的直径{0}",para.AsValueString()));
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

京ICP备17008402号-1  |  Archiver  |  手机版  |  小黑屋  |  橄榄山BIM论坛    

点击立刻咨询
快速回复 返回顶部 返回列表