Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, everybody!
Could, please, anyone help me with understanding the workflow for creating a new dimension style and editing an existing one with API?
My guess was trying to set a lookup parameter (e. g. Color) of DimensionType object like this
DT.LookupParameter("Color").Set(125);
but since there is no constructor for DimensionType object I tried to make an instance of it like this
Object oDT = new Object(); DimensionType DT = oDT as Autodesk.Revit.DB.DimensionType;
Unfortunatelly this cast fails. All the code examples I've seen used an existing DimensionType object getting it from an already placed instance of a dimension. So I'm stuck. My question is how does one obtain the collection of present dimention types (or styles) and change the parameters to needed?
Solved! Go to Solution.
