Inventor 2024 Passing parameters issue new in 2024

Inventor 2024 Passing parameters issue new in 2024

davidXEBTA
Observer Observer
333 Views
2 Replies
Message 1 of 3

Inventor 2024 Passing parameters issue new in 2024

davidXEBTA
Observer
Observer

I have years of code, and many parts that are now Ilogic configurations for our items. The code has worked Faultless in all versions from Inventor 2018 to Inventor 2022, We Skiped upgrading to 2023. below is a sample of a snippet that keeps erroring. when trying to pass a parameter to a subassembly. I no longer use this method, of hardcoded names but I have many jobs with code I wrote years ago, this type of code gives the error of "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))" I have even commented lines out and reputed it by clicking on the parameters. 

I have this in many items. What's even funnier, if I edit some items in place in overall assembly, it fails, but if I open instead of editing in place it works. but not all the time. Once again, they all worked perfectly in previous versions, so what has changed in Inventor 2024 that makes this type of call no longer works? it errors on every line if I comment out. and I have this in approx 30 different products in their configurators 

 

'Parameter("Beam assembly 1 with columns:1", "FFL") = Mezzanine_FFL
Parameter("Beam assembly 1 with columns:1", "FFL") = Mezzanine_FFL
Parameter("Beam assembly right end:1", "FFL") = Mezzanine_FFL
Parameter("Beam assembly Middle beams", "FFL") = Mezzanine_FFL

 

0 Likes
334 Views
2 Replies
Replies (2)
Message 2 of 3

davidXEBTA
Observer
Observer

MORE INFO. 

I made a new rule, just with 1 call ( ill show below ) . from the list above the coding lines and made it from scratch by selecting from the tree above, and suppressing all other rules, but I still got the same issue. running only the 1 line of code. however If I shut down Inventor, then restart it, it works. I do find this happens also with my original issue in most codes. Restarting Inventor will make it work for perhaps a couple of runs, then it plays up. 

 

Parameter("Beam assembly 1 with columns:1", "FFL")=Mezzanine_FFL

 

0 Likes
Message 3 of 3

davidXEBTA
Observer
Observer

The issue is now solved. 

sounds crazy, As it's old code from the 2018 version, there were a couple of "design view" calls in the code. even though Inventor 2022 changed greatly in this area, the code still worked. I went through the code and removed any calls to design views and don't ask me how it relates to passing Parameters, but it fixed everything. funny the code was not returning any errors about the design views, only about Parameters. But there you go. 

 

0 Likes