cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

GDL
About building parametric objects with GDL.

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

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
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
Central Innovation
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?
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
Central Innovation
Akos Somorjai
Graphisoft
Ralph wrote:
although the functions to read the resource are not part of the ArchiCAD API
See RS.hpp in GSRoot

Best, Akos