Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I am trying to see if there is a way to get the reference document info such as display name, by selecting a drawing curve segment. and I am wondering if there is a way, what it would return in case of a line that is part of a weld bead.
Dim oDoc As DrawingDocument
Dim oView As DrawingView
Set oDoc = ThisApplication.ActiveDocument
Set oView = oDoc.Sheets.Item(1).DrawingViews.Item(1)
Dim oLine As DrawingCurve
Set oLine = oView.DrawingCurves.Item(1)
Dim RefDoc As ReferenceComponent
Call ThisApplication.ActiveDocument.SelectSet.Select(oLine.Segments.Item(1))
MsgBox "Drawing View : " & oView.Name, vbInformation
MsgBox "Line : " & , vbInformation
here is the code, simple , however I cant seem to be able to find a method to the any info on the referenced compomnent for that selected segment.
any help would be greatly appreciated.
Best,
Ali
Solved! Go to Solution.