Home › Forums › SYSTEM › bug in documentation › Reply To: bug in documentation
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).
Categories
- All
-
Knowledge
Contains a detailed Q&A knowledge base. -
General
All non-technical questions. -
System
Optical system design and analysis. -
Instrument
Communicate and control different kinds of instruments. -
SPICE
Opto-electronic circuit design. -
FDTD
Finite-Difference Time-Domain simulation. -
BPM
Beam Propagation Method analysis and design. -
Grating
Fiber optic grating simulation. -
Fiber
Optical fiber design and characterization. -
Exchange
Users can exchange design files.
(Matlab, C++, etc.)