You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Forge设计自动化中AEC程序集与AutoCAD引擎使用的技术问询

Can I use AEC assemblies in Forge Design Automation's AutoCAD engine environment?

Great question! The short answer is yes—you absolutely can use AEC-related assemblies like Autodesk.Aec.DatabaseServices and Autodesk.Aec.PropertyData.DatabaseServices in the AutoCAD engine environment of Forge Design Automation to access property set data. But there are a few critical things to keep in mind to make this work smoothly:

  • Include required AEC assemblies in your work package: The base AutoCAD engine in Design Automation doesn’t ship with AEC assemblies by default (these are typically part of AutoCAD Architecture/MEP installations). You’ll need to package the necessary .dll files (like Autodesk.Aec.DatabaseServices.dll and Autodesk.Aec.PropertyData.DatabaseServices.dll) into your activity’s package so the runtime environment can load them.
  • Namespace references work as expected: Your code’s using statements are perfectly valid and will function just like they do in a desktop AEC AutoCAD environment:
    using AecDb = Autodesk.Aec.DatabaseServices;
    using AecPropDb = Autodesk.Aec.PropertyData.DatabaseServices;
    
  • Account for the headless environment: Since Design Automation runs in a headless (no UI) context, make sure all your property set operations are fully automated. Avoid any code that relies on user input or UI interactions—all file openings, data traversals, reads/writes should be handled programmatically.
  • Ensure version compatibility: Double-check that the version of your AEC assemblies matches the AutoCAD engine version specified in your Design Automation activity. Mismatched versions can lead to runtime errors or unexpected behavior.

A quick troubleshooting tip: If you run into assembly loading errors, verify that all dependent AEC .dlls are included in your package, and consider explicitly loading assemblies via Assembly.LoadFrom if the runtime can’t locate them automatically.

内容的提问来源于stack exchange,提问作者jorisjh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 07:31:25