Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This code is good:
Visible = True
prt = "Part:1"
sktch = "Sketch"
Dim compOcc = Component.InventorComponent(prt)
Dim oSk As PlanarSketch = compOcc.Definition.Sketches.Item(sktch)
Dim oSkProx As PlanarSketchProxy = Nothing
Call compOcc.CreateGeometryProxy(oSk, oSkProx)
oSkProx.Visible = Visible
This code gives an error message:
Sub Main()
Visible = True
prt = "Part:1"
sktch = "Sketch"
SketchVisible
End Sub
Sub SketchVisible()
Dim compOcc = Component.InventorComponent(prt)
Dim oSk As PlanarSketch = compOcc.Definition.Sketches.Item(sktch)
Dim oSkProx As PlanarSketchProxy = Nothing
Call compOcc.CreateGeometryProxy(oSk, oSkProx)
oSkProx.Visible = Visible
End Sub
Message: "Component : The Component named "Nothing" was Not found."
Why?
Solved! Go to Solution.