AnsweredAssumed Answered

Layout Block Text Fonts in AEL

Question asked by zero_ice on Oct 23, 2009
Latest reply on Nov 30, 2009 by insightsip
I have been trying to use AEL to automatically label devices in my layout. I place the block text font into the layout, then copy and modify the command line information.

decl itemInfo0LP = de_init_item("straightfilled");
de_set_item_id(itemInfo0LP, "text6");
de_set_item_parameters(itemInfo0LP,
list(prm("StringAndReference","\"A1\""),
prm("StdForm","10.0 um"),
prm("StdForm","1.0"),
prm("StdForm","1.2"),
prm("layer_text_form","\"Contact\"")));
de_place_item(itemInfo0LP, 0, 0);
itemInfo0LP = de_free_item(itemInfo0LP);

I try to run this and I get an error:

(error)
Cannot place item in non-design view

Any ideas on what is wrong with this code would be greatly appreciated. If I run the code line by line at the command line everything works.
Thanks  

Outcomes