How to Retrieve Read/Write Access of Existed Extensible Storage

How to Retrieve Read/Write Access of Existed Extensible Storage

Anonymous
Not applicable
910 Views
3 Replies
Message 1 of 4

How to Retrieve Read/Write Access of Existed Extensible Storage

Anonymous
Not applicable

Now I know how to create a schema and store entity of this schema in a specific element.

Here is what makes me confused:

If I create a schema and set read/write accesslevel to Vendor or Application, how can I retrieve this access when I open a doc contains schemas I built before.

It seems there is no interface allow me to make a statement of current user identification and verify my accesslevel.

I noticed there are methods call Read/WriteAccesslevelGranted, but still confused how does it work.

Any help would be appreciated.

 

0 Likes
Accepted solutions (2)
911 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

The credentials defining the vendor and add-in ids are defined in the add-in manifest, cf. developer guide in the online Revit help on

Add-in Registration

 

https://help.autodesk.com/view/RVT/2020/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_...

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

Anonymous
Not applicable

Thank you, Jeremy !

Is that means I could not create a readonly schema by using pubished addin directly ? Because the ApplicationId and VendorId are exposed to everyone.

I intend to create an addin that may create a readonly or password guarded schema to store some message

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

The ActiveAddInId is read-only, so I do not suppose you can manipulate that to make it harder for an intruder to determine:

 

https://www.revitapidocs.com/2020/ff42e969-2daf-d436-2ded-860e87195823.htm

 

So if someone wants to read your extensible storage data, I assume they can do sop.

 

However, they need several pieces of information to achieve that:

 

  • The vendor id (listed in the manifest)
  • The add-in id (listed in the manifest)
  • The extensible storage schema

 

However, there is still an very easy and quite obvious solution to create your own read-only data:

 

  • Encrypt it

 

If you do so with a serious encryption algorithm, it will be very hard to crack.

 

You can also easily add various checks to ensure it is not tampered with.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder