<https://forum.vectorworks.net/index.php?/topic/45379-global-variables-with-imported-functions/#comment-232169>
<http://schema.org/text>
"In the past I have run into a problem where the scripting window limits the amount of code I can put in a plugin.  That lead me to start using 'Includes\"  after which,  I was no longer limited.  The problem is that some of my codes end up being very long and I do not like scrolling through a ton of code just to find what I'm working on. \n \n\n\n\t \n \n\n\n\tFor example, If I have a code that generates 10 types of doors.  In the past I would generate variables for door width/height/wall thickness.  (i would consider those to be global variables)  All of the door types would use those variables.  But not all of the doors would be the same.  Some would be solid, some would be glass and some would be paneled.   To create these individual door types I would have a set of Local Variables for each.   In the past i would create a main include file that sets global attributes and draws global objects.  When the user selected a door type the corresponding include file would load to draw the selected door.  Having the separate \"include\" file would allow me to work on a simple code to generate each individual door type.  I wouldn't need to work on one large file that includes all 10 doors.  When the code was complete I would lock it within vectorworks so that it would run as a single plugin file.\n \n\n\n\t \n \n\n\n\tI'm having a little trouble understanding the best way to accomplish this with python.  I'm not a paid programmer and Im learning as I go.  I'm trying to get a better grip on python as we are moving from Vectorworks 2008 to 2016.  That being said, I find it much easier to comprehend looking at small pieces of code rather than a monster.\n \n"
<https://forum.vectorworks.net/index.php?/topic/45379-global-variables-with-imported-functions/#comment-231565>