Message 1 of 2
iProperty Columns in Configuration Table of Model States
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I'm currently trying to write an iLogic Rule that places a Configuration Table containing the Model State Informations into a Drawing. For that i want to add the table with two additional columns that are custom iProperties. Doing so manually works fine.
But with the script i'm struggling to get them added. Either the function addConfigurationTable() gets an Error ("Wrong Parameter") or the field stays empty (with the second method). I tried both the internal and the normal title of the iProperties.
Does anyone have an Idea how i could solve this?
Below are my attempts at the script.
oDDoc = ThisDrawing.Document oSheet = oDDoc.ActiveSheet Dim modelDoc = ThisDrawing.ModelDocument.FullDocumentName ' Create the placement point for the table Dim oPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(5, 10) Dim sColumns(0 To 1) As String sColumns(0) = "Article_Nr [Custom]" sColumns(1) = "Description_DE [Custom]" ' Alternativ Setup for the Columns-Array 'Dim oColTitles() As String = {"Article_Nr [Custom]","Description_DE [Custom]"} 'MessageBox.Show(oSheet.CustomTables.Item(1).Columns.Item(2).InternalTitle.ToString) 'MessageBox.Show(oSheet.CustomTables.Item(1).Columns.Item(3).Title.ToString) oSheet.CustomTables.AddConfigurationTable(modelDoc.ToString, oPoint, "Variant Table", sColumns) 'oColTitles ' Second way i tried to add the Column (While not using the sColumns Value in the AddConfigurationTable Function 'oSheet.CustomTables.Item(2).Columns.Add("Article_Nr")
Best Regards
Marcel Meyer