The Revit 2011 SDK is now available on the public Revit Developer Center site.
Here are some of the last-minute changes documented between the beta version and this one:
Refactored Document properties related to transactions
Two existing properties have been re-implemented to better complement the changes in the transaction framework:
- Document.IsReadOnly indicates that a document is in read-only state, either temporarily or permanently. If it is read-only, new transactions may not be started in that document, and thus the model cannot be modified.
- Document.IsModifiable indicates whether a document is currently modifiable or not. A document is not modifiable if either there is no transaction currently open or due to some temporary state lock modification for a certain operation. Taken from another perspective, a transaction may be started only when document is not yet modifiable, and is also not read-only.
FamilyHostingBehavior
The FamilyHostingBehavior enumeration represents the type of host a family expects. The value for a particular family can be obtained from the family’s built-in parameter FAMILY_HOSTING_BEHAVIOR.
FamilyInstance.Host property improved
The FamilyInstance.Host property will now return the host element of faced-hosted family instances. Previously it returned null.
So which final 2011 SDK version should we be using ?
DevCtr Web SDK -> 104 MB (110,098,139 bytes) v4.1.0.0
Revit DVD SDK -> 105 MB (110,416,595 bytes) v?.?.?
Posted by: Richard | April 22, 2010 at 21:56
Dear Richard,
It does not really make any difference. The SDK really just provides information and samples. The actual PI is completely defined by and contained in the Revit API assemblies which are provided with the Revit product, in the Program subdirectory of the main installation folder where Revit.exe also resides. On my system they are
2010-03-26 20:27 15,494,656 RevitAPI.dll
2010-03-26 20:28 711,168 RevitAPIUI.dll
I have not compared the two versions that you mention. Have you? What dates do they have?
On my system I installed the one coming with the product, which is the 110,416,595 byte version, and I have not noticed any problems with that. I must admit that I was not aware that there was another different version out there.
Cheers, Jeremy.
Posted by: Jeremy Tammik | April 23, 2010 at 08:17
good point.
I haven't gotten to installing either product yet but I hope to soon.
Posted by: Richard | April 24, 2010 at 23:39
Dear Richard,
Ok, good luck to you exploring both the product and the exciting new API!
Cheers, Jeremy.
Posted by: Jeremy Tammik | April 28, 2010 at 02:13
Hello Jeremy Tammik,
I have a question regarding...How to make the document not read only? I would appriciate a fast response...
Thanks,
Ramesh Rajamani
Posted by: Ramesh | July 15, 2010 at 19:21
Dear Ramesh,
The document is writeable within the context of an external command that either uses automatic transactions, or manual transactions and opens its own transaction. There are many other contexts as well, but that is the most common one. Look at the getting started material and any one of the hundreds of sample commands provided in the various sample on this site.
Cheers, Jeremy.
Posted by: Jeremy Tammik | July 16, 2010 at 01:46