Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi Community,
I would like to query the status of a prt, asm, drw with Excel VBA. So whether an object is checked out, new, in progress, etc.
I found the status for checked out in the API "IpfcServer --> IsObjectCheckedOut(WorkspaceName as String, ObjectName as String) as Boolean "
But I can't find any function/method for status "New" or "Work in progress".
I would like to check beforehand whether an object is mutable.
Does anyone have any ideas on this please?
Greetings Hannes
Translated by the Community Moderation using Google Translate
ich möchte gerne den Status eines prt, asm, drw mit Excel VBA abfragen. Also ob ein Objekt ausgescheck, Neu, in Arbeit usw. ist.
Den Staus für ausgecheckt hab ich in der API gefunden "IpfcServer --> IsObjectCheckedOut(WorkspaceName as String, ObjectName as String) as Boolean "
Aber für Status "Neu" oder "in Arbeit" kann ich keine Funktion/Methode finden.
Ich möchte vorher prüfen, ob ein Objekt änderbar ist.
Hat bitte jemand eine Idee dazu ?
Grüsse Hannes
extern ProError ProServerObjectIsModified(wchar_t* server,
wchar_t* workspace,
wchar_t* object_name,
ProBoolean* checkout_status,
ProBoolean* modifiedLocally,
ProBoolean* modifiedInWS);
/*
Purpose: Checks if the given object is modified in workspace/locally.
Input Arguments:
server - The server alias.
workspace - The workspace name.
object_name - The object name
Output Arguments:
checkout_status - PRO_B_TRUE if the object is currently checked out to active workspace.
PRO_B_FALSE for one of the following cases:
<UL>
<LI>The object is not checked out.
<LI>The object is only uploaded to workspace, but was never checked in.
<LI>The object is only saved to local workspace cache, but was never uploaded.
</UL>
modifiedLocally - PRO_B_TRUE if the object got modified locally.
modifiedInWS - PRO_B_TRUE if the object got modified in Workspace.
This is how you do it in toolkit, I guess a similar function exists in JL, I use it in Tcl.