[BUG REPORT] Error setting model state table cell to empty string

[BUG REPORT] Error setting model state table cell to empty string

CattabianiI
Collaborator Collaborator
385 Views
3 Replies
Message 1 of 4

[BUG REPORT] Error setting model state table cell to empty string

CattabianiI
Collaborator
Collaborator

New post from this thread: https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/clearing-unsetting-textual-custom-ip...

It happens in Inventor 2023.2 and 2022.4.
How to reproduce the issue:

  1. Open new part
  2. create a model state
  3. create a custom iProperty named testprop in Model State1
  4. activate primary model state
  5. edit the testprop to another value (now the column of that property is in the excel table)
  6. Run the attached rule that set to an empty string the testprop for Model State1 via modelstatetable object: you get an error.

The rule:

Dim propName As String = "testprop"
Dim propTblHeader As String = "Custom"
Dim msName As String = "Model State1"
Dim propVal As String = ""

Dim facDoc As Document = ThisApplication.ActiveDocument
Dim msTbl As ModelStateTable = facDoc.ComponentDefinition.ModelStates.ModelStateTable
Dim tblClms As ModelStateTableColumns = msTbl.TableColumns
Dim thisClm As ModelStateTableColumn = tblClms.Item(propName & " [" & propTblHeader & "]")

Dim thisCell As ModelStateTableCell = thisClm.Item(msName)
thisCell.Value = propValue

0 Likes
386 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor

Maybe should report this on the feedback community forum.

https://feedback.autodesk.com/welcome/

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 4

CattabianiI
Collaborator
Collaborator

I always thought that the problem report on the feedback website was related to beta versions, are you sure that's the proper place for this kind of issue?

0 Likes
Message 4 of 4

JelteDeJong
Mentor
Mentor

I'm not sure about the definitions, but you check if the bug is still in the beta version. If it's not there anymore the bug got fixed or you have a good reason to report the bug there. (Btw to do the tests you don't have to install it on a computer. If you log in to the feedback community forum you can start a virtual machine and test on that machine.)

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes