Results 1 to 4 of 4

Thread: Update Materials list through API

  1. #1
    Active Member
    Join Date
    2007-08
    Posts
    61
    Login to Give a bone
    0

    Question Update Materials list through API

    I am trying to update the materials list in my template file and base it on Masterspec. I do not want to define the parameters of the materials but just add new material names.

    Has anyone tried to do this?

  2. #2
    100 Club
    Join Date
    2004-02
    Location
    Brookline, MA
    Posts
    186
    Login to Give a bone
    0

    Default Re: Update Materials list through API

    You should be able to either create new materials or duplicate existing ones to do what you're looking for.

    -Matt

  3. #3
    Active Member
    Join Date
    2007-08
    Posts
    61
    Login to Give a bone
    0

    Default Re: Update Materials list through API

    Yes- I understand that but I am trying to automate the task through using excel, notepad, etc. to populate the materials in the template file instead of inputing it manually!

  4. #4
    Active Member
    Join Date
    2015-10
    Location
    Escondido, CA
    Posts
    91
    Login to Give a bone
    0

    Default Re: Update Materials list through API

    I think that is what Matt meant. Using the API you can duplicate existing materials or add new ones.

    Look at Material.Duplicate() which is overriden by base classes such as MaterialSteel and MaterialConcrete. This is ideal if you want to create a new material with nearly all the same properties as an existing one.

    Also look at the Materials class which has functions for adding new materials, such as AddSteel(), AddConcrete(). You can access Materials from Document.Settings.

    Good luck,

Similar Threads

  1. Materials Library 2011 Update 1 question
    By Pedro Aroso in forum ACA General
    Replies: 0
    Last Post: 2010-10-26, 10:47 AM
  2. list of materials being used
    By Bryan Thatcher in forum Revit Architecture - General
    Replies: 2
    Last Post: 2009-09-10, 05:56 PM
  3. Line Length to Materials List
    By surber in forum AutoCAD General
    Replies: 1
    Last Post: 2007-06-19, 01:08 PM
  4. LIST Command doesn't list Attached by Layer Materials
    By rbdome in forum AutoCAD 3D (2007 and above)
    Replies: 2
    Last Post: 2007-01-18, 02:15 AM
  5. Printed list of default Materials?
    By Tyveka in forum Revit Architecture - General
    Replies: 6
    Last Post: 2007-01-04, 02:17 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
  •