当前位置:网站首页>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;
}
}
}边栏推荐
- Win11游戏模式怎么开启?Win11开启游戏模式的方法
- Use json Stringify() to realize deep copy, be careful, there may be a huge hole
- Preparing for the interview and sharing experience
- Jerry's manual matching method [chapter]
- Jerry's about TWS pairing mode configuration [chapter]
- Vs custom template - take the custom class template as an example
- #DAYU200体验官#MPPT光伏发电项目 DAYU200、Hi3861、华为云IotDA
- DNS series (I): why does the updated DNS record not take effect?
- 戴森官方直营店免费造型服务现已开放预约 先锋科技诠释护发造型理念,助力消费者解锁多元闪耀造型
- Typeorm automatically generates entity classes
猜你喜欢

NVR hard disk video recorder is connected to easycvr through the national standard gb28181 protocol. What is the reason why the device channel information is not displayed?

Index summary (assault version)

NVR硬盤錄像機通過國標GB28181協議接入EasyCVR,設備通道信息不顯示是什麼原因?

Implementation method of data platform landing
![Jerry's about TWS pairing mode configuration [chapter]](/img/fd/dd1e252617d30dd7147dbab25de5b4.png)
Jerry's about TWS pairing mode configuration [chapter]

Reinforcement learning - learning notes 9 | multi step TD target

为什么Win11不能显示秒数?Win11时间不显示秒怎么解决?

How does win11 time display the day of the week? How does win11 display the day of the week today?

嵌入式开发:如何为项目选择合适的RTOS?

Reptile combat (VII): pictures of the king of reptiles' heroes
随机推荐
【colmap】稀疏重建转为MVSNet格式输入
[JDBC Part 1] overview, get connection, CRUD
[开源] .Net ORM 访问 Firebird 数据库
The free styling service of Dyson's official direct store is now open for appointment. Pioneer Technology interprets the styling concept of hair care and helps consumers unlock diversified and shiny s
Tcp/ip protocol stack
Win11时间怎么显示星期几?Win11怎么显示今天周几?
Have you ever been confused? Once a test / development programmer, ignorant gadget C bird upgrade
How to close eslint related rules
Jerry's power on automatic pairing [chapter]
Jerry's manual matching method [chapter]
OpenGL configuration vs2019
null == undefined
Reinforcement learning - learning notes 9 | multi step TD target
Revit secondary development - collision detection
PDF文档签名指南
Reinforcement learning - learning notes 9 | multi step TD target
海外代理推荐
100million single men and women "online dating", supporting 13billion IPOs
TCP/IP 协议栈
Add get disabled for RC form