Skip to content

Instantly share code, notes, and snippets.

Justin Smith justinmilo

View GitHub Profile
@justinmilo
justinmilo / JSBase.py
Created Dec 26, 2014
My base code of shared functions for vectorscript
View JSBase.py
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):
View VSEnums.py
import vs
#MARK-Object Type
class ObjectType():
Line = 2
Rectangle = 3
Oval = 4
Polygon = 5
@justinmilo
justinmilo / MakeUnique.py
Last active Aug 29, 2015
Vectorworks Make Unique Command
View MakeUnique.py
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
You can’t perform that action at this time.