DLL Recompilation With Inventor Open

DLL Recompilation With Inventor Open

DonStauffer99
Advocate Advocate
548 Views
4 Replies
Message 1 of 5

DLL Recompilation With Inventor Open

DonStauffer99
Advocate
Advocate

I have several class library DLLs for Inventor. To test them after I make changes, I open Inventor and invoke methods via an iLogic rule. If there are errors, I change the source code and recompile, but if I don't first close Inventor, Visual Studio gives this error:

 

Could not copy "obj\Debug\Part Classes.dll" to "..\..\..\DLL\Part Classes.dll". Beginning retry 1 in 1000ms. The process cannot access the file '..\..\..\DLL\Part Classes.dll' because it is being used by another process. The file is locked by: "Autodesk® Inventor® 2018 (7344)"    Part Classes            

This error doesn't appear if I haven't used the DLL yet in this Inventor session.

I pretty much understand what this means, but I'm wondering if there's a way around it without closing Inventor, since loading it up again every time I want to test a change is time-consuming and tedious.

Does anyone know of a way to get around this?

0 Likes
549 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

You only can start inventor with the debug of the application. you cannot do this with the inventor session open because also the dll files are loaded then in inventor.

I use the following method.

in the debug you can also start inventor.exe with the debug of the app.

it will also close again after debug and start again with debug.

 

you understand what I mean?

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
Message 3 of 5

DonStauffer99
Advocate
Advocate

It sounds like it may be less tedious but not much faster.

0 Likes
Message 4 of 5

frederic.vandenplas
Collaborator
Collaborator

Hi, i use an standalon exe for testing purposes, when finished i copy the code in my addin.

Then you can use the suggestion to start inventor from vb.net for debugging if something is wrong to run that function.

If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
0 Likes
Message 5 of 5

bradeneuropeArthur
Mentor
Mentor

I use VBA to test and after the test I put it in the vb.net add in. (when possible)

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
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 !

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