当前位置:网站首页>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;
}
}
}边栏推荐
- ByteDance Android interview, summary of knowledge points + analysis of interview questions
- Customer case | China law network, through observing the cloud, greatly shortens the time of fault location
- NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?
- [开源] .Net ORM 访问 Firebird 数据库
- Win11时间怎么显示星期几?Win11怎么显示今天周几?
- Pre sale 179000, hengchi 5 can fire? Product power online depends on how it is sold
- 谈谈制造企业如何制定敏捷的数字化转型策略
- Preparing for the interview and sharing experience
- Jerry's configuration of TWS cross pairing [article]
- Revit secondary development - collision detection
猜你喜欢

How does win11 unblock the keyboard? Method of unlocking keyboard in win11

The latest Android interview collection, Android video extraction audio

PKPM 2020 software installation package download and installation tutorial

The strongest installation of the twin tower model, Google is playing "antique" again?
![[azure microservice service fabric] how to transfer seed nodes in the service fabric cluster](/img/b6/e5d525d9c7c28f6ef04c3f59b40eb3.png)
[azure microservice service fabric] how to transfer seed nodes in the service fabric cluster

Kirin Xin'an operating system derivative solution | storage multipath management system, effectively improving the reliability of data transmission

ByteDance Android interview, summary of knowledge points + analysis of interview questions

Win11U盘不显示怎么办?Win11插U盘没反应的解决方法

Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?

What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
随机推荐
648. Word replacement
Record layoutrebuild Forcerebuildlayoutimmediate does not take effect
What if the win11u disk does not display? Solution to failure of win11 plug-in USB flash disk
TCP/IP 协议栈
Get the week start time and week end time of the current date
Jerry's about TWS pairing mode configuration [chapter]
What is the difference between the three values of null Nan undefined in JS
Use blocconsumer to build responsive components and monitor status at the same time
vite Unrestricted file system access to
Node:504 error reporting
UWA问答精选
The latest Android interview collection, Android video extraction audio
使用 BlocConsumer 同时构建响应式组件和监听状态
Jerry's test box configuration channel [chapter]
【colmap】稀疏重建转为MVSNet格式输入
ByteDance senior engineer interview, easy to get started, fluent
[azure microservice service fabric] the service fabric cluster hangs up because the certificate expires (the upgrade cannot be completed, and the node is unavailable)
强化学习-学习笔记9 | Multi-Step-TD-Target
谈谈制造企业如何制定敏捷的数字化转型策略
Win11时间怎么显示星期几?Win11怎么显示今天周几?