Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Copying a class from one library to another libray, with code

  • Copying a class from one library to another libray, with code

    Posted by Nathanaël on January 30, 2024 at 4:32 pm

    From one library (let’s call it libA), is there a way to copy a class (#ICONS for example) from one other library (libB) to another library (libC), using code?

    Andreas Pfeiffer replied 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Andreas Pfeiffer

    Administrator
    January 31, 2024 at 11:11 am

    Hi Nathanael,

    If you library and classes are not locked you should be able to achieve this by code:

    1. Create a new empty class from the same class type using $add
    2. Copy $classdata from the source to the new class.
    3. Finally copy the properties on the class that you think are important.

    In case of the system class, i.e. #icons omit the first step.

    I hope this helps.

    Best,

    Andreas

Log in to reply.