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

Adding DoorStyles to DoorStyles of the Document

0 REPLIES 0
Reply
Message 1 of 1
Aligator18
226 Views, 0 Replies

Adding DoorStyles to DoorStyles of the Document

Hello,

I'm trying to add AecDoorStyle from one document to another using .NET.

 

AecArchBaseDocument

AecArchBaseApplication Application = new AecArchBaseApplication();

AcadDocument acadDocument = Application.Documents.Open(Catalog);

aecDocument.Init(acadDocument); 

aecDocument = new AecArchBaseDocument();

foreach (AecDoorStyle doorStyle in aecDocument.DoorStyles)if (doorStyle.Name == doorParam.StyleName)

{

  if (!targetDocument.DoorStyles.Has(doorParam.StyleName))

  {

     AecDoorStyle newDoorStyle = targetDocument.DoorStyles.Add(doorStyle.Name);     

  }

}

acadDocument.Close();

After execution of this code, new style is created in new document. But I can copy parameters from one DoorStyle to another, thats why I'm having empty doorstyle in new document. How could I copy doorstyle parameters?

 

Sorry for my bad English.

Thanks 

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report

”Boost