allready opened documents

[ Edited ]


I have 2 q:

1. How can I know from the path finder then name of the top level ASM?

2. How can I check if a file has already been opened (if we look at SolidEdgeFramework.Application.Documents we get the list of files yet if only 2 files are opened how can we check which has already been opened?



Posted by: joseph polk
Post date: 8/12/2012 3:14:07 PM


Re: allready opened documents

[ Edited ]

Hi Joseph,


Your question isn't really clear.


Regarding the first question:

Are you looking for the actual name in pathfinder, or are you trying to find the top-level assembly's Document object when a part has been in-place activated?


Regarding the second question:

If two files are in the collection then both are currently open. If you want the document that is currently being worked on then look at the ActiveDocument property. You need to watch out for in-place activated parts here, as the part will be the ActiveDocument whereas the containing assembly will be in the Documents collection.

SolidEdgeDocument has the boolean property InPlaceActivated that you can use to check this. If the document is in-place activated then you can recursively(?) call GetContainerDocumentAndMatrixOfIPADoc to get the open assembly.





Posted by: Calum McLellan
Post date: 8/16/2012 6:10:03 AM