Migration form 2020 to 2024 - Positional Constraint to Modelstate

Migration form 2020 to 2024 - Positional Constraint to Modelstate

GermVanDerBij
Contributor Contributor
305 Views
2 Replies
Message 1 of 3

Migration form 2020 to 2024 - Positional Constraint to Modelstate

GermVanDerBij
Contributor
Contributor

We're going to migrate to 2024 from 2020. In this migration, we need our assys to change from PosReps to ModelState.
For this I've made a tool which changes all PosReps to ModelState (with the same name as in PosRep) and deletes all the PosReps. This is working like charme 💪

 

Now the tricky part; these PosRep assys are used in other assys where we've selected a PosRep state. After running my tool to migrate PosReps to ModelState, I get an error when opening an assembly it is used in: "One or more referenced Positional Representations could not be found. Positional Representation associativity has been removed"

GermVanDerBij_0-1702642406459.png

My idee is to cut in just before this message and read out the reference line, where it is mentioned which PosRep needs to be selected, and activate the ModelState with the same name instead. I can already fire a process on opening the main assy and read out some stuff. But all sub assys, already migrated, don't have a PosRep anymore. So I need to know whats inside the main assy......


Anyone knows how to get this reference read out?

Old situation:

GermVanDerBij_2-1702642835373.png


New situation:

GermVanDerBij_1-1702642795168.png

 

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

bradeneuropeArthur
Mentor
Mentor

I think this process is not needed, because every "Positional Representation" en "View Representation" is automatically translated to Model States....

 

 

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 3

GermVanDerBij
Contributor
Contributor

I'm sorry... If that was the case, I would not have posted this thread. I know from testing, the pos reps will remain as they are when opening 2020 files in 2024.

GermVanDerBij_0-1702883015868.png

 

To clairify; becaus when pos reps are used, the weight calculation states N/A. In large assys, recalculating the physical properties takes a lot of time. We need these props in our ERP system.

0 Likes