当前位置:网站首页>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;
}
}
}
边栏推荐
- EasyCVR配置中心录像计划页面调整分辨率时的显示优化
- Remember aximp once Use of exe tool
- [开源] .Net ORM 访问 Firebird 数据库
- 【Azure微服务 Service Fabric 】在SF节点中开启Performance Monitor及设置抓取进程的方式
- Revit secondary development - project file to family file
- 强化学习-学习笔记9 | Multi-Step-TD-Target
- NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?
- Reptile combat (VII): pictures of the king of reptiles' heroes
- Pdf document signature Guide
- An in-depth understanding of fp/fn/precision/recall
猜你喜欢
Jerry's manual matching method [chapter]
Matplotlib快速入门
建立自己的网站(18)
L2: current situation, prospects and pain points of ZK Rollup
Overseas agent recommendation
Win11如何解禁键盘?Win11解禁键盘的方法
Index summary (assault version)
100million single men and women "online dating", supporting 13billion IPOs
谈谈制造企业如何制定敏捷的数字化转型策略
Latest Android advanced interview questions summary, Android interview questions and answers
随机推荐
Reinforcement learning - learning notes 9 | multi step TD target
How does win11 unblock the keyboard? Method of unlocking keyboard in win11
Song list 11111
648. Word replacement
戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
[open source] Net ORM accessing Firebird database
100million single men and women "online dating", supporting 13billion IPOs
Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
[colmap] sparse reconstruction is converted to mvsnet format input
【Azure微服务 Service Fabric 】因证书过期导致Service Fabric集群挂掉(升级无法完成,节点不可用)
Jerry's key to initiate pairing [chapter]
Talk about relational database and serverless
Jerry's about TWS channel configuration [chapter]
Which futures company is the safest to open a futures account?
The difference between NPM uninstall and RM direct deletion
OpenGL jobs - shaders
Which financial products will yield high returns in 2022?
DNS series (I): why does the updated DNS record not take effect?
三元表达式、各生成式、匿名函数
Have you ever been confused? Once a test / development programmer, ignorant gadget C bird upgrade