mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-11 22:21:52 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -51,7 +51,7 @@ namespace Revit.SDK.Samples.ExtensibleStorageUtility.CS
|
||||
Transaction tErase = new Transaction(document, "Erase EStorage");
|
||||
tErase.Start();
|
||||
IList<Schema> schemas = Schema.ListSchemas();
|
||||
foreach (Schema schema in schemas)
|
||||
foreach (Schema schema in schemas?.Where(x => x.WriteAccessLevel == AccessLevel.Public))
|
||||
{
|
||||
//Note-this will delete storage of this schema in *all* open documents.
|
||||
document.EraseSchemaAndAllEntities(schema);
|
||||
|
||||
Reference in New Issue
Block a user