- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to be able to pull the description from the view in a drawing, capitalize that text and drop it into title block.
I have been using this to do the material and it works perfect. I thought I could just change a few things in this to make it work but no luck.
'capitalize material
Dim oDrawDoc As DrawingDocument=ThisDrawing.Document
Dim oPartDoc As Inventor.PartDocument
Dim oPropSet As PropertySet
'Dim oView As DrawingView
For Each oView In oDrawDoc.ActiveSheet.DrawingViews
If oView.ViewType = DrawingViewTypeEnum.kStandardDrawingViewType Then
If oView.ReferencedDocumentDescriptor.ReferencedDocumentType = DocumentTypeEnum.kPartDocumentObject Then
oPartDoc = DirectCast(oView.ReferencedDocumentDescriptor.ReferencedDocument ,Inventor.PartDocument)
oPropSet = oPartDoc.PropertySets.Item("{32853F0F-3444-11D1-9E93-0060B03C1CA6}")
oPropSet.Item("Material").Value = oPartDoc.ActiveMaterial.DisplayName.ToUpper
End If
End If
Next
Solved! Go to Solution.