RevitAPI: Revit 2016调用NewFamilyIntance的时候抛出异常The symbol is not active
来源:互联网 发布:阿里云code 使用教程 编辑:程序博客网 时间:2024/05/22 12:22
有时候,Revit 2016调用NewFamilyIntance的时候抛出异常The symbol is not active. Parameter name: symbol.
这个问题解决办法是,在调用NewFamilyInstance之前,需要先判断FamilySymbol.IsActive,如果返回false的话,就要调用FamilySymbol.Activate(),把这个类型激活。
原因:2016为了提升性能,把没有用到的Symbol就不加载。
if (!symbol.IsActive){ symbol.Activate();}instance = RevitDoc.Create.NewFamilyInstance( new XYZ(0, 0, 0), symbol, level, StructuralType.NonStructural);
0 0
- RevitAPI: Revit 2016调用NewFamilyIntance的时候抛出异常The symbol is not active
- RevitAPI: 调用NewExtrusion的时候抛出异常 One of the conditions for the inputs was not satisfied
- revit二次开发碰到的问题(1)--the symbol is not active
- RevitAPI: Revit 2016里的Python代码例子Sample code
- release版本抛出异常 Current active device is NULL 原因
- spring整合hibernate的时候使用session的时候报:is not valid without active transaction
- RevitAPI: Rebar.CreateFromCurves抛出异常: Unable to create a RebarShape based on the given curves
- The transaction is not active!解决方案
- 解决Scope 'request' is not active for the current thread异常
- 重启linux网络的时候出现 this device is not active的解决办法
- 线程最后退出的时候抛出异常
- 解决load,get,save 等is not valid without active transaction异常的原因。
- 解决load,get,save 等is not valid without active transaction异常的原因。
- 解决load,get,save 等is not valid without active transaction异常的原因
- RevitAPI: 注意Revit 2016事件注册和注销行为的改变
- RevitAPI: 注意Revit 2016事件注册和注销行为的改变
- createQuery is not valid without active transaction异常
- 关于Scope 'session' is not active for the current thread的问题
- ubuntu14.04安装不识别显示器
- zend studio import项目
- 3_EF环境搭建以及数据访问
- VS 中的一个BUG?求大神帮我解答下。
- android 文件读取(assets)
- RevitAPI: Revit 2016调用NewFamilyIntance的时候抛出异常The symbol is not active
- Linux抓包工具tcpdump详解
- chrome 模拟微信内置浏览器
- html5+js实现图片预览
- 图片截取一部分
- mfc读取中文乱码
- 案例分享(一)——如何提高产品的用户体验
- 学习C语言,困难吗?
- 提升SQLite数据插入效率低、速度慢的方法