Hey all, long time....

Question.. Im trying to write some code that will change the LayerKeyStyles but to get it to work i need to go to Tools>References and add the specific references... other wise i get
"User-defined type not defined"

How do i go about getting rid of this error...
In help it says REFERENCE to use the drop down menu..real helpful...
in the refernce drop down i add
AecXBase47.tlb
AecXArchBase47.tlb
(ADT 2006)

I thought it might be cause the adt environment hasnt been initilized..
so i added this
adtApp.Init acadApp

no go..
any thoughts?

i have half an incling that it might be a SET New line but no idea how to write it.

TIA ccastelein