Message 1 of 9
Not applicable
08-17-2017
07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, this is my first post here.
I am trying to create new material and then add (like with the + button) new Thermal and Physical assets with filled data.
1. I create the matherial
transaction.Start("CreateMaterial");
// Create new material
var newMaterial = Material.Create(doc, "JustCreated");
// Add attach to class
transaction.Commit();
2. Create Thermal Asset
var thermal = new ThermalAsset("Thermal1", ThermalMaterialType.Solid)
{
TransmitsLight = false,
Permeability = 200.00,
Porosity = 300.00,
Reflectivity = 100.00,
ElectricalResistivity = 11.00
};
PropertySetElement.Create(doc, thermal);2.1. Wondering how I can get the list of predefined assets just to Duplicate one for the material.
3. Cannot create a Physical Asset the same way
4. Cannot assign this Asset to the Material
Can someone share some experience, thank you?
Solved! Go to Solution.