This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vs; | |
import JSBase | |
from imp import reload | |
reload (JSBase) | |
# Only works on 3D symbols not inside a group. | |
# maybe only works in plan view // Havent tested | |
def duplicateSymbolDefinition(h): #handle to symbolDefinition | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vs | |
#MARK-Object Type | |
class ObjectType(): | |
Line = 2 | |
Rectangle = 3 | |
Oval = 4 | |
Polygon = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vs | |
import VSEnums | |
from imp import reload | |
reload (VSEnums) | |
def createClass(newname): | |
# check to see if the class name is in use } | |
if vs.GetObject(newname): |