IStructuralAnalysisModelQuery |
[This is preliminary documentation and is subject to change.]
See IStructuralAnalysisModelQuery for technical documentation
This service allows you to query a model for objects using the type of object
This page was last updated 2021-12-03
AnalysisDataModelBootstrapper bootstrapper = new AnalysisDataModelBootstrapper(); using (IScopedServiceProvider scope = bootstrapper.CreateThreadedScope()) { IStructuralAnalysisModelQuery queryService = scope.GetService<IStructuralAnalysisModelQuery>(); }
AnalysisModel model = new AnalysisModel(); AnalysisDataModelBootstrapper bootstrapper = new AnalysisDataModelBootstrapper(); using (IScopedServiceProvider scope = bootstrapper.CreateThreadedScope()) { IStructuralAnalysisModelQuery queryService = scope.GetService<IStructuralAnalysisModelQuery>(); IReadOnlyList<StructuralCrossSection> crossSections = queryService.OfType<StructuralCrossSection>(model); }
AnalysisModel model = new AnalysisModel(); AnalysisDataModelBootstrapper bootstrapper = new AnalysisDataModelBootstrapper(); using (IScopedServiceProvider scope = bootstrapper.CreateThreadedScope()) { IStructuralAnalysisModelQuery queryService = scope.GetService<IStructuralAnalysisModelQuery>(); IReadOnlyList<StructuralCrossSection> crossSections = queryService.OfTypeWithName<StructuralCrossSection>(model, "CS21); }