Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, want to change the style for my section view base on StyleID or StyleName
but I got the error message: " need to override property StyleId()"
Here is my code:
using (Transaction civiltr = ObjectID.Database.TransactionManager.StartTransaction())
{
CivilEntity obj = civiltr.GetObject(ObjectID, OpenMode.ForWrite) as CivilEntity;
/// Tried with /// SectionView obj = civiltr.GetObject(ObjectID, OpenMode.ForWrite) as SectionView ; ( not work also) //////
obj.StyleId = StyleID;
/// also tried with obj.StyleName too //////
civiltr.Commit();
}
Thanks
Solved! Go to Solution.
Alumni