Message 1 of 3
Asses AutoCAD dwg Custom properties with iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I have a drawing where there is a ReferencedOLE link to C: \ temp \ 4217901.dwg.
I would like to read some Custom Properties into my Inventor drawing.
fx System
I can get the ReferencedOLEFile path with this code:
Dim oDoc As Document oDoc = ThisApplication.ActiveDocument If oDoc.ReferencedOLEFileDescriptors.Count = 0 Then MessageBox.Show("There aren't any OLE references in this document.", "OLE - iLogic") Exit Sub End If Dim aOLERefs() As ReferencedOLEFileDescriptor ReDim aOLERefs(oDoc.ReferencedOLEFileDescriptors.Count - 1) Dim iRefCount As Integer iRefCount = oDoc.ReferencedOLEFileDescriptors.Count Dim i As Integer For i = 1 To iRefCount aOLERefs(i - 1) = oDoc.ReferencedOLEFileDescriptors.Item(i) MessageBox.Show(aOLERefs(i - 1).FullFileName, "OLE Path") Next
Is it possible to read Custom Properties with System.io.file?