- 
		
			- 
March 26, 2025 at 9:29 pmmhaas SubscriberUsing OpenTD, is there a way to edit multiple elements without using a for or foreach loop (which essentially edits them one at at time) when these elements are somehow grouped (either in a submodel, layer, domain, etc.)? I know it's possible to do this bulk editing within Thermal Desktop, and I'm looking at how to do this efficiently in C#. 
 From the Getting Started manual, I've seen this done with a foreach loop:foreach (LinearQuad q in quads) 
 {
 q.CondSubmodel = submodel;
 q.TopThickness = 0.01;
 q.Update();
 }
 Additionally, in the code I'm writing, what I'm interested in is similarly implemented.
 myElementList.ForEach(e =>Â
 {
 e.ThermoMaterial = ThermoMaterialName;
 e.Layer = Layer.Name;
 e.Update();
 }
 However, this method takes too long for my application and I'm hoping there's a way to shorten the element editing time using some type of group editing.
 Thank you!
- 
March 28, 2025 at 10:52 pmDoug Bell Ansys EmployeeEven with the array-based code in Fortran, each element is individually edited. It just does the loop internally: fewer lines of code to compile and the most efficient method of looping (this would be a bigger benefit with multi-dimensional arrays). Unfortunately, there isn't a better option that we know of. Someone in the community might be able to prove us wrong (which would be quite welcome). 
 
- 
- You must be logged in to reply to this topic.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
- 
                        
                        4167
- 
                        
                        1487
- 
                        
                        1358
- 
                        
                        1189
- 
                        
                        1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
 You are navigating away from the AIS Discovery experience
You are navigating away from the AIS Discovery experience 
               
          