Hi, I have a question for the experts.
About using the ilogic to automatically check the file name.
Check whether the file name of the drawings are consistent with the iProperty name of part.
See the figure below for details
Hi, I have a question for the experts.
About using the ilogic to automatically check the file name.
Check whether the file name of the drawings are consistent with the iProperty name of part.
See the figure below for details
To further explain, because we have a lot of drawings and expect each drawing to be automatically checked.
To further explain, because we have a lot of drawings and expect each drawing to be automatically checked.
I expect that this is what you are looking for:
Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.Sheets.Item(1)
Dim firstView As DrawingView = sheet.DrawingViews.Item(1)
Dim refDoc As PartDocument = firstView.ReferencedDocumentDescriptor.ReferencedDocument
Dim docFileName = System.IO.Path.GetFileNameWithoutExtension(doc.FullFileName)
Dim refDocFileName = System.IO.Path.GetFileNameWithoutExtension(refDoc.FullFileName)
If (docFileName <> refDocFileName) Then
MsgBox(String.Format("Drawing filename {0} is not the same as {1}", docFileName, refDocFileName))
End If
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
I expect that this is what you are looking for:
Dim doc As DrawingDocument = ThisDoc.Document
Dim sheet As Sheet = doc.Sheets.Item(1)
Dim firstView As DrawingView = sheet.DrawingViews.Item(1)
Dim refDoc As PartDocument = firstView.ReferencedDocumentDescriptor.ReferencedDocument
Dim docFileName = System.IO.Path.GetFileNameWithoutExtension(doc.FullFileName)
Dim refDocFileName = System.IO.Path.GetFileNameWithoutExtension(refDoc.FullFileName)
If (docFileName <> refDocFileName) Then
MsgBox(String.Format("Drawing filename {0} is not the same as {1}", docFileName, refDocFileName))
End If
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
Thank you for your reply. I'll test this ilogic rule.
Thank you for your reply. I'll test this ilogic rule.
Can't find what you're looking for? Ask the community or share your knowledge.