03-01-2018
12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-01-2018
12:55 AM
Try the below VBA code to get referenced document from ModelLeaderNote. Will this helpful? or Looking for specific occurrence?
Sub Main()
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oDef As AssemblyComponentDefinition
Set oDef = oDoc.ComponentDefinition
Dim oNotes As ModelLeaderNote
For Each oNotes In oDef.ModelAnnotations.ModelLeaderNotes
Dim oReferDoc As Document
Set oReferDoc = oNotes.Definition.Intent.Geometry.Parent.ComponentDefinition.Document
Next
End SubThanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
