Forum Replies Created

    #67229
    Profile Photo
    Timur Bazarov
    Participant

    Thank you so much!

    Best regards,
    Timur Bazarov

    #67198
    Profile Photo
    Timur Bazarov
    Participant

    The problem is that the command for creating component by script needs CLSID of particular library. For example, command which create laser is:

    Set Canvas1_Component1 = Canvas1.CreateComponent(“CW Laser”,”{6DA31CEE-058F-11D4-93BD-0050DAB7C5D6}”,300,190, 34, 34,0)

    CLSID of Filters Library is {161B94D1-3BA4-11D4-93EE-0050DAB7C5D6}. So, to create ‘Ideal Dispersion Compensation FBG’ I tried something like:

    Set Canvas1_Component1 = Canvas1.CreateComponent(“Ideal Dispersion Compensation FBG”,”{161B94D1-3BA4-11D4-93EE-0050DAB7C5D6}”,300,190, 34, 34,0)

    And it was not work. The command started working when I replaced CLSID of Filters library by CLSID of Dispersion Compensation Library {DA6309D8-71BD-441f-BC04-A3908C37686C}. So working command was:

    Set Canvas1_Component1 = Canvas1.CreateComponent(“Ideal Dispersion Compensation FBG”,”{DA6309D8-71BD-441f-BC04-A3908C37686C}”,300,190, 34, 34,0).

    #67053
    Profile Photo
    Timur Bazarov
    Participant

    Thank you for the answer!

    I will be grateful if you provide an example of how to do that.

    Best regards,
    Timur Bazarov