geogiac
Guest
Hi...I try to do something very simple from visual basic (not vba) on autocad.. i.e. make a layer active........... .
for precision ..with this line of code ...
thisdrawing.activelayer = thisdrawing.layers("0")
I can in the autocad internal editor to make the layer "02 active............
.....I can't write the same on an external visual basic application.........
what I managed to do is
acad = getobject(, "autocad.application")
dim pippo as object
acad.activedocument.layers.item(0)
acad.activedocument.activelayer= pippo
I've always been wrong.... .
Help me!!? ? ?
for precision ..with this line of code ...
thisdrawing.activelayer = thisdrawing.layers("0")
I can in the autocad internal editor to make the layer "02 active............
.....I can't write the same on an external visual basic application.........
what I managed to do is
acad = getobject(, "autocad.application")
dim pippo as object
acad.activedocument.layers.item(0)
acad.activedocument.activelayer= pippo
I've always been wrong.... .
Help me!!? ? ?