Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to access to path of CADLink ?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
ahmed.samy661993
245 Views, 1 Reply

How to access to path of CADLink ?

I need to access to path of CADLink that appear as saved path in Manage Links, I searched in CADLinkType Class but there is nothing.

1 REPLY 1
Message 2 of 2

Within CADLinkType there is GetExternalResourceReference (inherited from Element)

 

This returns a dictionary of GUID, ExternalResourceReference. There is usually just one entry for CADLinks but either way one of the entries will contain ExternalResourceReference.InSessionPath which will point to the path of the link.

 

Additionally there is ExternalResourceReference.GetReferenceInformation that will return a dictionary that will have an entry where the Key is 'Path' and the value is the path to the link:

220429a.PNG

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

Post to forums  

Autodesk Design & Make Report