library.adsklib

library.adsklib

Anonymous
Not applicable
1,917 Views
7 Replies
Message 1 of 8

library.adsklib

Anonymous
Not applicable

Hello! 
Is it possible through API to import a library.adsklib into Revit? 
(I know, I can do that with Create/Open Library in "Material Browser")

 

Thanks in Advanced

0 Likes
1,918 Views
7 Replies
Replies (7)
Message 2 of 8

jeremytammik
Autodesk
Autodesk

Dear Frank,

 

For the sake of completeness, let me point out that I already provided my 2 cent's worth on this in my answer to your identical question on The Building Coder:

 

http://thebuildingcoder.typepad.com/blog/2013/05/copy-and-paste-api-applications-and-modeless-assert...

 

You can launch most built-in Revit commands using PostCommand:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.3

 

However, that launches the normal UI version of each command.

 

If you want a pure API solution, you might be better off using copy and paste from some other Revit file.

 

Cheers, Jeremy.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 8

Anonymous
Not applicable

Dear Jeremy, 

I have posted my question here, because as I understood from you, I could check if other developers know about my issue.

 

A lot of people might have the same problem, we could try to get a good answer!

 

 

 

Message 4 of 8

Anonymous
Not applicable

Good Morning, I have a similar question to the one @Anonymous. @jeremytammik sends us here but it seems no answers are there. 

Jeremy also suggests the "copy and paste " function, but does it work for importing a library in material browser? are they any news?

 

 

0 Likes
Message 5 of 8

jeremytammik
Autodesk
Autodesk

All information I am aware of in this area is collected in The Building Coder topic group on material management and libraries:

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.5

   



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 6 of 8

Anonymous
Not applicable

thanks @jeremytammik  for the quick reply. I have been in that section several times, I think the closest link is this one.

In that page I saw also a good question posted by John Wilshwood asking the same problem, your answer at the time was not thorough ( as in general it's!) . I'm kindly asking you if you could help me to check if that operation is feasible (if yes, please write it down one of your detailed page blog)  and how it's possible to achieve it.

I hope, also at this time, in your magnanimity!

 

0 Likes
Message 7 of 8

jeremytammik
Autodesk
Autodesk

Dear Mario,

 

Thank you for your appreciation.

 

I am sorry to say I have no specific news in this area.

 

The material management posts and the copy and paste approach is rather old.

 

Since then, the Revit API has added a number of new material and asset creation and management APIs.

 

Therefore, it may possibly be more effective just to create new materials from scratch and equip them with the required assets.

 

 

I have not looked into it in depth myself, so I would appreciate hearing how you end up solving this.

 

Best regards,

 

Jeremy

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 8 of 8

Anonymous
Not applicable

yes Jeremy that solution was the first think came in my mind, but unfortunately, a big disadvantage for me it's not possible to store them in folders (please see picture attached)

 

Capture.JPG

0 Likes