Announcements

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

How to access to path of CADLink ?

ahmed.samy661993
Contributor
Contributor

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
Reply
Accepted solutions (1)
250 Views
1 Reply
Reply (1)

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