GDL
About building parametric objects with GDL.

Is there a way to pack/encrypt built-in GDL Objects?

Anonymous
Not applicable
Hello there,

I am developing an Add-on with built-in GDL Objects in its resources. I am registering and loading these Objects with ACAPI_Register_BuiltInLibrary function.

Is there a way to pack or encrypt these GDL Objects, so no one should be able to extract GDL code from my Add-on?

Thanks for your time!
4 REPLIES 4
Ralph Wessel
Mentor
EzPresso wrote:
Is there a way to pack or encrypt these GDL Objects, so no one should be able to extract GDL code from my Add-on?
Yes, GDL objects can be bundled in the add-on as a 'FILE' resource. However, don't look on this as a protection mechanism. There is no way to prevent anyone but the most naive user from extracting the code from a GDL object, whether it's bundled in an add-on or not.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Yes, GDL objects can be bundled in the add-on as a 'FILE' resource.
That's what I do (and it is mentioned in the original question). Is it possible to put a compressed GDL object (.pla, etc) in the FILE resource and load them in Add-On?
Ralph Wessel
Mentor
EzPresso wrote:
Is it possible to put a compressed GDL object (.pla, etc) in the FILE resource and load them in Add-On?
Yes, any file can be imbedded as a FILE resource and read by the add-on, although the functions to read the resource are not part of the ArchiCAD API. Use the host OS API instead.
Ralph Wessel BArch
Software Engineer Speckle Systems
Akos Somorjai
Graphisoft
Graphisoft
Ralph wrote:
although the functions to read the resource are not part of the ArchiCAD API
See RS.hpp in GSRoot

Best, Akos