Message 1 of 3
Client Graphics Color change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks,
I'm drawing a nice cylinder in an assembly environement using the client graphics with this code :
Dim doc As Inventor.AssemblyDocument = ThisApplication.ActiveDocument
Dim acd As Inventor.AssemblyComponentDefinition = doc.ComponentDefinition
Dim tg As Inventor.TransientGeometry = ThisApplication.TransientGeometry
Dim treb As Inventor.TransientBRep = ThisApplication.TransientBRep
Dim p1 As Inventor.Point = tg.CreatePoint(0, 0, 0)
Dim p2 As Inventor.Point = tg.CreatePoint(0, 0, 100)
Dim sfb As Inventor.SurfaceBody = treb.CreateSolidCylinderCone(p1, p2, 10, 10, 10)
Dim cg As Inventor.ClientGraphics = acd.ClientGraphicsCollection.Add("Test")
Dim n As Inventor.GraphicsNode = cg.AddNode(1)
Dim s As Inventor.SurfaceGraphics = n.AddSurfaceGraphics(sfb)
ThisApplication.ActiveView.Update
I would like to change it's color to transparent blue by code. I've been playing with color properties but with no luck.
Kind regards,
FINET L.
If this post solved your question, please kindly mark it as "Solution"
If this post helped out in any way to solve your question, please drop a "Like"