Darth Mav
Guest
Hello everyone
I suggest that I am a self-taught both as regards vba and its application in autocad.
My problem is very simple:
to access current design use the variable
thisdrawing
and to access selection groups I write
thisthisdrawing.selectionset
and this function perfectly if I write all the code within thisdrawing.
As soon as I do it in a form it begins to do strange things ,the variable thisthisdrawing.selectionsets.count returns me:
run-time error index topic invalid in item function
while thisdrawing.name works smoothly.
I think it's a problem of visibility.
If I was wrong the forum to post this question I apologize in advance.
Thank you.
Hi.
darth mav
I suggest that I am a self-taught both as regards vba and its application in autocad.
My problem is very simple:
to access current design use the variable
thisdrawing
and to access selection groups I write
thisthisdrawing.selectionset
and this function perfectly if I write all the code within thisdrawing.
As soon as I do it in a form it begins to do strange things ,the variable thisthisdrawing.selectionsets.count returns me:
run-time error index topic invalid in item function
while thisdrawing.name works smoothly.
I think it's a problem of visibility.
If I was wrong the forum to post this question I apologize in advance.
Thank you.
Hi.
darth mav