Keep legacy body status on drawing views iLogic access

Keep legacy body status on drawing views iLogic access

ReneRepina
Collaborator Collaborator
887 Views
5 Replies
Message 1 of 6

Keep legacy body status on drawing views iLogic access

ReneRepina
Collaborator
Collaborator

Greetings!

 

Is it possible to access property (boolean) or methods about "Keep legacy body status" on drawing views?

We have a lot of old drawings which are kept in legacy status, which are causing us the problems. I would like to write an iRule on save that it checks for legacy views and automaticly disable legacy and notify the user about it.

0 Likes
Accepted solutions (1)
888 Views
5 Replies
Replies (5)
Message 2 of 6

WCrihfield
Mentor
Mentor

I don't recall seeing something like that.  It sounds like you may be referring to something you are seeing in a dialog box.  Could you attached screen captured images so we can see what you are seeing? (Keep in mind, pasted images often can't be zoomed, but attached images can be.)  Do you have Vault ; or do you know if this may have something to do with Vault?  What versions of Inventor are we talking about here (What version are you currently using, and what version were some of these 'older' drawings created in)?  At exactly what time (related to events that are happening) are you seeing this message or option show up?

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 6

ReneRepina
Collaborator
Collaborator

Hello @WCrihfield!

 

It is not in dialog box, it is in context menu (right click menu). Yes ofcourse, I attached image below (it is not ours but it is the same context).

Yes we have Vault, but this is not Vault related, it is Inventor function.

 

So sorry I did not provide Inventor version, I was thinking about it but then I forgot. So our Inventor version is 2020.4.1. Not sure in which Inventor version were drawing created, but by Autodesk source regarding this function, it pops-up if files were created in Inventor pre-2013 version.

This option pops-up if drawings created pre-2013 version are opened on version 2013 or later.

 

Autodesk source about this function:

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/sfdcarticles/sfdcarticles/Invento...

 

ReneRepina_0-1624429171773.png

 

0 Likes
Message 4 of 6

WCrihfield
Mentor
Mentor

OK, I understand now.  Unfortunately, I still don't have an iLogic solution for that situation though.  I'm not seeing any Properties or Methods listed under the DrawingViews object, the DrawingView object, the Sheet object, the DrawingSettings object,  or the DrawingDocument object that seems related to this.  So, I'm inclined to think that they may have never exposed this setting to the API, but I can't be 100% sure.  You may have to ask one of the Autodesk employees about this one directly.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 5 of 6

ReneRepina
Collaborator
Collaborator

@WCrihfield 

Thanks for the help and efford! Maybe @johnsonshiue will know anything about this?

0 Likes
Message 6 of 6

ReneRepina
Collaborator
Collaborator
Accepted solution

Greetings again after some time!

 

Just to give a solution to anybody that would encounter the same problem, here is the answer from Mr. Tomasz Dąbrowski, from Autodesk support:

---

I received an answer from developers.
It looks like it is impossible to get access to a boolean property of "keep legacy body status" with iLogic or API.

But I was informed that enabling "Include Surface Bodies" for a Drawing View should clear the "Keep legacy body status" flag.
To find "Include Surface Bodies" setting, edit a view (or double-click on a view) and go to Recovery Options tab.
The setting is accessible and editable with API. There is a boolean property IncludeSurfaceBodies that can be accessed from DrawingView Object. More in the link below:
DrawingView.IncludeSurfaceBodies Property

A possible solution would be to:
- for every Drawing View enable "Include Surface Bodies" and disable it
OR
- check the current status of "Include Surface Bodies" property, enable it and bring back the starting value.

Both of approaches are doable with iLogic. If you have trouble managing it, let me know, I should be able to help.

The developers also informed me that:
I would recommend using this in an automation with caution due to potential unforeseen view changes regarding the surface bodies.

---

 

I would like to thank Mr. Tomasz Dąbrowski (and developer team) for helping and solving the problem!

 

 

Best regards,

Rene Repina