Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to read the revision of a model using vba script, but do not seem to get it,
what is wrong with the following code:
Dim oProps As PropertySet
Set oProps = oDoc.PropertySets.Item("Design Tracking Properties")
Dim partNumber As String
Dim partRevision As String
On Error Resume Next
partNumber = oProps.Item("Part Number").Value
partRevision = oProps.Item("Revision Number").Value
On Error GoTo 0
If partNumber = "" Then partNumber = oDoc.DisplayName
If partRevision = "" Then partRevision = "0"
Giel
Solved! Go to Solution.