Hit my talent wall with this, STEP file convert via API

Hit my talent wall with this, STEP file convert via API

Neil_Cross
Mentor Mentor
534 Views
8 Replies
Message 1 of 9

Hit my talent wall with this, STEP file convert via API

Neil_Cross
Mentor
Mentor

Hi all - hoping someone here might have experienced something that rings a bell, I've spent 30+ hours on this so far and hit the wall with it.

I've just released some automation which does something really simple, but the outcome is different on some PCs.

 

The code simply opens a STEP file using the convert option, completely default command options, then when it's finished converting it triggers a save on the converted data and saves it all to disk.

 

However, on some systems, at the end of the convert process, instead of the automation saving the data, it's triggering a "Save As" prompt and showing the "Assembly1.iam" prompt requiring the user to manually save it.  

 

But here's the weird thing, if I manually open the STEP file by hand first on one of these PCs and manually do what my code would do... after I've done that once, my code works flawlessly from then on.

 

I have 15+ workstations at home here and I can't reproduce this issue, I've imported the application options from the affected systems but it didn't reproduce, I unload all addins including iLogic/Vault/Data Standard and make sure the STP translator is preloaded.  I have a preloaded IPJ, I've verified there's no write permission issues to the folder we're saving to, I'm completely stumped on this.

 

It's only affecting a small number of systems but I've no idea what they all have in common.  It happens on both Inventor 2021 and 2022, regardless of SP level.

 

Does this sound familiar to anyone? 

 

Thanks in advance

0 Likes
535 Views
8 Replies
Replies (8)
Message 2 of 9

Ralf_Krieg
Advisor
Advisor

Hello

 

Just my first thought, there is an option to save documents on open for STEP import. Maybe your affected users had done last import with this option active and Inventor remember this. If I remember correct the options is named "SaveComponentDuringLoad".


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 9

Neil_Cross
Mentor
Mentor

Thanks for the pointer, which option is that? I'd already looked for something like that but couldn't find anything that resembled that... the options button is also greyed out

 

Screenshot 2021-04-18 141142.jpg

Screenshot 2021-04-18 141339.jpg

0 Likes
Message 4 of 9

Ralf_Krieg
Advisor
Advisor

Hello

 

The option "Reduced Memory Mode" should do that. Never understand why this option was renamed.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 9

LukeDavenport
Collaborator
Collaborator

Hi Neil,

I had something similar where Dropbox was locking the newly created/imported file on disk for a second or two and preventing it from being saved. In the end I changed the logic of the program to give Dropbox a bit of time to sort itself out for each new file. I guess a messy thread sleep could have done the job also.

Luke

0 Likes
Message 6 of 9

Neil_Cross
Mentor
Mentor

Thanks Luke.  That made perfect sense and is something to consider, not sure it fits with how after you open the STP file once by hand/manually, the save issue is eliminated completely from that workstation.  If this save issue was persistent I'd go down that road but once you open a STP file by hand our code just begins to work perfectly.  I'll still look into it though and keep this in mind as I'm kinda desperate at this point!

Currently looking at that reduced memory mode setting, that does change the behaviour of my automation indeed but it doesn't seem to reproduce what I'm seeing on other peoples PCs.  So still open to any suggestions!

 

Cheers

0 Likes
Message 7 of 9

bradeneuropeArthur
Mentor
Mentor

Hi @Neil_Cross 

Have all machines the same updates and service packs?

 

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
Message 8 of 9

Neil_Cross
Mentor
Mentor

Hi @bradeneuropeArthur no this issue has spanned across Inventor 2021 and 2022 now, I first saw it happen back in January and its now happening today with the RTM version of 2022.  

0 Likes
Message 9 of 9

bradeneuropeArthur
Mentor
Mentor

It happens random then also per version?

Is show file extensions on for each workstation, and for each folder?

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