Assembly Occorances WorkPlane in VB.Net

Assembly Occorances WorkPlane in VB.Net

Anonymous
Not applicable
376 Views
2 Replies
Message 1 of 3

Assembly Occorances WorkPlane in VB.Net

Anonymous
Not applicable
in VB6

Dim oPartPlane1 As WorkPlane
Set oPartPlane1 = oOcc1.Definition.WorkPlanes.Item(3)

I tried in VB2005

Dim oPartPlane1 As WorkPlane
oPartPlane1 = oOcc1.Definition.

after definition Workplane is not in "Disply Word Completion".

is there any other method to be used in VB2005 ?
0 Likes
377 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Intellisense behaves the same in VB 6 as it does in VB 2005. In both cases
WorkPlanes does not show up an as option. This is because the object
returned by the ComponentOccurrence.Definition property is a
ComponentDefinition object. This object does not support the WorkPlanes
property. The reason the program works is that during runtime the actual
object being returned is an AssemblyComponentDefinition, which does support
the WorkPlanes property. The same is true in VB 2005, so the code you have
will work there too.
--
Brian Ekins
Autodesk Inventor API

wrote in message news:5546580@discussion.autodesk.com...
in VB6

Dim oPartPlane1 As WorkPlane
Set oPartPlane1 = oOcc1.Definition.WorkPlanes.Item(3)

I tried in VB2005

Dim oPartPlane1 As WorkPlane
oPartPlane1 = oOcc1.Definition.

after definition Workplane is not in "Disply Word Completion".

is there any other method to be used in VB2005 ?
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks a lot Brian
0 Likes