Guest User

Untitled

a guest
Apr 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. //Create the material
  2. ElementId materialId = Material.Create(familyDoc, "My Material" + m);
  3. // adding random m to avoid same names used when running the program multiple times.
  4. material = familyDoc.get_Element(materialId) as Material;
  5. ElementId materialId2 = Material.Create(familyDoc, "My Material_2" + m); // adding random m to avoid same names used when running the program multiple times.
  6.  
  7. material2 = familyDoc.get_Element(materialId2) as Material;
Add Comment
Please, Sign In to add comment