<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic VBA: Method 'GetPropertyMap' of object 'ContentTableColumn' failed in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/9626246#M61063</link>
    <description>&lt;P&gt;This happened when tried to read PropertyMap values from a Content Center Family using VBA macro. (Full story in topic:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-how-to-retireve-values-from-contenttablecolumn/m-p/9625888/highlight/true#M113019" target="_blank" rel="noopener"&gt;iLogic: How to retireve values from ContentTableColumn.GetPropertyMap Method?&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create make VBA macro for reading properties from a &lt;A href="http://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-6A4768A4-2B74-48ED-ABF5-831AE1C10C1F" target="_blank" rel="noopener"&gt;FamilyTableColumn&lt;/A&gt;. And test it on&amp;nbsp;a little modified copy of ISO 7098 washer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VBA code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;For Each oColumn In oFamilyTableColumns
	With oColumn
		Debug.Print "DataType = " &amp;amp; .DataType
		Debug.Print "DisplayHeading = " &amp;amp; .DisplayHeading
		Debug.Print "Expression = " &amp;amp; .Expression
		Debug.Print "HasPropertyMap = " &amp;amp; .HasPropertyMap
		Debug.Print "InternalName = " &amp;amp; .InternalName
		Debug.Print "KeyColumnOrder = " &amp;amp; .KeyColumnOrder
		Debug.Print "Type = " &amp;amp; .Type
		Debug.Print "Units = " &amp;amp; .Units
		
		Dim s1 As String
		Dim s2 As String
		
		If .HasPropertyMap Then
		   Call oColumn.GetPropertyMap(s1, s2)
		End If
		
		Debug.Print "PropertySetId = " &amp;amp; s1
		Debug.Print "PropertyIdentifier = " &amp;amp; s2
		Debug.Print "---------------------------"
	End With
Next oColumn&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Blocks before deleted for better readability (all of them have HasPropertyMap = False )
---------------------------
DataType = 14595
DisplayHeading = Designation
Expression = {NND}
HasPropertyMap = False
InternalName = SIZE
KeyColumnOrder = 0
Type = 50422528
Units = 
PropertySetId = 
PropertyIdentifier = 
---------------------------
DataType = 14595
DisplayHeading = Size Designation
Expression = {NND}
HasPropertyMap = True
InternalName = DESIGNATION
KeyColumnOrder = 0
Type = 50422528
Units = 
PropertySetId = {32853F0F-3444-11d1-9E93-0060B03C1CA6}
PropertyIdentifier = 52
---------------------------
DataType = 14595
DisplayHeading = File Name
Expression = Copy of "ISO 7089" &amp;amp; "-" &amp;amp; {NND}&amp;amp;_&amp;amp;{MATERIAL}
HasPropertyMap = True
InternalName = FILENAME
KeyColumnOrder = 0
Type = 50422528
Units = 
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it hits column "File Name", GetPropertyMap Method fails with following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vba_error.png" style="width: 367px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/793453i469A93D428B26D15/image-size/large?v=v2&amp;amp;px=999" role="button" title="vba_error.png" alt="vba_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This error is usually thrown during attempt to modify locked/read-only object.&lt;/P&gt;&lt;P&gt;But this Family is not read-only and - as you can see in log block above the last (DESIGNATION) - PropertyMap here was got successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it means, problem is column specific. This is screenshot of Column Properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inv-column-props.png" style="width: 461px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/793455i8A829668121B08A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="inv-column-props.png" alt="inv-column-props.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No Map set here, but HasPropertyMap = True (!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible that some PropertyMap was set here before and then "removed" (in GUI - this column was never modified via VBA, iLogic etc by me). Needs future investigation, but I don't have time for that, now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 13:44:41 GMT</pubDate>
    <dc:creator>j.pavlicek</dc:creator>
    <dc:date>2020-07-09T13:44:41Z</dc:date>
    <item>
      <title>VBA: Method 'GetPropertyMap' of object 'ContentTableColumn' failed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/9626246#M61063</link>
      <description>&lt;P&gt;This happened when tried to read PropertyMap values from a Content Center Family using VBA macro. (Full story in topic:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-how-to-retireve-values-from-contenttablecolumn/m-p/9625888/highlight/true#M113019" target="_blank" rel="noopener"&gt;iLogic: How to retireve values from ContentTableColumn.GetPropertyMap Method?&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create make VBA macro for reading properties from a &lt;A href="http://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-6A4768A4-2B74-48ED-ABF5-831AE1C10C1F" target="_blank" rel="noopener"&gt;FamilyTableColumn&lt;/A&gt;. And test it on&amp;nbsp;a little modified copy of ISO 7098 washer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VBA code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;For Each oColumn In oFamilyTableColumns
	With oColumn
		Debug.Print "DataType = " &amp;amp; .DataType
		Debug.Print "DisplayHeading = " &amp;amp; .DisplayHeading
		Debug.Print "Expression = " &amp;amp; .Expression
		Debug.Print "HasPropertyMap = " &amp;amp; .HasPropertyMap
		Debug.Print "InternalName = " &amp;amp; .InternalName
		Debug.Print "KeyColumnOrder = " &amp;amp; .KeyColumnOrder
		Debug.Print "Type = " &amp;amp; .Type
		Debug.Print "Units = " &amp;amp; .Units
		
		Dim s1 As String
		Dim s2 As String
		
		If .HasPropertyMap Then
		   Call oColumn.GetPropertyMap(s1, s2)
		End If
		
		Debug.Print "PropertySetId = " &amp;amp; s1
		Debug.Print "PropertyIdentifier = " &amp;amp; s2
		Debug.Print "---------------------------"
	End With
Next oColumn&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Blocks before deleted for better readability (all of them have HasPropertyMap = False )
---------------------------
DataType = 14595
DisplayHeading = Designation
Expression = {NND}
HasPropertyMap = False
InternalName = SIZE
KeyColumnOrder = 0
Type = 50422528
Units = 
PropertySetId = 
PropertyIdentifier = 
---------------------------
DataType = 14595
DisplayHeading = Size Designation
Expression = {NND}
HasPropertyMap = True
InternalName = DESIGNATION
KeyColumnOrder = 0
Type = 50422528
Units = 
PropertySetId = {32853F0F-3444-11d1-9E93-0060B03C1CA6}
PropertyIdentifier = 52
---------------------------
DataType = 14595
DisplayHeading = File Name
Expression = Copy of "ISO 7089" &amp;amp; "-" &amp;amp; {NND}&amp;amp;_&amp;amp;{MATERIAL}
HasPropertyMap = True
InternalName = FILENAME
KeyColumnOrder = 0
Type = 50422528
Units = 
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it hits column "File Name", GetPropertyMap Method fails with following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vba_error.png" style="width: 367px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/793453i469A93D428B26D15/image-size/large?v=v2&amp;amp;px=999" role="button" title="vba_error.png" alt="vba_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This error is usually thrown during attempt to modify locked/read-only object.&lt;/P&gt;&lt;P&gt;But this Family is not read-only and - as you can see in log block above the last (DESIGNATION) - PropertyMap here was got successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it means, problem is column specific. This is screenshot of Column Properties&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inv-column-props.png" style="width: 461px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/793455i8A829668121B08A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="inv-column-props.png" alt="inv-column-props.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No Map set here, but HasPropertyMap = True (!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible that some PropertyMap was set here before and then "removed" (in GUI - this column was never modified via VBA, iLogic etc by me). Needs future investigation, but I don't have time for that, now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:44:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/9626246#M61063</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2020-07-09T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBA: Method 'GetPropertyMap' of object 'ContentTableColumn' failed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/9626259#M61064</link>
      <description>&lt;P&gt;Workaround:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Error handling to avoid macro break by GetPropertyMap Method fail (add to code above).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;On Error Resume Next
If .HasPropertyMap Then
   Call oColumn.GetPropertyMap(s1, s2)
End If
On Error GoTo 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Optionally (recommended):&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9049AA7B-D1A3-4C49-B10C-29A6E68F3189" target="_blank" rel="noopener"&gt;ContentTableColumn.ClearPropertyMap&lt;/A&gt; Method when an error is throw, to set &lt;A href="http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-9D1E4B90-3139-426E-AEE6-36E24B13D265" target="_blank" rel="noopener"&gt;HasPropertyMap&lt;/A&gt; to False.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 13:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/9626259#M61064</guid>
      <dc:creator>j.pavlicek</dc:creator>
      <dc:date>2020-07-09T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: VBA: Method 'GetPropertyMap' of object 'ContentTableColumn' failed</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/10272092#M61065</link>
      <description>&lt;P&gt;There is a problem with the FILENAME column. You can skip it with:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;If column.HasPropertyMap And column.InternalName &amp;lt;&amp;gt; "FILENAME" Then&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:19:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-method-getpropertymap-of-object-contenttablecolumn-failed/m-p/10272092#M61065</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2021-04-27T14:19:53Z</dc:date>
    </item>
  </channel>
</rss>

