home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / SolidWorks3069010232001.psc / swConst.bas < prev   
Encoding:
BASIC Source File  |  2001-10-23  |  29.2 KB  |  977 lines

  1. Attribute VB_Name = "swConst"
  2.  
  3. '----
  4. ' Document Types
  5. '----
  6.  
  7.  
  8. Public Enum swDocumentTypes_e
  9.     swDocNONE = 0                       ' Used to be TYPE_NONE
  10.     swDocPART = 1                       ' Used to be TYPE_PART
  11.     swDocASSEMBLY = 2           ' Used to be TYPE_ASSEMBLY
  12.     swDocDRAWING = 3            ' Used to be TYPE_DRAWING
  13.         swDocSDM = 4                    ' Solid data manager.
  14. End Enum
  15.  
  16. '----
  17. ' Selection Types
  18. '----
  19.  
  20. ' The following are the possible type ids returned by the function
  21. '     ISelectionMgr::GetSelectedObjectType.
  22. ' The string names to the right of the type id definition is the "type name"
  23. '     used by the methods:  IModelDoc::SelectByID && AndSelectByID
  24.  
  25. Public Enum swSelectType_e
  26.  
  27.         swSelNOTHING = 0
  28.  
  29.         swSelEDGES = 1                          ' "EDGE"
  30.         swSelFACES = 2                          ' "FACE"
  31.         swSelVERTICES = 3               ' "VERTEX"
  32.         swSelDATUMPLANES = 4            ' "PLANE"
  33.         swSelDATUMAXES = 5              ' "AXIS"
  34.  
  35.         swSelDATUMPOINTS = 6            ' "DATUMPOINT"
  36.         swSelOLEITEMS = 7               ' "OLEITEM"
  37.         swSelATTRIBUTES = 8             ' "ATTRIBUTE"
  38.         swSelSKETCHES = 9               ' "SKETCH"
  39.         swSelSKETCHSEGS = 10            ' "SKETCHSEGMENT"
  40.  
  41.         swSelSKETCHPOINTS = 11          ' "SKETCHPOINT"
  42.         swSelDRAWINGVIEWS = 12          ' "DRAWINGVIEW"
  43.         swSelGTOLS = 13                         ' "GTOL"
  44.         swSelDIMENSIONS = 14            ' "DIMENSION"
  45.         swSelNOTES = 15                         ' "NOTE"
  46.  
  47.         swSelSECTIONLINES = 16          ' "SECTIONLINE"
  48.         swSelDETAILCIRCLES = 17         ' "DETAILCIRCLE"
  49.         swSelSECTIONTEXT = 18           ' "SECTIONTEXT"
  50.         swSelSHEETS = 19                        ' "SHEET"
  51.         swSelCOMPONENTS = 20            ' "COMPONENT"
  52.  
  53.         swSelMATES = 21                         ' "MATE"
  54.         swSelBODYFEATURES = 22          ' "BODYFEATURE"
  55.         swSelREFCURVES = 23             ' "REFCURVE"
  56.         swSelEXTSKETCHSEGS = 24         ' "EXTSKETCHSEGMENT"
  57.         swSelEXTSKETCHPOINTS = 25       ' "EXTSKETCHPOINT"
  58.  
  59.         swSelHELIX = 26                         ' "HELIX" (is this wrong?)
  60.         swSelREFERENCECURVES = 26       ' "REFERENCECURVES"
  61.         swSelREFSURFACES = 27           ' "REFSURFACE"
  62.         swSelCENTERMARKS = 28           ' "CENTERMARKS"
  63.         swSelINCONTEXTFEAT = 29         ' "INCONTEXTFEAT"
  64.         swSelMATEGROUP = 30             ' "MATEGROUP"
  65.  
  66.         swSelBREAKLINES = 31            ' "BREAKLINE"
  67.         swSelINCONTEXTFEATS = 32        ' "INCONTEXTFEATS"
  68.         swSelMATEGROUPS = 33            ' "MATEGROUPS"
  69.         swSelSKETCHTEXT = 34            ' "SKETCHTEXT"
  70.         swSelSFSYMBOLS = 35             ' "SFSYMBOL"
  71.  
  72.         swSelDATUMTAGS = 36             ' "DATUMTAG"
  73.         swSelCOMPPATTERN = 37           ' "COMPPATTERN"
  74.         swSelWELDS = 38                         ' "WELD"
  75.         swSelCTHREADS = 39              ' "CTHREAD"
  76.         swSelDTMTARGS = 40              ' "DTMTARG"
  77.  
  78.         swSelPOINTREFS = 41             ' "POINTREF"
  79.         swSelDCABINETS = 42             ' "DCABINET"
  80.         swSelEXPLVIEWS = 43             ' "EXPLODEDVIEWS"
  81.         swSelEXPLSTEPS = 44             ' "EXPLODESTEPS"
  82.         swSelEXPLLINES = 45             ' "EXPLODELINES"
  83.  
  84.         swSelSILHOUETTES = 46           ' "SILHOUETTE"
  85.         swSelCONFIGURATIONS = 47        ' "CONFIGURATIONS"
  86.         swSelOBJHANDLES = 48
  87.         swSelARROWS = 49                        ' "VIEWARROW"
  88.         swSelZONES = 50                         ' "ZONES"
  89.  
  90.         swSelREFEDGES = 51              ' "REFERENCE-EDGE"
  91.         swSelREFFACES = 52
  92.         swSelREFSILHOUETTE = 53
  93.         swSelBOMS = 54                          ' "BOM"
  94.         swSelEQNFOLDER = 55             ' "EQNFOLDER"
  95.  
  96.         swSelSKETCHHATCH = 56           ' "SKETCHHATCH"
  97.         swSelIMPORTFOLDER = 57          ' "IMPORTFOLDER"
  98.         swSelVIEWERHYPERLINK = 58       ' "HYPERLINK"
  99.         swSelMIDPOINTS = 59
  100.         swSelCUSTOMSYMBOLS = 60         ' "CUSTOMSYMBOL"
  101.  
  102.         swSelCOORDSYS = 61              ' "COORDSYS"
  103.         swSelDATUMLINES = 62            ' "REFLINE"
  104.         swSelROUTECURVES = 63
  105.         swSelBOMTEMPS = 64              ' "BOMTEMP"
  106.         swSelROUTEPOINTS = 65           ' "ROUTEPOINT"
  107.  
  108.         swSelCONNECTIONPOINTS = 66      ' "CONNECTIONPOINT"
  109.         swSelROUTESWEEPS = 67
  110.         swSelPOSGROUP = 68              ' "POSGROUP"
  111.         swSelBROWSERITEM = 69           ' "BROWSERITEM"
  112.         swSelFABRICATEDROUTE = 70       ' "ROUTEFABRICATED"
  113.  
  114.         swSelSKETCHPOINTFEAT = 71       ' "SKETCHPOINTFEAT"
  115.         swSelEMPTYSPACE = 72            ' (is this wrong?)
  116.         swSelCOMPSDONTOVERRIDE = 72
  117.         swSelLIGHTS = 73                        ' "LIGHTS"
  118.         swSelWIREBODIES = 74
  119.         swSelSURFACEBODIES = 75         ' "SURFACEBODY"
  120.  
  121.         swSelSOLIDBODIES = 76           ' "SOLIDBODY"
  122.         swSelFRAMEPOINT = 77            ' "FRAMEPOINT"
  123.         swSelSURFBODIESFIRST = 78
  124.         swSelMANIPULATORS = 79          ' "MANIPULATOR"
  125.         swSelPICTUREBODIES = 80         ' "PICTURE BODY"
  126.  
  127.         swSelSOLIDBODIESFIRST = 81
  128.  
  129.         'swSelEVERYTHING     = 4294967293
  130.         'swSelLOCATIONS = 4294967294
  131.         'swSelUNSUPPORTED       = 4294967295
  132. End Enum
  133.  
  134. '----
  135. ' Events Notifications
  136. '----
  137.  
  138. Public Enum swViewNotify_e   ' For IModelView ( DIID_DSldWorksEvents
  139.  
  140.         swViewRepaintNotify = 1
  141.         swViewChangeNotify = 2
  142.         swViewDestroyNotify = 3
  143.         swViewRepaintPostNotify = 4
  144.         swViewBufferSwapNotify = 5
  145.         swViewDestroyNotify2 = 6
  146. End Enum
  147.  
  148. Public Enum swFMViewNotify_e   ' For IFeatMgrView ( DIID_DSldWorksEvents
  149.  
  150.         swFMViewActivateNotify = 1
  151.         swFMViewDeactivateNotify = 2
  152.         swFMViewDestroyNotify = 3
  153. End Enum
  154.  
  155. Public Enum swPartNotify_e    ' For IPartDoc ( DIID_DPartDocEvents )
  156.  
  157.         swPartRegenNotify = 1
  158.         swPartDestroyNotify = 2
  159.         swPartRegenPostNotify = 3
  160.         swPartViewNewNotify = 4
  161.         swPartNewSelectionNotify = 5
  162.         swPartFileSaveNotify = 6
  163.         swPartFileSaveAsNotify = 7
  164.         swPartLoadFromStorageNotify = 8
  165.         swPartSaveToStorageNotify = 9
  166.         swPartConfigChangeNotify = 10
  167.         swPartConfigChangePostNotify = 11
  168.         swPartAutoSaveNotify = 12
  169.         swPartAutoSaveToStorageNotify = 13
  170.         swPartViewNewNotify2 = 14
  171.         swPartLightingDialogCreateNotify = 15
  172.         swPartAddItemNotify = 16
  173.         swPartRenameItemNotify = 17
  174.         swPartDeleteItemNotify = 18
  175.         swPartModifyNotify = 19
  176.         swPartFileReloadNotify = 20
  177.         swPartAddCustomPropertyNotify = 21
  178.         swPartChangeCustomPropertyNotify = 22
  179.         swPartDeleteCustomPropertyNotify = 23
  180.         swPartFeatureEditPreNotify = 24
  181.         swPartFeatureSketchEditPreNotify = 25
  182.         swPartFileSaveAsNotify2 = 26
  183.         swPartDeleteSelectionPreNotify = 27
  184.         swPartFileReloadPreNotify = 28
  185.         swPartBodyVisibleChangeNotify = 29
  186. End Enum
  187.  
  188. Public Enum swDrawingNotify_e    ' For IDrawingDoc ( DIID_DDrawingDocEvents )
  189.  
  190.         swDrawingRegenNotify = 1
  191.         swDrawingDestroyNotify = 2
  192.         swDrawingRegenPostNotify = 3
  193.         swDrawingViewNewNotify = 4
  194.         swDrawingNewSelectionNotify = 5
  195.         swDrawingFileSaveNotify = 6
  196.         swDrawingFileSaveAsNotify = 7
  197.         swDrawingLoadFromStorageNotify = 8
  198.         swDrawingSaveToStorageNotify = 9
  199.         swDrawingAutoSaveNotify = 10
  200.         swDrawingAutoSaveToStorageNotify = 11
  201.         swDrawingConfigChangeNotify = 12
  202.         swDrawingConfigChangePostNotify = 13
  203.         swDrawingViewNewNotify2 = 14
  204.         swDrawingAddItemNotify = 15
  205.         swDrawingRenameItemNotify = 16
  206.         swDrawingDeleteItemNotify = 17
  207.         swDrawingModifyNotify = 18
  208.         swDrawingFileReloadNotify = 19
  209.         swDrawingAddCustomPropertyNotify = 20
  210.         swDrawingChangeCustomPropertyNotify = 21
  211.         swDrawingDeleteCustomPropertyNotify = 22
  212.         swDrawingFileSaveAsNotify2 = 23
  213.         swDrawingDeleteSelectionPreNotify = 24
  214.         swDrawingFileReloadPreNotify = 25
  215. End Enum
  216.  
  217. Public Enum swAssemblyNotify_e ' For IAssemblyDoc ( DIID_DAssemblyDocEvents )
  218.  
  219.         swAssemblyRegenNotify = 1
  220.         swAssemblyDestroyNotify = 2
  221.         swAssemblyRegenPostNotify = 3
  222.         swAssemblyViewNewNotify = 4
  223.         swAssemblyNewSelectionNotify = 5
  224.         swAssemblyFileSaveNotify = 6
  225.         swAssemblyFileSaveAsNotify = 7
  226.         swAssemblyLoadFromStorageNotify = 8
  227.         swAssemblySaveToStorageNotify = 9
  228.         swAssemblyConfigChangeNotify = 10
  229.         swAssemblyConfigChangePostNotify = 11
  230.         swAssemblyAutoSaveNotify = 12
  231.         swAssemblyAutoSaveToStorageNotify = 13
  232.         swAssemblyBeginInContextEditNotify = 14
  233.         swAssemblyEndInContextEditNotify = 15
  234.         swAssemblyViewNewNotify2 = 16
  235.         swAssemblyLightingDialogCreateNotify = 17
  236.         swAssemblyAddItemNotify = 18
  237.         swAssemblyRenameItemNotify = 19
  238.         swAssemblyDeleteItemNotify = 20
  239.         swAssemblyModifyNotify = 21
  240.         swAssemblyComponentStateChangeNotify = 22
  241.         swAssemblyFileDropNotify = 23
  242.         swAssemblyFileReloadNotify = 24
  243.         swAssemblyComponentStateChangeNotify2 = 25
  244.         swAssemblyAddCustomPropertyNotify = 26
  245.         swAssemblyChangeCustomPropertyNotify = 27
  246.         swAssemblyDeleteCustomPropertyNotify = 28
  247.         swAssemblyFeatureEditPreNotify = 29
  248.         swAssemblyFeatureSketchEditPreNotify = 30
  249.         swAssemblyFileSaveAsNotify2 = 31
  250.         swAssemblyInterferenceNotify = 32
  251.         swAssemblyDeleteSelectionPreNotify = 33
  252.         swAssemblyFileReloadPreNotify = 34
  253.         swAssemblyComponentMoveNotify = 35
  254.         swAssemblyComponentVisibleChangeNotify = 36
  255.         swAssemblyBodyVisibleChangeNotify = 37
  256.  
  257. End Enum
  258.  
  259. Public Enum swAppNotify_e    ' For ISldWorks ( DIID_DSldWorksEvents )
  260.  
  261.         swAppFileOpenNotify = 1
  262.         swAppFileNewNotify = 2
  263.         swAppDestroyNotify = 3
  264.         swAppActiveDocChangeNotify = 4
  265.         swAppActiveModelDocChangeNotify = 5
  266.         swAppPropertySheetCreateNotify = 6
  267.         swAppNonNativeFileOpenNotify = 7
  268.         swAppLightSheetCreateNotify = 8
  269.         swAppDocumentConversionNotify = 9
  270.         swAppLightweightComponentOpenNotify = 10
  271.         swAppDocumentLoadNotify = 11
  272.         swAppFileNewNotify2 = 12
  273.         swAppFileOpenNotify2 = 13
  274.         swAppReferenceNotFoundNotify = 14
  275.         swAppPromptForFilenameNotify = 15
  276. End Enum
  277.  
  278. Public Enum swPropertySheetNotify_e
  279.  
  280.         swPropertySheetDestroyNotify = 1
  281.         swPropertySheetHelpNotify = 2
  282. End Enum
  283.  
  284. '----
  285. ' Parameter Types
  286. '----
  287. Public Enum swParamType_e    ' For use with IAttributeDef::AddParameter (for example)
  288.  
  289.         swParamTypeDouble = 0
  290.         swParamTypeString = 1
  291.         swParamTypeInteger = 2
  292.         swParamTypeDVector = 3
  293. End Enum
  294.  
  295. '----
  296. ' The following is for angular dimension info returned GetDimensionInfo()
  297. '----
  298. Public Enum swQuadant_e
  299.  
  300.         swQuadUnknown = 0
  301.         swQuadPosQ1 = 1
  302.         swQuadNegQ1 = 2
  303.         swQuadPosQ2 = 3
  304.         swQuadNegQ2 = 4
  305. End Enum
  306.  
  307. '----
  308. ' The following Public Enum is for interpreting ellipse data
  309. '----
  310. Public Enum swEllipsePts_e
  311.  
  312.         swEllipseStartPt = 0
  313.         swEllipseEndPt = 1
  314.         swEllipseCenterPt = 2
  315.         swEllipseMajorPt = 3
  316.         swEllipseMinorPt = 4
  317. End Enum
  318.  
  319. Public Enum swParabolaPts_e
  320.  
  321.         swParabolaStartPt = 0
  322.         swParabolaEndPt = 1
  323.         swParabolaFocusPt = 2
  324.         swParabolaApexPt = 3
  325. End Enum
  326.  
  327. '----
  328. ' The following define gtol symbol indices
  329. '----
  330. Public Enum swGtolMatCondition_e
  331.  
  332.         swMcNONE = 0
  333.         swMcMMC = 1
  334.         swMcRFS = 2
  335.         swMcLMC = 3
  336.  
  337.         swMsNONE = 4
  338.         swMsPROJTOLZONE = 5
  339.         swMsDIA = 6
  340.         swMsSPHDIA = 7
  341.         swMsRAD = 8
  342.         swMsSPHRAD = 9
  343.         swMsREF = 10
  344.         swMsARCLEN = 11
  345. End Enum
  346.  
  347. Public Enum swGtolGeomCharSymbol_e
  348.  
  349.         swGcsNONE = 12
  350.         swGcsSYMMETRY = 13
  351.         swGcsSTRAIGHT = 14
  352.         swGcsFLAT = 15
  353.         swGcsROUND = 16
  354.         swGcsCYL = 17
  355.         swGcsLINEPROF = 18
  356.         swGcsSURFPROF = 19
  357.         swGcsANG = 20
  358.         swGcsPERP = 21
  359.         swGcsPARALLEL = 22
  360.         swGcsPOSITION = 23
  361.         swGcsCONC = 24
  362.         swGcsCIRCRUNOUT = 25
  363.         swGcsTOTALRUNOUT = 26
  364.         swGcsCIRCOPENRUNOUT = 27
  365.         swGcsTOTALOPENRUNOUT = 28
  366. End Enum
  367.  
  368. Public Enum swMateType_e
  369.  
  370.         swMateCOINCIDENT = 0
  371.         swMateCONCENTRIC = 1
  372.         swMatePERPENDICULAR = 2
  373.         swMatePARALLEL = 3
  374.         swMateTANGENT = 4
  375.         swMateDISTANCE = 5
  376.         swMateANGLE = 6
  377.         swMateUNKNOWN = 7
  378.         swMateSYMMETRIC = 8
  379.         swMateCAMFOLLOWER = 9
  380. End Enum
  381.  
  382. ' Enumerations for Detail View Creation
  383. Public Enum swDetCircleShowType_e
  384.  
  385.         swDetCirclePROFILE = 0
  386.         swDetCircleCIRCLE = 1
  387.         swDetCircleDONTSHOW = 2
  388. End Enum
  389.  
  390. ' Enumerations for Detail View Style
  391. Public Enum swDetViewStyle_e
  392.  
  393.         swDetViewSTANDARD = 0
  394.         swDetViewBROKEN = 1
  395.         swDetViewLEADER = 2
  396.         swDetViewNOLEADER = 3
  397.         swDetViewCONNECTED = 4
  398. End Enum
  399.  
  400. ' This Public Enum has been changed to correct improper mate alignment mapping
  401. Public Enum swMateAlign_e
  402.  
  403.         ' Use the three corrected enum's below
  404.         swMateAlignALIGNED = 0
  405.         swMateAlignANTI_ALIGNED = 1
  406.         swMateAlignCLOSEST = 2
  407.  
  408.         ' Old incorrect enum's retained for backwards compatability
  409.         ' Avoid using the three incorrect enum's below if possible
  410.         swAlignNONE = 0
  411.         swAlignSAME = 1
  412.         swAlignAGAINST = 2
  413. End Enum
  414.  
  415.  
  416. Public Enum swDisplayMode_e
  417.  
  418.         swWIREFRAME = 0
  419.         swHIDDEN_GREYED = 1
  420.         swHIDDEN = 2
  421. End Enum
  422.  
  423. Public Enum swArrowStyle_e
  424.  
  425.         swOPEN_ARROWHEAD = 0
  426.         swCLOSED_ARROWHEAD = 1
  427.         swSLASH_ARROWHEAD = 2
  428.         swDOT_ARROWHEAD = 3
  429.         swORIGIN_ARROWHEAD = 4
  430.         swWIDE_ARROWHEAD = 5
  431.         swISOWIDE_ARROWHEAD = 6
  432.         swRUS_ARROWHEAD = 7
  433.         swCLOSETOP_ARROWHEAD = 8
  434.         swCLOSEBOT_ARROWHEAD = 9
  435.         swNO_ARROWHEAD = 10
  436. End Enum
  437.  
  438. Public Enum swLeaderSide_e
  439.  
  440.         swLS_SMART = 0
  441.         swLS_LEFT = 1
  442.         swLS_RIGHT = 2
  443. End Enum
  444.  
  445.  
  446. '----
  447. ' The following define Surface Finish Symbol types and options
  448. ' Used by InsertSurfaceFinishSymbol ModifySurfaceFinishSymbol
  449. '----
  450. Public Enum swSFSymType_e
  451.  
  452.         swSFBasic = 0
  453.         swSFMachining_Req = 1
  454.         swSFDont_Machine = 2
  455.         swSFJIS_Surface_Texture_1 = 3                   ' Add next 5 JIS types, 08/26/99
  456.         swSFJIS_Surface_Texture_2 = 4
  457.         swSFJIS_Surface_Texture_3 = 5
  458.         swSFJIS_Surface_Texture_4 = 6
  459.         swSFJIS_No_Machining = 7
  460. End Enum
  461.  
  462. Public Enum swSFLaySym_e
  463.  
  464.         swSFNone = 0
  465.         swSFCircular = 1
  466.         swSFCross = 2
  467.         swSFMultiDir = 3
  468.         swSFParallel = 4
  469.         swSFPerp = 5
  470.         swSFRadial = 6
  471.         swSFParticulate = 7
  472. End Enum
  473.  
  474. ' The different possibilities for types of texts in a Surface Finish symbol. (SFSymbol::Get/SetText)
  475. Public Enum swSurfaceFinishSymbolText_e
  476.  
  477.         swSFSymbolMaterialRemovalAllowance = 1
  478.         swSFSymbolProductionMethod = 2
  479.         swSFSymbolSamplingLength = 3
  480.         swSFSymbolOtherRoughnessValue = 4
  481.         swSFSymbolMaximumRoughness = 5
  482.         swSFSymbolMinimumRoughness = 6
  483.         swSFSymbolRoughnessSpacing = 7
  484. End Enum
  485.  
  486. Public Enum swLeaderStyle_e
  487.  
  488.         swNO_LEADER = 0
  489.         swSTRAIGHT = 1
  490.         swBENT = 2
  491. End Enum
  492.  
  493. '----
  494. ' Balloon Information.  swBS_SplitCirc is not valid for Notes only for Balloons
  495. '----
  496. Public Enum swBalloonStyle_e
  497.  
  498.         swBS_None = 0
  499.         swBS_Circular = 1
  500.         swBS_Triangle = 2
  501.         swBS_Hexagon = 3
  502.         swBS_Box = 4
  503.         swBS_Diamond = 5
  504.         swBS_SplitCirc = 6
  505.         swBS_Pentagon = 7
  506.         swBS_FlagPentagon = 8
  507.         swBS_FlagTriangle = 9
  508. End Enum
  509.  
  510. Public Enum swBalloonFit_e
  511.  
  512.         swBF_Tightest = 0
  513.         swBF_1Char = 1
  514.         swBF_2Chars = 2
  515.         swBF_3Chars = 3
  516.         swBF_4Chars = 4
  517.         swBF_5Chars = 5
  518. End Enum
  519.  
  520. '----
  521. ' The following define length and angle unit types
  522. '----
  523. Public Enum swLengthUnit_e
  524.  
  525.         swMM = 0
  526.         swCM = 1
  527.         swMETER = 2
  528.         swINCHES = 3
  529.         swFEET = 4
  530.         swFEETINCHES = 5
  531. End Enum
  532.  
  533. Public Enum swAngleUnit_e
  534.  
  535.         swDEGREES = 0
  536.         swDEG_MIN = 1
  537.         swDEG_MIN_SEC = 2
  538.         swRADIANS = 3
  539. End Enum
  540.  
  541. Public Enum swFractionDisplay_e
  542.  
  543.         swNONE = 0
  544.         swDECIMAL = 1
  545.         swFRACTION = 2
  546. End Enum
  547.  
  548. '----
  549. ' Drawing Paper Sizes
  550. '----
  551. Public Enum swDwgPaperSizes_e
  552.  
  553.         swDwgPaperAsize = 0
  554.         swDwgPaperAsizeVertical = 1
  555.         swDwgPaperBsize = 2
  556.         swDwgPaperCsize = 3
  557.         swDwgPaperDsize = 4
  558.         swDwgPaperEsize = 5
  559.         swDwgPaperA4size = 6
  560.         swDwgPaperA4sizeVertical = 7
  561.         swDwgPaperA3size = 8
  562.         swDwgPaperA2size = 9
  563.         swDwgPaperA1size = 10
  564.         swDwgPaperA0size = 11
  565.         swDwgPapersUserDefined = 12
  566. End Enum
  567.  
  568.  
  569. '----
  570. ' Drawing Templates
  571. '----
  572. Public Enum swDwgTemplates_e
  573.  
  574.         swDwgTemplateAsize = 0
  575.     swDwgTemplateAsizeVertical = 1
  576.         swDwgTemplateBsize = 2
  577.         swDwgTemplateCsize = 3
  578.         swDwgTemplateDsize = 4
  579.         swDwgTemplateEsize = 5
  580.         swDwgTemplateA4size = 6
  581.         swDwgTemplateA4sizeVertical = 7
  582.         swDwgTemplateA3size = 8
  583.         swDwgTemplateA2size = 9
  584.         swDwgTemplateA1size = 10
  585.         swDwgTemplateA0size = 11
  586.         swDwgTemplateCustom = 12
  587.         swDwgTemplateNone = 13
  588. End Enum
  589.  
  590. '----
  591. ' Drawing Templates
  592. '----
  593. Public Enum swStandardViews_e
  594.  
  595.         swFrontView = 1
  596.         swBackView = 2
  597.         swLeftView = 3
  598.         swRightView = 4
  599.         swTopView = 5
  600.         swBottomView = 6
  601.         swIsometricView = 7
  602.         swTrimetricView = 8
  603.         swDimetricView = 9
  604. End Enum
  605.  
  606. '----
  607. ' Repaint Notification types
  608. '----
  609. Public Enum swRepaintTypes_e
  610.  
  611.         swStandardUpdate = 0
  612.         swLightUpdate = 1
  613.         swMaterialUpdate = 2
  614.         swSectionedUpdate = 3
  615.         swExplodedUpdate = 4
  616.         swInsertSketchUpdate = 5
  617.         swViewDisplayUpdate = 6
  618.         swDamageRepairUpdate = 7
  619.         swSelectionUpdate = 8
  620.         swSectionedExitUpdate = 9
  621.         swScrollViewUpdate = 10
  622. End Enum
  623.  
  624. '----
  625. ' User Interface State
  626. '----
  627. Public Enum swUIStates_e
  628.  
  629.         swIsHiddenInFeatureMgr = 1
  630. End Enum
  631.  
  632. '----
  633. ' Type names
  634. '----
  635.  
  636. ' Body Features
  637. Public Const swTnChamfer As String = "Chamfer"
  638. Public Const swTnFillet As String = "Fillet"
  639. Public Const swTnCavity As String = "Cavity"
  640. Public Const swTnDraft As String = "Draft"
  641. Public Const swTnMirrorSolid As String = "MirrorSolid"
  642. Public Const swTnCirPattern As String = "CirPattern"
  643. Public Const swTnLPattern As String = "LPattern"
  644. Public Const swTnMirrorPattern As String = "MirrorPattern"
  645. Public Const swTnShell As String = "Shell"
  646. Public Const swTnBlend As String = "Blend"
  647. Public Const swTnBlendCut As String = "BlendCut"
  648. Public Const swTnExtrusion As String = "Extrusion"
  649. Public Const swTnBoss As String = "Boss"
  650. Public Const swTnCut As String = "Cut"
  651. Public Const swTnRefCurve As String = "RefCurve"
  652. Public Const swTnRevolution As String = "Revolution"
  653. Public Const swTnRevCut As String = "RevCut"
  654. Public Const swTnSweep As String = "Sweep"
  655. Public Const swTnSweepCut As String = "SweepCut"
  656. Public Const swTnStock As String = "Stock"
  657. Public Const swTnSurfCut As String = "SurfCut"
  658. Public Const swTnThicken As String = "Thicken"
  659. Public Const swTnThickenCut As String = "ThickenCut"
  660. Public Const swTnVarFillet As String = "VarFillet"
  661. Public Const swTnSketchHole As String = "SketchHole"
  662. Public Const swTnHoleWzd As String = "HoleWzd"
  663. Public Const swTnImported As String = "Imported"
  664. Public Const swTnBaseBody As String = "BaseBody"
  665. Public Const swTnDerivedLPattern As String = "DerivedLPattern"
  666. Public Const swTnCosmeticThread As String = "CosmeticThread"
  667.  
  668. ' Sheet Metal features
  669. Public Const swTnSheetMetal As String = "SheetMetal"
  670. Public Const swTnFlattenBends As String = "FlattenBends"
  671. Public Const swTnProcessBends As String = "ProcessBends"
  672. Public Const swTnOneBend As String = "OneBend"
  673. Public Const swTnBaseFlange As String = "SMBaseFlange"
  674. Public Const swTnSketchBend As String = "SketchBend"
  675. Public Const swTnSM3dBend As String = "SM3dBend"
  676. Public Const swTnEdgeFlange As String = "EdgeFlange"
  677. Public Const swTnFlatPattern As String = "FlatPattern"
  678.  
  679. ' Drawing Related
  680. Public Const swTnCenterMark As String = "CenterMark"
  681. Public Const swTnDrSheet As String = "DrSheet"
  682. Public Const swTnAbsoluteView As String = "AbsoluteView"
  683. Public Const swTnDetailView As String = "DetailView"
  684. Public Const swTnRelativeView As String = "RelativeView"
  685. Public Const swTnSectionPartView As String = "SectionPartView"
  686. Public Const swTnSectionAssemView As String = "SectionAssemView"
  687. Public Const swTnUnfoldedView As String = "UnfoldedView"
  688. Public Const swTnAuxiliaryView As String = "AuxiliaryView"
  689. Public Const swTnDetailCircle As String = "DetailCircle"
  690. Public Const swTnDrSectionLine As String = "DrSectionLine"
  691.  
  692. ' Assembly Related
  693. Public Const swTnMateCoincident As String = "MateCoincident"
  694. Public Const swTnMateConcentric As String = "MateConcentric"
  695. Public Const swTnMateDistanceDim As String = "MateDistanceDim"
  696. Public Const swTnMateParallel As String = "MateParallel"
  697. Public Const swTnMateTangent As String = "MateTangent"
  698. Public Const swTnReference As String = "Reference"
  699.  
  700. ' Reference Geometry
  701. Public Const swTnRefPlane As String = "RefPlane"
  702. Public Const swTnRefAxis As String = "RefAxis"
  703. Public Const swTnReferenceCurve As String = "ReferenceCurve"
  704. Public Const swTnRefSurface As String = "RefSurface"
  705. Public Const swTnCoordinateSystem As String = "CoordSys"
  706.  
  707. ' Misc
  708. Public Const swTnAttribute As String = "Attribute"
  709. Public Const swTnProfileFeature As String = "ProfileFeature"
  710.  
  711. ' Symbol markers
  712. Public Const SYMBOL_MARKER_START As String = "<"
  713. Public Const SYMBOL_MARKER_END As String = ">"
  714. Public Const SYMBOL_MARKER_SPACE As String = "-"
  715.  
  716.  
  717. '----
  718. ' Surface Types.  For use with Surface::Identity method.
  719. '----
  720. Public Const PLANE_TYPE As Integer = 4001
  721. Public Const CYLINDER_TYPE As Integer = 4002
  722. Public Const CONE_TYPE As Integer = 4003
  723. Public Const SPHERE_TYPE As Integer = 4004
  724. Public Const TORUS_TYPE As Integer = 4005
  725. Public Const BSURF_TYPE As Integer = 4006
  726. Public Const BLEND_TYPE As Integer = 4007
  727. Public Const OFFSET_TYPE As Integer = 4008
  728. Public Const EXTRU_TYPE As Integer = 4009
  729. Public Const SREV_TYPE As Integer = 4010
  730.  
  731. '----
  732. ' Curve Types.  For use with Curve::Identity method.
  733. '----
  734. Public Const LINE_TYPE As Integer = 3001
  735. Public Const CIRCLE_TYPE As Integer = 3002
  736. Public Const ELLIPSE_TYPE As Integer = 3003
  737. Public Const INTERSECTION_TYPE As Integer = 3004
  738. Public Const BCURVE_TYPE As Integer = 3005
  739. Public Const SPCURVE_TYPE As Integer = 3006
  740. Public Const CONSTPARAM_TYPE As Integer = 3008
  741. Public Const TRIMMED_TYPE As Integer = 3009
  742.  
  743. '----
  744. ' This is the beginning of time. Used to initialize su_CTime.
  745. '----
  746. Public Const TIME_ORIGIN As String = "1990 1, 1, 0, 0, 0"
  747.  
  748.  
  749.  
  750. ' Items that can be configured to have a line style in drawings.
  751. Public Enum swLineTypes_e
  752.  
  753.         swLF_VISIBLE = 0
  754.         swLF_HIDDEN = 1
  755.         swLF_SKETCH = 2
  756.         swLF_DETAIL = 3
  757.         swLF_SECTION = 4
  758.         swLF_DIMENSION = 5
  759.         swLF_CENTER = 6
  760.         swLF_HATCH = 7
  761.         swLF_TANGENT = 8
  762. End Enum
  763.  
  764. ' Dimension tolerance types
  765. Public Enum swTolType_e
  766.  
  767.         swTolNONE = 0
  768.         swTolBASIC = 1
  769.         swTolBILAT = 2
  770.         swTolLIMIT = 3
  771.         swTolSYMMETRIC = 4
  772.         swTolMIN = 5
  773.         swTolMAX = 6
  774.         swTolMETRIC = 7
  775. End Enum
  776.  
  777. ' Tolerances which the user can set using Modeler::SetTolerances
  778. Public Enum swTolerances_e
  779.  
  780.         swBSCurveOutputTol = 0                  '3D bspline curve output tolerance (meters)
  781.         swBSCurveNonRationalOutputTol = 1       '3D non-rational bspline curve output tolerance (meters)
  782.         swUVCurveOutputTol = 2                          '2D trim curve output tolerance (fraction of characteristic min. face dimension)
  783.         swSurfChordTessellationTol = 3          'chord tolerance or deviation for tessellation for surfaces
  784.         swSurfAngularTessellationTol = 4        'angular tolerance or deviation for tessellation for surfaces
  785.         swCurveChordTessellationTol = 5         'chord tolerance or deviation for tessellation for curves
  786. End Enum
  787.  
  788. '----
  789. ' Mate Entity Types
  790. '
  791. '  The following are the possible mate entity type ids returned by the function
  792. '  IMateEntity::GetEntityType.
  793. '----
  794. Public Enum swMateEntityTypes_e
  795.  
  796.         swMateUnsupported = 0
  797.         swMatePoint = 1
  798.         swMateLine = 2
  799.         swMatePlane = 3
  800.         swMateCylinder = 4
  801.         swMateCone = 5
  802. End Enum
  803.  
  804. '----
  805. ' Attribute Callback Support
  806. '
  807. '  The following are the possible callback types for IAttributeDefs
  808. '----
  809. Public Enum swAttributeCallbackTypes_e
  810.  
  811.         swACBDelete = 0
  812. End Enum
  813.  
  814. Public Enum swAttributeCallbackOptions_e
  815.  
  816.         swACBRequiresCallback = 1
  817. End Enum
  818.  
  819. Public Enum swAttributeCallbackReturnValues_e
  820.  
  821.         swACBDeleteIt = 1
  822. End Enum
  823.  
  824. ' Text reference point position
  825. Public Enum swTextPosition_e
  826.  
  827.         swUPPER_LEFT = 0
  828.         swLOWER_LEFT = 1
  829.         swCENTER = 2
  830.         swUPPER_RIGHT = 3
  831.         swLOWER_RIGHT = 4
  832.         swUPPER_CENTER = 5
  833. End Enum
  834.  
  835. '----
  836. ' The following are the different types of topology resulting from a call to GetTrimCurves
  837. '----
  838. Public Enum swTopologyTypes_e
  839.  
  840.         swTopologyNull = 0
  841.         swTopologyCoEdge = 1
  842.         swTopologyVertex = 2
  843. End Enum
  844.  
  845.  
  846. '----
  847. ' Attributes associated entity state
  848. '----
  849. Public Enum swAssociatedEntityStates_e
  850.  
  851.         swIsEntityInvalid = 0
  852.         swIsEntitySuppressed = 1
  853.         swIsEntityAmbiguous = 2
  854.         swIsEntityDeleted = 3
  855. End Enum
  856.  
  857. '---
  858. ' Search Folder Types
  859. '---
  860. Public Enum swSearchFolderTypes_e
  861.  
  862.         swDocumentType = 0
  863. End Enum
  864.  
  865.  
  866. '---
  867. ' User Preference Toggles.
  868. ' The different User Preference Toggles for GetUserPreferenceToggle & SetUserPreferenceToggle
  869. '---
  870. Public Enum swUserPreferenceToggle_e
  871.  
  872.         swUseFolderSearchRules = 0
  873.         swDisplayArcCenterPoints = 1
  874.         swDisplayEntityPoints = 2
  875.         swIgnoreFeatureColors = 3
  876.         swDisplayAxes = 4
  877.         swDisplayPlanes = 5
  878.         swDisplayOrigins = 6
  879.         swDisplayTemporaryAxes = 7
  880.         swDxfMapping = 8
  881.         swSketchAutomaticRelations = 9
  882.         swInputDimValOnCreate = 10
  883.         swFullyConstrainedSketchMode = 11
  884.         swXTAssemSaveFormat = 12
  885.         swDisplayCoordSystems = 13
  886.         swExtRefOpenReadOnly = 14
  887.         swExtRefNoPromptOrSave = 15
  888.         swExtRefMultipleContexts = 16
  889.         swExtRefAutoGenNames = 17
  890.         swExtRefUpdateCompNames = 18
  891.         swDisplayReferencePoints = 19
  892.         swUseShadedFaceHighlight = 20
  893.         swDXFDontShowMap = 21
  894.         swThumbnailGraphics = 22
  895.         swUseAlphaTransparency = 23
  896.         swDynamicDrawingViewActivation = 24
  897.         swAutoLoadPartsLightweight = 25
  898.         swIGESStandardSetting = 26
  899.         swIGESNurbsSetting = 27
  900.         swTiffPrintScaleToFit = 28
  901.         swDisplayVirtualSharps = 29
  902.         swUpdateMassPropsDuringSave = 30
  903.         swDisplayAnnotations = 31
  904.         swDisplayFeatureDimensions = 32
  905.         swDisplayReferenceDimensions = 33
  906.         swDisplayAnnotationsUseAssemblySettings = 34
  907.         swDisplayNotes = 35
  908.         swDisplayGeometricTolerances = 36
  909.         swDisplaySurfaceFinishSymbols = 37
  910.         swDisplayWeldSymbols = 38
  911.         swDisplayDatums = 39
  912.         swDisplayDatumTargets = 40
  913.         swDisplayCosmeticThreads = 41
  914.  
  915.         swDetailingDisplayWithBrokenLeaders = 42
  916.         swDetailingDualDimensions = 43
  917.         swDetailingDisplayDatumsPer1982 = 44
  918.         swDetailingDisplayAlternateSection = 45
  919.         swDetailingCenterMarkShowLines = 46
  920.         swDetailingFixedSizeWeldSymbol = 47
  921.         swDetailingDimsShowParenthesisByDefaExty      Inrstyleu = 47
  922. View fy = 2
  923.          swDetan
  924. ' Thesis47
  925. View fDetan
  926.  
  927.         
  928.         
  929. l = 5         142
  930.     Const tyleu = 47
  931. Vi1size =ate
  932. 'O7
  933. Vi1size =tailingFixedSizeWels = 
  934.      a7r1
  935.   of t2Detan
  936.  
  937. 7
  938. VixedSizeWels = 
  939. of t2Detan
  940.  
  941. 7
  942. VixedSizeWels = 
  943. of t2Detrent type     Inrstyleu =    Const tyleu = 47
  944. f tPayssProOH3t2Detrent type pet:6ete
  945.  of t swFEED       = 4294p142
  946.  pe     Inign_a42
  947.  pe     Inign_yRegenPostNotifoOHcelSK    swDwgPaperCsize = 3
  948.       pe     I 4
  949.    fy = 25 = 28
  950. HcelSK    swDwgPapgor dev       swACBDeletewDwgPWSor devcelSK Enum
  951.  
  952. '----
  953. ' Parenthesi   Inrstyleu =    Conhesi   aaaaaaaaaaaaaaaaaaasSpaciht s
  954. '----nu =    Conhesi   aaaaaaaaaees_e
  955. Sl = 2
  956. Sl = 2
  957. Sl = 2
  958. Sl = u =    Conhesi   a2
  959.         swPartFeau =    ConhngDispl swTnCut As StrinAtyleu =    Const tyleu = 1
  960.         swCENTER = 2
  961.         swUPPER_Rt As S= 2
  962. Sl = uwCENTER = 2
  963.    
  964.         swS S= 2
  965. Sl = uwCENTER = 2
  966.    
  967.     o61SUse the three corrected enum's below
  968.         swMatDTMTARC =    Ellip3   
  969.         se0L
  970.         swMatDTMTAR1
  971. Eonst CIRCLE_TYPEtToggles.
  972. '  ElltumTyonversihMode =oggles.
  973. ' back = 1
  974. Endoints = 1
  975.         swD        swUseAlphayle_e
  976.  
  977.    p Ehx= 4  playArcCenterPoints = 1dER =st s  p Ehx= 4  play = 1dring = "Fillet"
  978. Putexts in a Ehx= 4  play = 1dring = "
  979. PublicCut As StrinAtyleuAayMowBSCunonst swTnBaseFlanga Ehx=