Relationship between AssemblyDocument and Document in C#

Relationship between AssemblyDocument and Document in C#

waynehelley
Collaborator Collaborator
604 Views
1 Reply
Message 1 of 2

Relationship between AssemblyDocument and Document in C#

waynehelley
Collaborator
Collaborator

Hi all,

 

When using VB.Net, it allows me to use Dim assDoc As AssemblyDocument = invApp.ActiveDocument

 

but in C# using AssemblyDocument assDoc = invApp.ActiveDocument throws an error.

 

Does anybody know how I can get around this?

 

docToAssDoc.png

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Accepted solutions (1)
605 Views
1 Reply
Reply (1)
Message 2 of 2

waynehelley
Collaborator
Collaborator
Accepted solution

(AssemblyDocument)invDoc

 

Found a useful article...

 

http://modthemachine.typepad.com/my_weblog/2010/08/using-c-with-the-inventor-api-part-3.html

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes