From 9119e2f5012a74d5519b39be44d9e7daa829f88b Mon Sep 17 00:00:00 2001 From: GCRA101 Date: Mon, 20 Jan 2025 18:35:38 +0000 Subject: [PATCH] Recognise distinction between openings and panels based on their objecttype number --- Etabs_Adapter/CRUD/Read/_Read.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Etabs_Adapter/CRUD/Read/_Read.cs b/Etabs_Adapter/CRUD/Read/_Read.cs index 5a516bce..7d8318f4 100644 --- a/Etabs_Adapter/CRUD/Read/_Read.cs +++ b/Etabs_Adapter/CRUD/Read/_Read.cs @@ -123,6 +123,18 @@ public Dictionary> SelectedElements() m_model.SelectObj.GetSelected(ref numItems, ref objectTypes, ref objectIds); + // Replace Panels' type numbers with Openings' type numbers + + for (int i=0; i> dict = objectTypes.Distinct().ToDictionary(x => x, x => new List()); for (int i = 0; i < numItems; i++) @@ -146,6 +158,8 @@ public Dictionary> SelectedElements() return null; case 7: // Link Object return typeof(RigidLink); + case 8: // Opening Object (not api-native) + return typeof(Opening); default: return null; }