Comparing Revision number properties between a model and a drawing

Comparing Revision number properties between a model and a drawing

anil.chauhanD2QT8
Explorer Explorer
268 Views
1 Reply
Message 1 of 2

Comparing Revision number properties between a model and a drawing

anil.chauhanD2QT8
Explorer
Explorer

Can i compare revision number properties between a model and and a drawing using ilogic?  I want to make sure both are the same and not different.  

0 Likes
269 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Try this:

Dim oDDoc As DrawingDocument = ThisDrawing.Document
Dim oMDoc As Document = ThisDrawing.ModelDocument
If oMDoc Is Nothing Then
	MsgBox("No Model document was found for this drawing. Exiting.",vbOKOnly+vbExclamation,"NO MODEL")
	Exit Sub
End If
If oMDoc.PropertySets(1).Item("Revision Number").Value <> _
	oDDoc.PropertySets(1).Item("Revision Number").Value Then
	MsgBox("Revision Number values don't match between Drawing and Model.", vbCritical, "")
End If

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes