RevitCity.com Logo

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

Welcome !

253 Users Online (95 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 >> Why I can't to load one family to another?

Search this ThreadSearch this Thread | Page 1 of 1 |

Thu, Aug 1, 2013 at 3:36:04 PM | Why I can't to load one family to another?

#1

lebedun


active

Joined: Wed, Jul 31, 2013
2 Posts
No Rating


On debugging the following code I have an exeption on load method (shown bold)

 

string templateFileName = @"C:\Documents and Settings\All Users\Application Data\Autodesk\RVT 2014\Family Templates\Russian\Метрическая система, типовая модель.rft";

Document familyPlate = externalCommandData.Application.Application.NewFamilyDocument(templateFileName);

Transaction transaction = new Transaction(familyPlate, "pop");

transaction.Start();

familyPlate.OwnerFamily.Name = "Plate";

familyPlate.FamilyManager.NewType("Plate Type 1");

transaction.Commit();

familyPlate.SaveAs(@"D:\Arhive\Visual Studio\HelloWorld\1.rfa");

Document familyBlock = externalCommandData.Application.Application.NewFamilyDocument(templateFileName);

Transaction transaction2 = new Transaction(familyBlock, "pop2");

transaction2.Start();

familyBlock.LoadFamily(familyPlate);

transaction2.Commit();

familyBlock.SaveAs(@"D:\Arhive\Visual Studio\HelloWorld\2.rfa");

return Autodesk.Revit.UI.Result.Succeeded;



Edited on: Thu, Aug 1, 2013 at 10:38:29 AM

This user is offline

 

Thu, Aug 8, 2013 at 9:11:21 PM | Why I can't to load one family to another?

#2

stealthnyc


active

Joined: Fri, Sep 14, 2007
63 Posts
5 Stars: 1 Votes


I'm no expert, but have you tried only using one transaction instead of two?


This user is offline

 

Search this ThreadSearch this Thread | Page 1 of 1 |



Similar Threads

Thread/Thread Starter

Forum

Last Post

Replies

cannot load families into my project

Revit Building >> Technical Support

Tue, Aug 15, 2006 at 7:20:21 PM

2

Family Won't Load

Revit Building >> Technical Support

Mon, Apr 11, 2011 at 11:34:13 PM

4

Family Won't Load

Revit Building >> Technical Support

Tue, Nov 28, 2017 at 2:50:38 PM

3

Families won't load?

Revit Structure >> Technical Support

Tue, Sep 2, 2008 at 6:17:06 PM

5

2011 revit arch won't load families out of the imperial library

Revit Systems >> Technical Support

Mon, May 9, 2011 at 2:22:28 PM

2

Site Stats

Members:

1651520

Objects:

22099

Forum Posts:

151693

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: 10.8015

Login

User Name:

Password:

Remember Me  

Forgot Password?

Search Forums

Advanced Search

Search Forums

Advanced Search


Clear Highlights


Clear Highlights