RE: *URGENT * Accessing built in parameter for material paint

RE: *URGENT * Accessing built in parameter for material paint

Anonymous
Not applicable
582 Views
5 Replies
Message 1 of 6

RE: *URGENT * Accessing built in parameter for material paint

Anonymous
Not applicable

Dear Sir / Madam ,

 

I want to find the buid in paramater to access the Material Class "Paint" and check if the Appearance Application is "Spray" ..

 

if(    ******************. equals ("Spray") ) 

 

I am not able to find the missing "********* "  kindly provide me the code to access that . 

 

For example to access a paramater generally I do - layerMaterial.MaterialClass.Equals("Paint") to get the class Paint 

 

similarly help me retrive application please.

 

 

paint1.jpg

 

THank you.

 

Regards , 

Karthik.

0 Likes
583 Views
5 Replies
Replies (5)
Message 2 of 6

jeremytammik
Autodesk
Autodesk

Dear Karthik,

 

Please understand that it is important that you make it as easy as possible for people to understand your query.

 

You have to motivate them to take an interest in and answer it.

 

Otherwise, why should anyone take the effort to answer?

 

Prepending "RE: " and "*URGENT*" does not motivate me to help, nor make the issue any clearer.

 

In fact, it hides the issue that you really would like to solve behind capital letters and emotional pressure.

 

Please read this important article on etiquette and netiquette before we continue this discussion:

 

https://en.wikipedia.org/wiki/Etiquette_in_technology#Netiquette

 

https://en.wikipedia.org/wiki/All_caps

 

"... typing messages in all caps became closely identified with "shouting" or attention-seeking behavior, and is considered very rude. As a result, netiquette generally discourages the use of all caps when posting messages online. While all caps can be used as an alternative to rich-text "bolding" for a single word or phrase, to express emphasis, repeated use of all caps can be considered "shouting" or irritating. Its equivalence to shouting traces back to 1984 and traces back to printed typography usage of all capitals to mean shouting.[6]"

 

 

Thank you!

 

Best regards,

 

Jeremy



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

Message 3 of 6

Anonymous
Not applicable
Dear Jeremy ,

I apologise for the word context.
Would refrain from doing that in the future.

But is the query clear for you to answer ?

Or else I would rephrase and send it to you.
Thank you.
Regards ,
Karthik
0 Likes
Message 4 of 6

jeremytammik
Autodesk
Autodesk

Dear Karthik,

 

Thank you for your understanding.

 

No, your query is not completely clear to me.

 

It is an area I am not completely familiar with.

 

Hopefully somebody else is  🙂

 

Anyway, normally a sample model, snippet of source code, or reproducible case helps more than any possible rephrasing:

 

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

 

Cheers,

 

Jeremy



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

0 Likes
Message 5 of 6

Anonymous
Not applicable
Dear Jeremy ,

My query is
For a wall : Finish Materials class : Paint

Inside it for the Application part as shown in above image ,
there are three options given by the user:Spray , roller , brush


So I just wanted to access this command using Revit API.

Question : As I have to find if the wall is spray painted or not!

Kindly help me on this regard .

Thank you.

Regards ,
Karthik TS
0 Likes
Message 6 of 6

jeremytammik
Autodesk
Autodesk

Dear Karthik,

 

I would suggest that you explore that yourself a bit using RevitLookup and other more powerful methods:

 

http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python...

 

Create a wall, paint it, note the difference. Check out the element lister tool on The Building Coder, etc.

 

In the API, I see the Document Paint and IsPainted methods.

 

They seem to indicate that painting a face is associated with a specific element (the wall), face (part of the wall geometry) and material.

 

Maybe it generates a new paint element in the database?

 

Cheers,

 

Jeremy



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