How to access to path of CADLink ?

How to access to path of CADLink ?

ahmed.samy661993
Contributor Contributor
421 Views
1 Reply
Message 1 of 2

How to access to path of CADLink ?

ahmed.samy661993
Contributor
Contributor

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.

0 Likes
Accepted solutions (1)
422 Views
1 Reply
Reply (1)
Message 2 of 2

RPTHOMAS108
Mentor
Mentor
Accepted solution

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