Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By EddieS1508

Thread: Custom material parameter to Parts Custom parameter

  1. #1
    New Member
    Join Date
    August 16, 2017
    Posts
    4
    Current Local Time
    01:03 PM

    Question Custom material parameter to Parts Custom parameter

    My first time into serious Dynamo scripting
    I have added a custom parameter to materials, I need the valueof this parameter to transfer to wall parts (which have the same customparameter) thereby linking the material to the part in our inhouse system.
    This is what I have so far…
    1. I have successfully read the material custom parameter and value
    2. I have get the wall parts.
    3. OK I’m hoping someone can help me out as I’ve reached a roadblock…

    The issue I have is..
    I cannot get the parts order to match the wall construction (outer material,core, inner material), it’s retrieving them in numerical sort order resultingin incorrect transfer of custom parameter value being applied. It’s assigningthe parameter value to the wall parts (3 off) but not in the correct order.

    HELPPLEASE
    Any input would be greatly appreciated

    Attached Thumbnails Attached Thumbnails Custom material parameter to Parts Custom parameter-ucode-dyn_2.jpg  
    Attached Files Attached Files

  2. #2
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    04:03 AM
    Hello Eddie,

    I think you're looking for the section demarcated in orange in the image below. Let me know if this helps!

    Attached Thumbnails Attached Thumbnails Custom material parameter to Parts Custom parameter-revitforumquery_ucode.jpg  

  3. #3
    New Member
    Join Date
    August 16, 2017
    Posts
    4
    Current Local Time
    01:03 PM
    I have managed to resolve this.. I want back to my original basic script and found the solution was simple.
    I may try your solution and see if it's any better than what I've come up with
    Thanks for the resopnse .. amoursol
    Last edited by EddieS1508; May 3rd, 2018 at 02:31 AM.
    amoursol likes this.

Similar Threads

  1. Creating Shared Custom Material Library
    By PieterDel in forum Architecture and General Revit Questions
    Replies: 0
    Last Post: March 17th, 2016, 02:00 PM
  2. Add new parameter or property on a material
    By Revit User in forum Structure - General Questions
    Replies: 0
    Last Post: January 10th, 2016, 03:14 PM
  3. Replies: 0
    Last Post: July 24th, 2014, 10:15 AM
  4. Custom material texture: three files?
    By Gordon Price in forum Rendering and Gallery
    Replies: 1
    Last Post: May 21st, 2011, 08:26 AM
  5. Custom Material Library in 2012
    By sdbrownaia in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: April 22nd, 2011, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •