com.sculley.jim.swjava
Class SldWorks

java.lang.Object
  |
  +--com.sculley.jim.swjava.peer.CppPeer
        |
        +--com.sculley.jim.swjava.SldWorks

public class SldWorks
extends CppPeer


Constructor Summary
SldWorks(long ptr)
          Insert the method's description here.
 
Method Summary
 ModelDoc activateDoc(java.lang.String name, boolean silentMode)
          Insert the method's description here.
 boolean addFileOpenItem(java.lang.String functionInLibrary, java.lang.String description)
          Insert the method's description here.
 boolean addFileSaveAsItem(java.lang.String functionInLibrary, java.lang.String description, long fileType)
          Insert the method's description here.
 boolean addMenu(long docType, java.lang.String menuString, long position)
          Insert the method's description here.
 boolean addMenuItem(long docType, java.lang.String menuString, long position, java.lang.String functionInLibrary)
          Insert the method's description here.
 boolean addMenuPopupItem(long docType, long selType, java.lang.String itemName, java.lang.String functionInLibrary, java.lang.String customNames)
          Insert the method's description here.
 void arrangeWindows(long style)
          Insert the method's description here.
 void closeDoc(java.lang.String docName)
          Insert the method's description here.
 AssemblyDoc createNewAssembly()
          Insert the method's description here.
 DrawingDoc createNewDrawing(long templateType, java.lang.String templateName, long paperSize, double width, double height)
          Insert the method's description here.
 PartDoc createNewPart()
          Insert the method's description here.
 void createNewWindow()
          Insert the method's description here.
 void exitApp()
          Insert the method's description here.
 ModelDoc getActiveDoc()
          Insert the method's description here.
 java.lang.String getActivePrinter()
          Insert the method's description here.
 java.lang.String getCurrentLanguage()
          Insert the method's description here.
 java.lang.String getCurrentWorkingDirectory()
          Insert the method's description here.
 java.lang.String getDataFolder(boolean showErrors)
          Insert the method's description here.
 long getDateCode()
          Insert the method's description here.
 java.lang.String[] getDocumentDependencies(java.lang.String docName, boolean fullDepth, boolean useSearchRules)
          Insert the method's description here.
 long getDocumentDependenciesCount(java.lang.String docName, boolean fullDepth, boolean useSearchRules)
          Insert the method's description here.
 Environment getEnvironment()
          Insert the method's description here.
 ModelDoc getFirstDocument()
          Insert the method's description here.
 FrameObject getFrame()
          Insert the method's description here.
 Modeler getModeler()
          Insert the method's description here.
 boolean getMouseDragMode(long command)
          Insert the method's description here.
 java.util.Enumeration getOpenDocuments()
          Insert the method's description here.
 java.lang.String getRevisionNumber()
          Insert the method's description here.
 java.lang.String getSearchFolders(long folderType)
          Insert the method's description here.
 double getUserPreferenceDoubleValue(long userPreferenceValue)
          Insert the method's description here.
 long getUserPreferenceIntegerValue(long userPreferenceValue)
          Insert the method's description here.
 boolean getUserPreferenceToggle(long userPreferenceValue)
          Insert the method's description here.
 java.lang.String[] getVersionHistory(java.lang.String fileName)
          Insert the method's description here.
 int getVersionHistoryCount(java.lang.String fileName)
          Insert the method's description here.
 boolean isSelectionFiltering(long selType)
          Insert the method's description here.
 boolean isUserControl()
          Insert the method's description here.
 boolean isVisible()
          Insert the method's description here.
 boolean loadAddIn(java.lang.String fileName)
          Insert the method's description here.
 boolean loadFile(java.lang.String fileName, java.lang.String argList)
          Insert the method's description here.
 ModelDoc openDoc(java.lang.String docName, long docType)
          Insert the method's description here.
 ModelDoc openDocSilent(java.lang.String docName, long docType)
          Insert the method's description here.
 void quitDoc(java.lang.String docName)
          Insert the method's description here.
 boolean recordLine(java.lang.String line)
          Insert the method's description here.
 boolean removeFileOpenItem(java.lang.String functionInLibrary, java.lang.String description)
          Insert the method's description here.
 boolean removeFileSaveAsItem(java.lang.String functionInLibrary, java.lang.String description, long fileType)
          Insert the method's description here.
 boolean removeMenu(long docType, java.lang.String menuName, java.lang.String functionInLibrary)
          Insert the method's description here.
 boolean removeMenuPopupItem(long docType, long selType, java.lang.String itemName, java.lang.String functionInLibrary, java.lang.String customNames, long notUsed)
          Insert the method's description here.
 boolean replaceReferencedDocument(java.lang.String target, java.lang.String oldRef, java.lang.String newRef)
          Insert the method's description here.
 long sendMessageToUser(java.lang.String message, long icon, long button)
          Insert the method's description here.
 void setActivePrinter(java.lang.String printerName)
          Insert the method's description here.
 boolean setAllowsFailedFeatureCreation(boolean allowsCreation)
          Insert the method's description here.
 boolean setCurrentWorkingDirectory(java.lang.String directory)
          Insert the method's description here.
 void setDocVisibleOnLoad(boolean visibleOnLoad, long docType)
          Insert the method's description here.
 boolean setNewDwgTemplateSize(long templateType, java.lang.String templateName)
          Insert the method's description here.
 boolean setSearchFolders(long folderType, java.lang.String folderNames)
          Insert the method's description here.
 boolean setSelectionFiltering(long selType, boolean enabled)
          Insert the method's description here.
 void setStatusBarVisible(boolean visible)
          Insert the method's description here.
 void setUserControl(boolean newUserControl)
          Insert the method's description here.
 boolean setUserPreferenceDoubleValue(long userPreferenceValue, double value)
           
 boolean setUserPreferenceIntegerValue(long userPreferenceValue, long value)
           
 boolean setUserPreferenceToggle(long userPreferenceValue, boolean enabled)
           
 void setVisible(boolean visible)
          Insert the method's description here.
 boolean unloadAddIn(java.lang.String name)
          Insert the method's description here.
 
Methods inherited from class com.sculley.jim.swjava.peer.CppPeer
getPtr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SldWorks

public SldWorks(long ptr)
         throws java.lang.IllegalArgumentException
Insert the method's description here. Creation date: (12/28/99 9:49:26 PM)
Method Detail

activateDoc

public ModelDoc activateDoc(java.lang.String name,
                            boolean silentMode)
                     throws ActivateDocException
Insert the method's description here. Creation date: (1/28/00 5:48:21 PM)
Parameters:
name - java.lang.String
silentMode - boolean
Returns:
com.sculley.jim.swjava.ModelDoc

addFileOpenItem

public boolean addFileOpenItem(java.lang.String functionInLibrary,
                               java.lang.String description)
Insert the method's description here. Creation date: (1/29/00 12:20:35 AM)
Parameters:
functionInLibrary - java.lang.String
description - java.lang.String
Returns:
boolean

addFileSaveAsItem

public boolean addFileSaveAsItem(java.lang.String functionInLibrary,
                                 java.lang.String description,
                                 long fileType)
Insert the method's description here. Creation date: (1/29/00 12:20:35 AM)
Parameters:
functionInLibrary - java.lang.String
description - java.lang.String
Returns:
boolean

addMenu

public boolean addMenu(long docType,
                       java.lang.String menuString,
                       long position)
Insert the method's description here. Creation date: (1/29/00 7:46:02 PM)
Parameters:
docType - long
menuString - java.lang.String
position - long
Returns:
boolean

addMenuItem

public boolean addMenuItem(long docType,
                           java.lang.String menuString,
                           long position,
                           java.lang.String functionInLibrary)
Insert the method's description here. Creation date: (1/29/00 7:46:02 PM)
Parameters:
docType - long
menuString - java.lang.String
position - long
Returns:
boolean

addMenuPopupItem

public boolean addMenuPopupItem(long docType,
                                long selType,
                                java.lang.String itemName,
                                java.lang.String functionInLibrary,
                                java.lang.String customNames)
Insert the method's description here. Creation date: (1/29/00 7:46:02 PM)
Parameters:
docType - long
menuString - java.lang.String
position - long
Returns:
boolean

arrangeWindows

public void arrangeWindows(long style)
Insert the method's description here. Creation date: (1/29/00 11:33:06 PM)
Parameters:
style - long

closeDoc

public void closeDoc(java.lang.String docName)
Insert the method's description here. Creation date: (1/30/00 12:48:46 AM)
Parameters:
docName - java.lang.String

createNewAssembly

public AssemblyDoc createNewAssembly()
Insert the method's description here. Creation date: (2/6/00 4:21:39 PM)
Returns:
com.sculley.jim.swjava.AssemblyDoc

createNewDrawing

public DrawingDoc createNewDrawing(long templateType,
                                   java.lang.String templateName,
                                   long paperSize,
                                   double width,
                                   double height)
Insert the method's description here. Creation date: (2/6/00 8:05:58 PM)
Parameters:
templateType - long
templateName - java.lang.String
paperSize - long
width - double
height - double
Returns:
com.sculley.jim.swjava.DrawingDoc

createNewPart

public PartDoc createNewPart()
Insert the method's description here. Creation date: (2/6/00 8:10:48 PM)
Returns:
com.sculley.jim.swjava.PartDoc

createNewWindow

public void createNewWindow()
Insert the method's description here. Creation date: (1/30/00 1:04:35 AM)

exitApp

public void exitApp()
Insert the method's description here. Creation date: (1/30/00 8:36:02 PM)

getActiveDoc

public ModelDoc getActiveDoc()
Insert the method's description here. Creation date: (12/6/99 12:39:55 PM)
Returns:
DispatchObject

getActivePrinter

public java.lang.String getActivePrinter()
Insert the method's description here. Creation date: (12/6/99 12:39:55 PM)
Returns:
DispatchObject

getCurrentLanguage

public java.lang.String getCurrentLanguage()
Insert the method's description here. Creation date: (1/30/00 9:46:05 PM)
Returns:
java.lang.String

getCurrentWorkingDirectory

public java.lang.String getCurrentWorkingDirectory()
Insert the method's description here. Creation date: (1/30/00 9:46:05 PM)
Returns:
java.lang.String

getDataFolder

public java.lang.String getDataFolder(boolean showErrors)
Insert the method's description here. Creation date: (1/30/00 10:10:36 PM)
Parameters:
showErrors - boolean
Returns:
java.lang.String

getDateCode

public long getDateCode()
Insert the method's description here. Creation date: (1/30/00 1:28:35 AM)
Returns:
long

getDocumentDependencies

public java.lang.String[] getDocumentDependencies(java.lang.String docName,
                                                  boolean fullDepth,
                                                  boolean useSearchRules)
Insert the method's description here. Creation date: (1/31/00 8:19:32 PM)
Parameters:
docName - java.lang.String
fullDepthSearch - boolean
useSearchRules - boolean
Returns:
java.lang.String[]

getDocumentDependenciesCount

public long getDocumentDependenciesCount(java.lang.String docName,
                                         boolean fullDepth,
                                         boolean useSearchRules)
Insert the method's description here. Creation date: (1/31/00 8:21:22 PM)
Returns:
long

getEnvironment

public Environment getEnvironment()
Insert the method's description here. Creation date: (2/5/00 10:41:13 PM)
Returns:
com.sculley.jim.swjava.Environment

getFirstDocument

public ModelDoc getFirstDocument()
Insert the method's description here. Creation date: (2/5/00 11:12:05 PM)
Returns:
com.sculley.jim.swjava.ModelDoc

getFrame

public FrameObject getFrame()
Insert the method's description here. Creation date: (1/30/00 9:32:20 PM)
Returns:
com.sculley.jim.swjava.FrameObject

getModeler

public Modeler getModeler()
Insert the method's description here. Creation date: (2/5/00 11:14:20 PM)
Returns:
com.sculley.jim.swjava.Modeler

getMouseDragMode

public boolean getMouseDragMode(long command)
Insert the method's description here. Creation date: (2/5/00 11:16:28 PM)
Parameters:
command - long
Returns:
boolean

getOpenDocuments

public java.util.Enumeration getOpenDocuments()
Insert the method's description here. Creation date: (1/30/00 4:41:42 PM)
Returns:
java.util.Enumeration

getRevisionNumber

public java.lang.String getRevisionNumber()
Insert the method's description here. Creation date: (2/12/00 9:56:14 AM)
Returns:
java.lang.String

getSearchFolders

public java.lang.String getSearchFolders(long folderType)
Insert the method's description here. Creation date: (2/5/00 11:18:20 PM)
Returns:
java.lang.String

getUserPreferenceDoubleValue

public double getUserPreferenceDoubleValue(long userPreferenceValue)
Insert the method's description here. Creation date: (2/5/00 11:23:13 PM)
Parameters:
userPreferenceValue - long
Returns:
double

getUserPreferenceIntegerValue

public long getUserPreferenceIntegerValue(long userPreferenceValue)
Insert the method's description here. Creation date: (2/5/00 11:23:45 PM)
Parameters:
userPreferenceValue - long
Returns:
long

getUserPreferenceToggle

public boolean getUserPreferenceToggle(long userPreferenceValue)
Insert the method's description here. Creation date: (2/5/00 11:24:18 PM)
Parameters:
userPreferenceValue - long
Returns:
boolean

getVersionHistory

public java.lang.String[] getVersionHistory(java.lang.String fileName)
Insert the method's description here. Creation date: (2/12/00 8:16:34 PM)
Parameters:
fileName - java.lang.String
Returns:
java.lang.String[]

getVersionHistoryCount

public int getVersionHistoryCount(java.lang.String fileName)
Insert the method's description here. Creation date: (2/5/00 11:25:37 PM)
Parameters:
fileName - java.lang.String
Returns:
int

isSelectionFiltering

public boolean isSelectionFiltering(long selType)
Insert the method's description here. Creation date: (2/5/00 11:20:10 PM)
Parameters:
selType - long
Returns:
boolean

isUserControl

public boolean isUserControl()
Insert the method's description here. Creation date: (12/6/99 12:42:09 PM)
Returns:
boolean

isVisible

public boolean isVisible()
Insert the method's description here. Creation date: (12/6/99 12:46:36 PM)
Returns:
boolean

loadAddIn

public boolean loadAddIn(java.lang.String fileName)
Insert the method's description here. Creation date: (2/5/00 11:26:56 PM)
Parameters:
fileName - java.lang.String
Returns:
boolean

loadFile

public boolean loadFile(java.lang.String fileName,
                        java.lang.String argList)
Insert the method's description here. Creation date: (2/5/00 11:29:10 PM)
Parameters:
fileName - java.lang.String
argList - java.lang.String
Returns:
boolean

openDoc

public ModelDoc openDoc(java.lang.String docName,
                        long docType)
Insert the method's description here. Creation date: (1/30/00 4:04:08 PM)
Parameters:
docName - java.lang.String
docType - long
Returns:
com.sculley.jim.swjava.ModelDoc

openDocSilent

public ModelDoc openDocSilent(java.lang.String docName,
                              long docType)
Insert the method's description here. Creation date: (2/6/00 8:33:33 PM)
Parameters:
docName - java.lang.String
docType - long
Returns:
com.sculley.jim.swjava.ModelDoc

quitDoc

public void quitDoc(java.lang.String docName)
Insert the method's description here. Creation date: (2/8/00 8:17:35 PM)
Parameters:
docName - java.lang.String

recordLine

public boolean recordLine(java.lang.String line)
Insert the method's description here. Creation date: (2/8/00 8:19:28 PM)
Parameters:
line - java.lang.String
Returns:
boolean

removeFileOpenItem

public boolean removeFileOpenItem(java.lang.String functionInLibrary,
                                  java.lang.String description)
Insert the method's description here. Creation date: (2/8/00 8:33:21 PM)
Parameters:
f - java.lang.String
d - java.lang.String
Returns:
boolean

removeFileSaveAsItem

public boolean removeFileSaveAsItem(java.lang.String functionInLibrary,
                                    java.lang.String description,
                                    long fileType)
Insert the method's description here. Creation date: (1/29/00 12:20:35 AM)
Parameters:
functionInLibrary - java.lang.String
description - java.lang.String
Returns:
boolean

removeMenu

public boolean removeMenu(long docType,
                          java.lang.String menuName,
                          java.lang.String functionInLibrary)
Insert the method's description here. Creation date: (2/9/00 7:25:55 PM)
Parameters:
docType - long
menuName - java.lang.String
functionInLibrary - java.lang.String
Returns:
boolean

removeMenuPopupItem

public boolean removeMenuPopupItem(long docType,
                                   long selType,
                                   java.lang.String itemName,
                                   java.lang.String functionInLibrary,
                                   java.lang.String customNames,
                                   long notUsed)
Insert the method's description here. Creation date: (1/29/00 7:46:02 PM)
Parameters:
docType - long
menuString - java.lang.String
position - long
Returns:
boolean

replaceReferencedDocument

public boolean replaceReferencedDocument(java.lang.String target,
                                         java.lang.String oldRef,
                                         java.lang.String newRef)
Insert the method's description here. Creation date: (2/10/00 7:42:36 PM)
Parameters:
target - java.lang.String
oldRef - java.lang.String
newRef - java.lang.String
Returns:
boolean

sendMessageToUser

public long sendMessageToUser(java.lang.String message,
                              long icon,
                              long button)
Insert the method's description here. Creation date: (2/12/00 10:07:44 AM)
Parameters:
message - java.lang.String
icon - long
button - long
Returns:
long

setActivePrinter

public void setActivePrinter(java.lang.String printerName)
Insert the method's description here. Creation date: (1/27/00 5:44:19 PM)
Parameters:
printerName - java.lang.String

setAllowsFailedFeatureCreation

public boolean setAllowsFailedFeatureCreation(boolean allowsCreation)
Insert the method's description here. Creation date: (1/29/00 10:27:07 PM)
Parameters:
allowsCreation - boolean

setCurrentWorkingDirectory

public boolean setCurrentWorkingDirectory(java.lang.String directory)
Insert the method's description here. Creation date: (2/12/00 8:09:15 PM)
Parameters:
directory - java.lang.String
Returns:
boolean

setDocVisibleOnLoad

public void setDocVisibleOnLoad(boolean visibleOnLoad,
                                long docType)
Insert the method's description here. Creation date: (1/30/00 2:16:54 AM)
Parameters:
visibleOnLoad - boolean

setNewDwgTemplateSize

public boolean setNewDwgTemplateSize(long templateType,
                                     java.lang.String templateName)
Insert the method's description here. Creation date: (2/7/00 8:57:34 PM)
Parameters:
templateType - long
Returns:
boolean

setSearchFolders

public boolean setSearchFolders(long folderType,
                                java.lang.String folderNames)
Insert the method's description here. Creation date: (2/5/00 11:18:20 PM)
Returns:
java.lang.String

setSelectionFiltering

public boolean setSelectionFiltering(long selType,
                                     boolean enabled)
Insert the method's description here. Creation date: (2/5/00 11:20:10 PM)
Parameters:
selType - long
Returns:
boolean

setStatusBarVisible

public void setStatusBarVisible(boolean visible)
Insert the method's description here. Creation date: (1/30/00 1:43:38 AM)
Parameters:
visible - boolean

setUserControl

public void setUserControl(boolean newUserControl)
Insert the method's description here. Creation date: (12/6/99 12:42:09 PM)
Parameters:
newUserControl - boolean

setUserPreferenceDoubleValue

public boolean setUserPreferenceDoubleValue(long userPreferenceValue,
                                            double value)

setUserPreferenceIntegerValue

public boolean setUserPreferenceIntegerValue(long userPreferenceValue,
                                             long value)

setUserPreferenceToggle

public boolean setUserPreferenceToggle(long userPreferenceValue,
                                       boolean enabled)

setVisible

public void setVisible(boolean visible)
Insert the method's description here. Creation date: (12/6/99 12:46:36 PM)
Parameters:
newVisible - boolean

unloadAddIn

public boolean unloadAddIn(java.lang.String name)
Insert the method's description here. Creation date: (2/12/00 8:15:55 PM)
Parameters:
name - java.lang.String
Returns:
boolean