• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

use thisdrawing in variable modules and visibility

  • Thread starter Thread starter Darth Mav
  • Start date Start date

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
 
Thank you.
Unfortunately, my problem remains.
using a new selection group bypass my problem.
I need to use the two original selection groups that contain what you have already selected and the other.
Hi.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top