Skip to content

Instantly share code, notes, and snippets.

@justinmilo
Created December 26, 2014 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinmilo/3bcf2592abd2dfa74e63 to your computer and use it in GitHub Desktop.
Save justinmilo/3bcf2592abd2dfa74e63 to your computer and use it in GitHub Desktop.
import vs
#MARK-Object Type
class ObjectType():
Line = 2
Rectangle = 3
Oval = 4
Polygon = 5
Arc = 6
Freehand = 8
A3DLocus = 9
Text = 10
Group = 11
RoundedRectangle = 13
BitmapImage = 14
SymbolInDocument = 15
SymbolDefinition = 16
A2DLocus = 17
Worksheet = 18
Polyline = 21
PICTImage = 22
Extrude = 24
A3DPolygon = 25
LayerLink = 29
Layer = 31
Sweep = 34
MultipleExtrude = 38
Mesh = 40
MeshVertex = 41
RecordDefinitionFormat = 47
Record = 48
DocumentScript = 49
ScriptPalette = 51
WorksheetContainer = 56
Dimension = 63
HatchDefinition = 66
Wall = 68
ColumnFloorRoofFace = 71
Light = 81
RoofEdge = 82
RoofObject = 83
CSGSolidAdditionSubtraction = 84
PlugInObject = 86
RoofElement = 87
RoundWalls = 89
SymbolFolder = 92
Texture = 93
ClassDefinition= 94
TextureDefinitionMaterial = 97
SolidConeSphere = 95
NURBSCurve = 111
NURBSSurface = 113
ImageFillDefinition = 119
GradientFillDefinition = 120
FillSpace = 121
ViewPort = 122
def typeOfObject(x):
return {
11 : "Group",
15 : "SymbolInDocument",
16 : "SymbolDefinition",
31 : "Layer",
}.get(x, "Unknown")
# Events
kObjOnInitXProperties = 5;
kResetEventID = 3;
kObjXPropEditGroup = 1;
kObjXPropEditGroupPath = 2;
kObjXPropEditGroupProfile = 1;
paramName = ''
paramHandle, paramRecHandle, wallHandle = 0, 0, 0
# Events
class TextureFamily():
Color = 1
Reflectivity = 2
Transparency = 3
Bump = 4
Background = 5
Foreground = 6
Sketch = 7
class TextVerticalJustification():
TopOfTextBox = 1
TopBaseline = 2
TextCenterline = 3
BottomBaseline = 4
BottomOfTextBox = 5
class MaxonColorShaderPrototype:
kMaxonColor_Plain = 40
kMaxonColor_Image = 41
kMaxonColor_Fresnel = 42
kMaxonColor_Noise = 43
kMaxonColor_Tiles = 44
kMaxonColor_Bricks = 45
kMaxonColor_Pavement = 46
class MaxonReflectivityShaderPrototype:
kMaxonReflectivity_Image = 30
kMaxonReflectivity_Mirror = 31
kMaxonReflectivity_Fresnel = 32
kMaxonReflectivity_Noise = 33
kMaxonReflectivity_Tiles = 34
kMaxonReflectivity_Plastic = 35
kMaxonReflectivity_Bricks = 36
kMaxonReflectivity_Pavement = 37
kMaxonReflectivity_Glow = 38
kMaxonReflectivity_Backlit = 39
kMaxonReflectivity_Anisotropic = 40
class MaxonTransparencyShaderPrototype:
kMaxonTransparency_Plain = 10
kMaxonTransparency_Color = 11
kMaxonTransparency_Image = 12
kMaxonTransparency_Glass = 13
kMaxonTransparency_Noise = 14
kMaxonTransparency_Tiles = 15
kMaxonTransparency_Bricks = 16
kMaxonTransparency_Pavement = 17
kMaxonTransparency_RectangularMask = 18
kMaxonTransparency_ImageMask = 19
class MaxonBumpShaderPrototype:
kMaxonBump_Image = 41
kMaxonBump_Noise = 42
kMaxonBump_Tiles = 43
kMaxonBump_Bricks = 44
kMaxonBump_Pavement = 45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment