Extensible storage on ProjectInfo (Revit 2012)

Extensible storage on ProjectInfo (Revit 2012)

FRFR1426
Collaborator Collaborator
1,065 Views
2 Replies
Message 1 of 3

Extensible storage on ProjectInfo (Revit 2012)

FRFR1426
Collaborator
Collaborator

I'm using Extensible storage to store project wide data on the ProjectInfo element. All is OK on Revit 2013, but on Revit 2012, when I save the project and try to reopen it, I've got a message saying that element 558 (ProjectInfo) is corrupted and then Revit crash.

 

The code is like this:

 

using (var entity = new Entity(Schema))
using (var tr = new Transaction(document))
{
    if (tr.Start("Save settings") == TransactionStatus.Started)
    {
        entity.Set(...,...);
        Document.ProjectInformation.SetEntity(entity);
        tr.Commit();
    }
}

 Schema is a property where the Schema is build.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Accepted solutions (1)
1,066 Views
2 Replies
Replies (2)
Message 2 of 3

FRFR1426
Collaborator
Collaborator

When I close, I've sometimes a runtime error: R6025 - pure virtual function call

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
0 Likes
Message 3 of 3

FRFR1426
Collaborator
Collaborator
Accepted solution

Just installed SP1 & SP2. Seems to resolve the issue.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr