VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

External Reference

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
ajustin
527 Views, 3 Replies

External Reference

Hi Guys,

 

I need some assistance. Is their a way to know or extract the file type or file extension

of an Extrenal Reference file?

 

Thanks in advance....

3 REPLIES 3
Message 2 of 4
truss_85
in reply to: ajustin

You can use path property to get extension. Like below...

 

Public Sub export_external()

Dim oExternal As AcadExternalReference
Dim oEnt As AcadEntity
Dim pt_pnt(0 To 2) As Double

ThisDrawing.Utility.GetEntity oEnt, pt_pnt, "select a referance:"
    Set oExternal = oEnt
    MsgBox oExternal.Path
    
End Sub

 

Message 3 of 4
ajustin
in reply to: ajustin

Thanks Truss for quick reply...

Tried your suggestion and I got it...

 

One more question pls!!!!

Is their a way to extract the External Ref. File with a status of Unreferenced???

 

Thanks Again....

Ajustin

Message 4 of 4
truss_85
in reply to: ajustin

I am glad to help.

 

Sorry I could not think display status of EXTERNAL REFERENCE. I could not help that one.

 

Best Regards...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost