当前位置:网站首页>Revit secondary development - get the project file path
Revit secondary development - get the project file path
2022-07-07 22:23:00 【Hey, hey, hey, hey, hey】
Cannot pass when detaching and opening items doc.PathName Get the project path ,
Only in DocumentOpening Obtained from the event .
Public class Menu : IExternalApplication
{
public Result OnStartup(UIControlledApplication application)
{
application.ControlledApplication.DocumentOpening += ControlledApplication_DocumentOpening;
return Result.Succeeded;
}
void ControlledApplication_DocumentOpening(object sender, Autodesk.Revit.DB.Events.DocumentOpeningEventArgs e)
{
if(!e.IsCancelled())
{
string pathName = e.PathName;
}
}
}
边栏推荐
- The latest Android interview collection, Android video extraction audio
- Antd date component appears in English
- Time standard library
- 客户案例|华律网,通过观测云大幅缩短故障定位时间
- Paint basic graphics with custompaint
- 【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
- VTOL in Px4_ att_ Control source code analysis [supplement]
- Kirin Xin'an operating system derivative solution | storage multipath management system, effectively improving the reliability of data transmission
- 使用 CustomPaint 绘制基本图形
- 谈谈制造企业如何制定敏捷的数字化转型策略
猜你喜欢
Embedded development: how to choose the right RTOS for the project?
How to realize the movement control of characters in horizontal game
PKPM 2020软件安装包下载及安装教程
Blender exchange group, welcome to the water group ~
[open source] Net ORM accessing Firebird database
Jerry's test box configuration channel [chapter]
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
null == undefined
How to turn on win11 game mode? How to turn on game mode in win11
#DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
随机推荐
Jerry's configuration of TWS cross pairing [article]
PKPM 2020软件安装包下载及安装教程
Win11游戏模式怎么开启?Win11开启游戏模式的方法
Revit secondary development - modify wall thickness
如何选择合适的自动化测试工具?
How to choose the appropriate automated testing tools?
Main functions of OS, Sys and random Standard Libraries
MIT6.S081-Lab9 FS [2021Fall]
【JDBC Part 1】概述、获取连接、CRUD
三元表达式、各生成式、匿名函数
[advanced MySQL] index details (I): index data page structure
Remember that a development is encountered in the pit of origin string sorting
Get the exact offset of the element
Ternary expressions, generative expressions, anonymous functions
OpenGL jobs - shaders
It's worth seeing. Interview sites and interview skills
【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
Revit secondary development - collision detection
OpeGL personal notes - lights
戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型