Author Topic: Schedule Formatting Problem  (Read 1552 times)

0 Members and 1 Guest are viewing this topic.

MexicanCustard

  • Swamp Rat
  • Posts: 705
Schedule Formatting Problem
« on: June 05, 2012, 01:50:21 PM »
I'm trying to make the columns in my MEP ScheduleTable left aligned.  I've tried both of the commented out lines below.  Both give me an Invalid Object error.  Does anyone have an example of how to set the alignment in an ACA/MEP Schedule Table?

Code: [Select]
var connColumn = new ScheduleTableStyleColumn();
connColumn.SetToStandard(db);
connColumn.SubSetDatabaseDefaults(db);
connColumn.PropertySetDefinitionId = psdId;
connColumn.ColumnType = ScheduleTableStyleColumnType.Normal;
connColumn.Heading = "CONNECTIONS";
connColumn.PropertyId = psd.Definitions.IndexOf("Connections");
//connColumn.CellFormatOverride.Alignment = AttachmentPoint.MiddleLeft;
//connColumn.CellFormatOverride.DefaultCellFormat.Alignment = AttachmentPoint.MiddleLeft;
style.Columns.Add(connColumn);
Revit 2019, AMEP 2019 64bit Win 10

MexicanCustard

  • Swamp Rat
  • Posts: 705
Re: Schedule Formatting Problem
« Reply #1 on: June 08, 2012, 07:59:34 AM »
Bump.  Hoping someone will see it and have a suggestion.
Revit 2019, AMEP 2019 64bit Win 10