How to get the material's image path or name?

How to get the material's image path or name?

Anonymous
Not applicable
1,954 Views
6 Replies
Message 1 of 7

How to get the material's image path or name?

Anonymous
Not applicable

Hi.

In Revit SDK 2015, I want to know, is there any method to get the material's image?

Thank you for any reply.

20150903202921.jpg

0 Likes
1,955 Views
6 Replies
Replies (6)
Message 2 of 7

Revitalizer
Advisor
Advisor

Hi,

 

there may be a workaround, once invented by myself:

http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html

This approach uses a cube, assigns material to it and takes a screen shot, which need to be clipped afterwards to get the desired image.

No code provided, just get the idea.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi, Revitalizer.

Thank you for your reply.

It helps me. And I will try this to find out if it works on my project. By the way, I can't find any materils' texture information in RevitLookUp when I select a wall with a texture.

Because I am a beginer in Revit developing, so I want to make sure if I can find any texture information in  RevitLookUp.

 

Best regards.

0 Likes
Message 4 of 7

Revitalizer
Advisor
Advisor

Hi JJLee1024,

 

the material's texture information is stored in material assets.

These aren't analyzed by RevitLookup so far.

 

As of now, I haven't found a reliable way to get the texture's image paths (texture map, bump map, alpha map, etc.).

 

To the wall element and its material(s):

Material can either be defined in the wall's layer, or can be locally overwritten by the paint tool (user can select faces of that wall and assign a diffferent material).

So walls will have several materials in many cases.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 5 of 7

Anonymous
Not applicable

Dear Revitalizer

Thank you so much for your patient answer! 

This forum is very good and helpful. And I will come back when I get another problem.

Thanks again!

0 Likes
Message 6 of 7

Revitalizer
Advisor
Advisor

Hi,

 

in the link I pasted into my first answer, CustomExporter is mentioned as a way to get the UV data, the mapping coordinates.

You may have a look at this.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 7 of 7

Anonymous
Not applicable

Hi,

 

Yeah, I've noticed that and now I am looking up more information about CustomExporter on Jeremy's blog

 

Thank you for your reminding!

0 Likes