I think I'm going crazy

I think I'm going crazy

Josh_Hudson97
Advocate Advocate
360 Views
6 Replies
Message 1 of 7

I think I'm going crazy

Josh_Hudson97
Advocate
Advocate

This is a bit of a odd one.

 

We used Autodesk Factory Design to plot out customer projects. We've made our own iLogic driven assets. One of the assets we haven't changed since December 2022... Today on some peoples machine (who it has previously worked on, mine included) it has decided it's not going to work. Yet the same asset works on another users machine. We're all on the same version of Inventor etc.

 

I've loaded up the base assembly where we publish the Factory asset from and when parts unsuppressed the code now errors, because the BoM structure is remaining as "reference". Has anyone got any idea why it might now be failing when we've not changed that asset in 8 months?

 

My code for unsurprising is;

Component.IsActive("FILE NAME...") = True

Also worth noting we're now up to date onto Inventor 2023.3 (the most recent one as far as I'm aware) 

If I've helped you out drop the post a like, if I've given you a solution mark as solved. It's us, 'The community' that makes this place work 😄
0 Likes
361 Views
6 Replies
Replies (6)
Message 2 of 7

Curtis_Waguespack
Consultant
Consultant

@Josh_Hudson97 

 

What version of Inventor is this? Inventor 2022? 2023? etc.

EESignature

0 Likes
Message 3 of 7

Josh_Hudson97
Advocate
Advocate

Hi @Curtis_Waguespack ,

 

Literally just updated this as you commented we're on 2023.3

If I've helped you out drop the post a like, if I've given you a solution mark as solved. It's us, 'The community' that makes this place work 😄
0 Likes
Message 4 of 7

Curtis_Waguespack
Consultant
Consultant

@Josh_Hudson97 wrote:

 

 Today on some peoples machine ...

 

when parts unsuppressed the code now errors...

 


So are you saying that it still works on some machines? just not on others?

 

Can you provide the error information or a screengrab of the error? It might be generic and not be much help, but it's something to rule out.

 

 

 

EESignature

0 Likes
Message 5 of 7

Josh_Hudson97
Advocate
Advocate

Hi @Curtis_Waguespack,

 

Well it works(ish) on one users machine. When they use it within AutoCAD but when I open the asset in Inventor I get the same issue on their machine. Where the components are reference after being unsuppressed. 

If I've helped you out drop the post a like, if I've given you a solution mark as solved. It's us, 'The community' that makes this place work 😄
0 Likes
Message 6 of 7

WCrihfield
Mentor
Mentor

Just a couple additional quick questions that may help...is the assembly always being 'fully' loaded, or is it sometimes 'Express' loaded?  Not entirely sure if that may be factoring into this situation, but worth paying attention to.  If you are using Inventor 2022 or newer, are any of the components involved set to custom ModelStates?  And if so, are you switching which ModelState a component represents at some point in your process?  When a component is suppressed, and it was the last component referencing a specific Document, that Document is unloaded from Inventor's 'session memory' to help performance.  And when you unsuppress a component that is the only one referencing a document, that document gets loaded into Inventor's session memory.  The 'reference' setting (BOMStructure) is often independent from suppression, but I believe Curtis mentioned recently that the Component.IsActive snippet controls both suppression and BOMStructure.  So, if you are controlling suppression both manually, and by code, that may be something to keep an eye on.  I used to control visibility and BOMStructure instead of suppression in my assemblies, so I rarely used the Component.IsActive snippet.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 7 of 7

Josh_Hudson97
Advocate
Advocate

Hi @WCrihfield,

 

The assembly is loaded fully. I don't use model states in this assembly, so that shouldn't affect it.

 

I've used the Component.IsActive line in this assembly without issues, it's only become an issue (that we've noticed today). I have found another post on the forum https://forums.autodesk.com/t5/inventor-forum/inventor-2023-3-components-bom-structure-quot-refecenc...

 

I wonder if this is our issue, as we've only updated to 2023.3 in the last week or so... 

If I've helped you out drop the post a like, if I've given you a solution mark as solved. It's us, 'The community' that makes this place work 😄
0 Likes