-1

I want to create equipment from predefined shape in autocad plant 3d. I retrieve shape and related parameters from attached Code.

            using (EquipmentHelper eqHelper = new EquipmentHelper())
            {                    
                PromptEntityResult res = ed.GetEntity("\nSelect equipment entity: ");
                ObjectId eqId = res.ObjectId;;
                EquipmentType eq = eqHelper.RetrieveEquipmentFromInstance(eqId);
                foreach (CategoryInfo equipmentComponent in eq.Categories)
                {              
                    ed.WriteMessage("\n" + equipmentComponent.DisplayName);
                    foreach (ParameterInfo item in equipmentComponent.Parameters)
                    {
                        ed.WriteMessage("\n\t" + item.Name + ";" + item.Value);
                    }                        
                }
             }
Reza
  • 11
  • 3

1 Answers1

0

You'll probably need a Custom Python Script for this, check this tutorial: Custom Python Scripts for AutoCAD Plant 3D – Part 1 (and follow the subsequent parts)

Augusto Goncalves
  • 8,493
  • 2
  • 17
  • 44