Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

VB about get Material of Face Style and Fill Style

Experimenter
Experimenter

Hi Guys, 

I have some question of VB, 89257611ba7e63018002536dc574377ef0f1aea.jpg

now I can catch the Material in MechanicalModeling, the code is:

 ----

Dim objDOC As SolidEdgeFramework.SolidEdgeDocument

TextBox12.Text = objDOC.Properties.Item("MechanicalModeling").Item("Material").Value

-----

And show

擷取.JPG

 

But I want to get the Material of red box: Face Style and Fill Style, and with comboBox, 

so... how can I do?

 

Thanks!

 

Taco.

 

2 REPLIES

Re: VB about get Material of Face Style and Fill Style

Phenom
Phenom

@Taco wrote:

Hi Guys, 

I have some question of VB, 89257611ba7e63018002536dc574377ef0f1aea.jpg

now I can catch the Material in MechanicalModeling, the code is:

 ----

Dim objDOC As SolidEdgeFramework.SolidEdgeDocument

TextBox12.Text = objDOC.Properties.Item("MechanicalModeling").Item("Material").Value

-----

And show

擷取.JPG

 

But I want to get the Material of red box: Face Style and Fill Style, and with comboBox, 

so... how can I do?

 

Thanks!

 

Taco.

 


If you only need to know the name of them it is:

 

objDOC.Properties.Item("MechanicalModeling").Item(3).Value    'Face style

objDOC.Properties.Item("MechanicalModeling").Item(4).Value    'Fill style

 

Re: VB about get Material of Face Style and Fill Style

Experimenter
Experimenter

objDOC.Properties.Item("MechanicalModeling").Item(2).Value           'Face style
objDOC.Properties.Item("MechanicalModeling").Item(3).Value           'Fill style
-----
This is the answer

Thanks very much!!
Taco