RevitCity.com Logo

Home  |  Forums  |  Downloads  |  Gallery  |  News & Articles  |  Resources  |  Jobs  |  FAQ  |  SearchSearch  |  Join  |  LoginLogin

Welcome !

62 Users Online (60 Members): Show Users Online - Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM

 

Forums

Forums >> Workflow & Implementation >> API & Third Party Apps >> external file reference (2012 api)

Search this ThreadSearch this Thread | Page 1 of 1 |

Thu, May 5, 2011 at 9:21:54 PM | external file reference (2012 api)

#1

paulh


active

Joined: Tue, Sep 13, 2005
51 Posts
No Rating


I've been using the following code to try and get the file directory of a linked DWG file that the user has selected:

 

if(sel.Elements.Size == 1){    System.Collections.IEnumerator es = sel.Elements.GetEnumerator();    es.MoveNext();    Element el = es.Current as Element;    if (el !=null && el.IsExternalFileReference())    {        ExternalFileReference efr = el.GetExternalFileReference();        directory = ModelPathUtils.ConvertModelPathToUserVisiblePath(efr.GetAbsolutePath());    }}

However el.IsExternalFileReference() never returns true. Has anyone had any luck using this new API feature?


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

Revit API External Applications

Workflow & Implementation >> API & Third Party Apps

Mon, Sep 22, 2008 at 7:19:13 AM

2

Revit 2013 API

Workflow & Implementation >> API & Third Party Apps

Mon, Dec 31, 2012 at 10:32:36 AM

1

Add size_lookup formula via Revit API

Workflow & Implementation >> API & Third Party Apps

Mon, Mar 21, 2016 at 8:53:25 AM

0

Link to External Files in FamilyParameter Formulas

General Discussion >> Wishlist

Mon, Jan 28, 2008 at 9:20:38 AM

5

API?

General Discussion >> Revit Project Management

Fri, Apr 27, 2007 at 4:43:35 PM

4

Site Stats

Members:

1986979

Objects:

22874

Forum Posts:

152183

Job Listings:

3

Sponsored Ads

Home | Forums | Downloads | Gallery | News & Articles | Resources | Jobs | Search | Advertise | About RevitCity.com | Link To Us | Site Map | Member List | Firm List | Contact Us

Copyright 2003-2010 Pierced Media LC, a design company. All Rights Reserved.

Page generation time: 0.7663

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights