Message 1 of 6
iLogic - Accessing iProperties for different level of detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys and Gals,
I am using the following rule to write the sheet names of a drawing to that of the part number of the main view of that sheet. It works perfectly until I introduce a drawing view of a LOD (level of detail) other than master.
Does anyone know how to access the iProperties that belong to that level of detail represented in the drawing view. Ideally I want it to work independent of the name of that detail so it will work for all models with different names for LOD or having only master LOD available.
I am returned with error: Object reference not set to an instance of an object.
Pretty much the information is not where it is searching.
Dim oSheets As Sheets oSheets = ThisDoc.Document.sheets Dim oSheet As Sheet For Each oSheet In oSheets oSheet.Activate Dim oDrawingView As DrawingView oDrawingView = oSheet.DrawingViews(1) oModelName = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument.DisplayName oDesc = iProperties.Value(oModelName, "Project", "Part Number") oSheet.Name = oDesc Next