Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Single Wall finish

Anonymous

Single Wall finish

Anonymous
Not applicable

Dear Forum Members,

If I want to change the color of a selected  wall I can do it via

doc.ActiveView.set_ProjColorOverrideByElement( 
    ids, color );

Using this the color of only the single wall changes without other walls being modified.

In the same manner how do I change the finish of the selected wall without modifying other walls.

Thanks & Regards

Sanjay Pandey

0 Likes
Reply
Accepted solutions (1)
838 Views
7 Replies
Replies (7)

jeremytammik
Autodesk
Autodesk

Does the wall finish correspond to an individual Revit database element? If so, you could presumably pass in it element id to the same method you use for the wall. You should be able to determine that with RevitLookup.

 

Cheers,

 

Jeremy

 



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

0 Likes

so-chong
Advocate
Advocate
Accepted solution

Hi,

 

Similar approach would be using the Paint Method, i think.

https://apidocs.co/apps/revit/2019/f6a99488-ae33-46f8-849d-4c68869f68cd.htm

 

There is also a RemovePaint Method, if needed.

https://apidocs.co/apps/revit/2019/7ba7c440-7ed5-c3ff-9b9e-4413bf22a0c4.htm

 

Hope this helps.

 

 

0 Likes

Anonymous
Not applicable

Thank you so much so-chong.

Could you also help me out with this:

 

Using AppearanceAssetElement I am able to get the path of the material image but that is a relative path:   39 : [String] thumbnail = Mats\MasonryCMU\Presets\t_Masonry-002.png   How do I get the complete path of the image

 

I Have posted this as a new discussion/thread.

 

Thanks & Regards

Sanjay Pandey

 

 

0 Likes

Avaris.
Advisor
Advisor

@Anonymous see my reply in your other topic:

C:\Program Files (x86)\Common Files\Autodesk Shared\Materials\<version>\assetlibrary_base.fbm\Mats\MasonryCMU\Presets

0 Likes

so-chong
Advocate
Advocate

 You're welcome, Sanjay.

 

I have not used much the AppearanceAssetElement Class, so i can not say off hand how to get the complete path of the image. However, i found this discussion with some similar questions.

 

https://forums.autodesk.com/t5/revit-api-forum/get-an-up-to-date-material-preview-image-file-path/m-...

 

Hope this helps or maybe someone else can help.

 

Cheers,

So-Chong

0 Likes

Anonymous
Not applicable

Dear Marc,
Thanks for the help. But is this path fixed across all versions and all computers as I wanted to fetch the material folder path in my add in.

Thanks & Regards
Sanjay Pandey

0 Likes

Avaris.
Advisor
Advisor
0 Likes