当前位置:网站首页>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;
}
}
}
边栏推荐
- Revit secondary development - wall opening
- The difference between NPM uninstall and RM direct deletion
- Px4 autonomous flight
- How to turn on win11 game mode? How to turn on game mode in win11
- Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
- [开源] .Net ORM 访问 Firebird 数据库
- How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525
- 【Azure微服务 Service Fabric 】如何转移Service Fabric集群中的种子节点(Seed Node)
- Matplotlib drawing interface settings
- Relationship between URL and URI
猜你喜欢
Time standard library
谈谈制造企业如何制定敏捷的数字化转型策略
OpenGL configuration vs2019
Cannot find module 'xxx' or its corresponding type declaration
Embedded development: how to choose the right RTOS for the project?
Preparing for the interview and sharing experience
Why can't win11 display seconds? How to solve the problem that win11 time does not display seconds?
How to quickly check whether the opening area ratio of steel mesh conforms to ipc7525
大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?
The function is really powerful!
随机推荐
Overseas agent recommendation
Reinforcement learning - learning notes 9 | multi step TD target
[开源] .Net ORM 访问 Firebird 数据库
Typeorm automatically generates entity classes
Jerry's test box configuration channel [chapter]
Record a garbled code during servlet learning
使用 BlocConsumer 同时构建响应式组件和监听状态
Can I open a stock account directly online now? Is it safe?
[azure microservice service fabric] how to transfer seed nodes in the service fabric cluster
The strongest installation of the twin tower model, Google is playing "antique" again?
Pdf document signature Guide
Reinforcement learning - learning notes 9 | multi step TD target
Record problems fgui tween animation will be inexplicably killed
SAR影像质量评估
Crawler (17) - Interview (2) | crawler interview question bank
[开源] .Net ORM 访问 Firebird 数据库
The latest Android interview collection, Android video extraction audio
Firefox browser installation impression notes clipping
Two kinds of updates lost and Solutions
Jerry's configuration of TWS cross pairing [article]