Cast Wokrplane to Generic Object

Cast Wokrplane to Generic Object

Anonymous
Not applicable
257 Views
1 Reply
Message 1 of 2

Cast Wokrplane to Generic Object

Anonymous
Not applicable
Hi

is it possible to cast a Wokrplane to a Generic object with vba

Kind regards,

JesG
0 Likes
258 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Yes, you should be able to do something like:

Dim PartDoc As PartDocument
Set PartDoc = ThisApplication.ActiveDocument

Dim WrkPlane As Object
Set WrkPlane = PartDoc.ComponentDefinition.WorkPlanes(1)

Dim Obj As Object
Set Obj = WrkPlane

-Venkatesh Thiyagarajan.

wrote in message news:5120596@discussion.autodesk.com...
Hi

is it possible to cast a Wokrplane to a Generic object with vba

Kind regards,

JesG
0 Likes