- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been troubleshooting this particular function for a while and am having trouble adjusting the highlight set opacity. No matter what value I use from 0.0 to 1.0 it doesn't seem to change.
I'm worried user-settings are controlling this, rather than the code-specified values.
What I'm doing is iterating through all the hole features in all parts in an assembly. Based upon certain criteria, I add the each face in the FACES collection, of qualifying holes (HoleFeatureProxy.Faces) to an ObjectCollection.
I then create a HighlightSet in the active document, and add those ObjectCollection objects to the HighlightSet.
I have assigned many different values of opacity but all results appear the same, regardless, test after test.
I start with known RGB color values; example:
Private _Size03 As Drawing.Color = Drawing.Color.FromArgb(77, 175, 74) 'Medium Green
Then create the Inventor.Color object from those values.
Private _InvColor03 As Inventor.Color = g_inventorApplication.TransientObjects.CreateColor(_Size03.R, _Size03.G, _Size03.B, 0.4)
Here you can see I assign "0.4" but whether I put in "0.0" or "1.0" or anything between, the resultant highlight appearance is identical.
Creating the object collection, adding things to it, etc...
Dim objCol_Size03 as ObjectCollection
Dim hs_Holes_Size03 as HighlightSet
'...
objCol_Size03 = g_inventorApplication.TransientObjects.CreateObjectCollection
'....
'>>>>> Example of how faces are added to the ObjCol:
For Each f As Face In hole.HoleProxy.Faces
objCol_Size03.Add(f)
Next
'...
hs_Holes_Size03 = curDoc.CreateHighlightSet
If objCol_Size03.Count > 0 Then
hs_Holes_Size03.Color = holeColorSchemeCol.InvColor_Size03
hs_Holes_Size03.AddMultipleItems(objCol_Size03)
End If
Everything functions fine, and as expected.
I just can't find any clarification about WHAT other things I should be looking at that's controlling the opacity of my highlighting.
Does anyone have any suggestions?
Solved! Go to Solution.