Skip to content

Instantly share code, notes, and snippets.

@justinmilo
justinmilo / MakeUnique.py
Last active August 29, 2015 14:06
Vectorworks Make Unique Command
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
import vs
#MARK-Object Type
class ObjectType():
Line = 2
Rectangle = 3
Oval = 4
Polygon = 5
@justinmilo
justinmilo / JSBase.py
Created December 26, 2014 18:10
My base code of shared functions for vectorscript
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):