Posts

Showing posts with the label Autodesk-forge

Fix: Accessing curtain wall panels properties in c# for autodesk design automation

 To access curtain wall panel properties in C# using Autodesk Design Automation for Revit (DA4R), you'll need to create a Revit add-in that can run in a headless environment, which is typical for design automation. Here's a basic outline of how you can access curtain wall panel properties: 1. **Set Up Your DA4R Environment:**        Ensure that you have set up your Autodesk Forge account and configured your DA4R environment. You'll need to have the necessary credentials, Forge App, and the AppBundle set up to run your Revit add-in. 2. **Create a Revit Add-in:**    Develop a Revit add-in using the Autodesk Revit API in C# to access curtain wall panel properties. Here's an example of how to access panel properties:    ```csharp    using Autodesk.Revit.DB;    using Autodesk.Revit.UI;    public class CurtainWallPanelProperties    {        public void GetPanelProperties(Document doc)        {            FilteredElementCollector collector = new FilteredElementCollector(doc);