Hi
Im trying to create new slabs in my project using
Dim slab as Autodesk.Revit.DB.Floor
slab = doc.Create.NewSlab(profile as CurveArray, level as Level, slopeline as Line, slope as Double, structural as Boolean)
I managed to successfuly create the slab, but it appears to be like, hollow, only draw its borders, weird.
Anyway, it creates a slab from a certain Type, that must be the Default.
When I load this macro in another PC, another Type of slab is created, and the hollow problem desappears.
Does anyone know how can I change this default Type, or set a new one in the API?
Any tips on the hollow slab would be good as well
thanks
Thiago
I don't know about NewSlab.
But if you went with NewFloor (Revit 2013), 2 of its overloads allow you to specify the FloorType:
NewFloor(CurveArray, FloorType, Level, Boolean)
Creates a floor within the project with the given horizontal profile and floor style on the specified level.
NewFloor(CurveArray, FloorType, Level, Boolean, XYZ)
Creates a floor within the project with the given horizontal profile and floor style on the specified level with the specified normal vector.
I've used the first of these and it works as intended.
The Boolean argument is to specify whether the floor is structural or not.