Referenced files in a drawing

Referenced files in a drawing

cmines
Enthusiast Enthusiast
457 Views
1 Reply
Message 1 of 2

Referenced files in a drawing

cmines
Enthusiast
Enthusiast

I have a 2 part assembly on a drawing.  When I use the following code, checkFilename is giving me the full file name of one of the parts instead of the full file name of the assembly.  How can I fix this?  Thanks in advance for any help!

 

Dim checkBalloon As Balloon

Dim valueSet As BalloonValueSet

Set valueSet = CheckBalloon.BalloonValueSets.Item(1)

Dim checkFilename As String

checkFilename = valueSet.ReferencedFiles.Item(1).FullFileName

0 Likes
458 Views
1 Reply
Reply (1)
Message 2 of 2

cmines
Enthusiast
Enthusiast

I was able to figure this one out.Smiley Very Happy

 

checkFilename = valueSet.RerferencedRow.Parent.ReferencedDocumentDescriptor.FullDocumentName

 

I'm not too sure how robust this is, but it works for now.

0 Likes