|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > IsDetachedDrawing |
Checks if a drawing is detached.
Please note a detached drawing is a drawing that has been saved as detached in Solidworks CAD.
call DBWShell("IsDetachedDrawing UniqueID")
UniqueID |
unique id of the document |
@IS_DETACHED_DRAWING |
0: it is not a detached drawing |
docUid=1234
call DBWShell("IsDetachedDrawing " & docUid )
IsDetached = DBWResult("@IS_DETACHED_DRAWING")
if IsDetached="1" then
DBWMsgBox "document with uid=" & docUid & " is a detached drawing"
Else
DBWMsgBox "document with uid=" & docUid & " is not a detached drawing"
End if
Set pDBWInit = CreateObject("MwPDMApi.Initialize")
Set pDBWAppl = pDBWInit.StartConnection(DBWorksApplicationName)
IsDetached = pDBWAppl.CADSystem.IsDetachedDrawing(docUid)