Copying values to iProperties

Copying values to iProperties

Anonymous
Not applicable
298 Views
2 Replies
Message 1 of 3

Copying values to iProperties

Anonymous
Not applicable
Hi,

I'm making a code in VB.Net to copy some Textbox values to some iProperties fields. Until it's working fine, but not with a specified field: in the tab "Project" -> "WEB Link". Next is the code. I don't know why does this is not copying the value, among with the other fileds that are working fine!
Code:
On Error Resume Next
Dim inventorap As Inventor.Application
inventorap = GetObject(, "inventor.application")
Dim Documento As Inventor.PartDocument
Documento = inventorap.ActiveDocument
Dim Propriedades As Inventor.PropertySet
Propriedades = Documento.PropertySets.Item("Design Tracking Properties")
Propriedades.Item("Stock Number").Value = txtDesignacao.Text
Propriedades.Item("WEB Link").Value = txtMaterial.Text

This last one is the one that's not working.
Does anyone knows why is this hapenning?

Thank you!!!!
0 Likes
299 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
try it like this

Propriedades.Item("Catalog Web Link").Value = txtMaterial.Text


wrote in message news:5820501@discussion.autodesk.com...
Hi,

I'm making a code in VB.Net to copy some Textbox values to some iProperties
fields. Until it's working fine, but not with a specified field: in the tab
"Project" -> "WEB Link". Next is the code. I don't know why does this is not
copying the value, among with the other fileds that are working fine!
Code:
On Error Resume Next
Dim inventorap As Inventor.Application
inventorap = GetObject(, "inventor.application")
Dim Documento As Inventor.PartDocument
Documento = inventorap.ActiveDocument
Dim Propriedades As Inventor.PropertySet
Propriedades = Documento.PropertySets.Item("Design Tracking Properties")
Propriedades.Item("Stock Number").Value = txtDesignacao.Text
Propriedades.Item("WEB Link").Value = txtMaterial.Text

This last one is the one that's not working.
Does anyone knows why is this hapenning?

Thank you!!!!
0 Likes
Message 3 of 3

Anonymous
Not applicable
Steve,

Thanks!! It worked fine!!!!´
0 Likes