I have a main module (contains only one subroutine named main) and 4 other modules that do some operations on selections. One of these modules has a sub named surface, which gets properties of a selected surface and passes them into a class named sParameters. For example, sParameters.surfacetype = "cylinder", sParameters.axis="x". None of these values are are written into the sParameters class unless I have sParameters decalred as surfParams(my custom class) and unless I have Set sParameters = New surfParams within this subroutine. When I have these lines of code, subroutines in my surface module can't see these values and other modules can't see these values. I've tried to declare Public sParameters as surfParams before my main subroutine in my main module but I still don't see any values. I can't really post code as this code works with an external program. If need be, I can write some pseudo code which describes the process.
Edit: I've included three txt files, one is the main subroutine and the other is the module that is assigning values into the custom class and the third is the class module.
Bookmarks