VB error messages

VB error messages

andrew_canfield
Collaborator Collaborator
378 Views
3 Replies
Message 1 of 4

VB error messages

andrew_canfield
Collaborator
Collaborator

Hello

 

I've followed a post on AU to create an Inventor add in.

Used a downloaded 2018 pre-configured template (for visual studio) & saw this error:

au2.JPG 

then started again without the template - like the tutorial!

&:

AU1.JPG

 

Tricky to know what to try next..

 

Regards

 

Andrew

0 Likes
Accepted solutions (2)
379 Views
3 Replies
Replies (3)
Message 2 of 4

andrew_canfield
Collaborator
Collaborator
Accepted solution

i missed a word out. Doh

 

should be

 

Dim partDoc As Inventor.PartDocument = invApp.ActiveDocument

 

 

Message 3 of 4

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Dim PartDoc as inventor.PartDocument= invApp.ActiveDocument

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 4 of 4

bradeneuropeArthur
Mentor
Mentor

@andrew_canfield 

 

That was close.

Good to hear you solved it!

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes