Skip to main content

Migrate Extension Points to use new ObjectViewModel

We have migrated various methods and the TableObject to a consolidated ViewModel called ObjectViewModel. After upgrading to BimlFlex 2026, you may need to update your Extension Points to utilize the new ObjectViewModel. Below, we provide a set of conversion steps.

Add new ObjectViewModel​

If you have any Extension Points that reference methods like this table.Get...() or Get...(table) you may need convert it.

If it has the table parameter​

<#@ property name="table" type="BimlFlexModelWrapper.ObjectsWrapper" #>
<!-- Add the new ObjectViewModel -->
<# var objectViewModel = new ObjectViewModel(table, table.Connection.RelatedItem, table.Connection.RelatedItem.IntegrationStage, "SRC", this); #>

If it has the sourceTable and targetTable parameters​

<#@ property name="sourceTable" type="BimlFlexModelWrapper.ObjectsWrapper" #>
<#@ property name="targetTable" type="BimlFlexModelWrapper.ObjectsWrapper" #>
<!-- Add the new ObjectViewModels -->
<# var sourceObjectViewModel = new ObjectViewModel(sourceTable, sourceTable.Connection.RelatedItem, sourceTable.Connection.RelatedItem.IntegrationStage, "SRC", this);
var targetObjectViewModel = new ObjectViewModel(targetTable, targetTable.Connection.RelatedItem, targetTable.Connection.RelatedItem.IntegrationStage, "TGT", this); #>

Common Migrations​

BeforeAfter
var sourceConnection = EntityHelper.GetSourceConnection(table);var sourceConnection = objectViewModel.SourceConnection;
var sourceScopedName = table.GetSourceScopedName(sourceConnection);var sourceScopedName = objectViewModel.SourceScopedName;