revit ExtensibleStorage reading and writing permission setting occur exception

revit ExtensibleStorage reading and writing permission setting occur exception

Anonymous
Not applicable
773 Views
2 Replies
Message 1 of 3

revit ExtensibleStorage reading and writing permission setting occur exception

Anonymous
Not applicable

Hi,

I am using Revit ExtensibleStorage.when I set the ExtensibleStorage reading and writing permission, occur exception:"The vendorId is invalid. Parameter name: vendorId".I use "com.hongwa" as my vendorId and I am sure that the vendorId in the addin file and in the code is same.It work well in the revit 2017,but it occur exception:"The vendorId is invalid. Parameter name: vendorId" in the revit 2016. The flowing is my code for the ExtensibleStorage reading and writing permission  setting :

buider.SetApplicationGUID(new Guid("f35e4672-0a3e-4514-b105-6a636aa9f344"));

buider.SetReadAccessLevel(AccessLevel.Vendor);
buider.SetWriteAccessLevel(AccessLevel.Vendor);

buider.SetVendorId("com.hongwa");

 

I found the SetVendorId api remark:"The vendor id is the registered developer symbol. The registration interface is available at http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1075006 Since vendor ids are not case sensitive, the string will be converted to upper case before it is stored in the schema." when I go to the url,it show:"Symbols registration has been retired and is no longer available. If you have any questions please contact Dev-Req@autodesk.com  "

 

have someone can help me?

thanks.

 

0 Likes
774 Views
2 Replies
Replies (2)
Message 2 of 3

CADsoftOrl
Contributor
Contributor

I've just run into this same issue.  2017 takes my VendorID but 2016 throws an exception.  Anyone have an answer for this issue?

0 Likes
Message 3 of 3

matthew_taylor
Advisor
Advisor

Hi @CADsoftOrl,

The VendorId field changed in Revit 2017. In 2016 and prior, it was a registered developer symbol, which was 4 characters long.

In 2017 this changed to a sort of reverse website naming convention (of your company).

 

Id your VendorId over 4 characters long? Check out the VendorIdIsValid method. Does your VendorId pass this for both versions? You'll want it to pass both so you can deal with upgraded Revit models.

 

Cheers,

 

-Matt

 


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes