Profile Picture

Document vs Drawing?

Posted By Jason Irby 11 Years Ago
Author
Message
Jason Irby
questionmark Posted 11 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 59, Visits: 77

 

In NPersistencyManager there is LoadFromFile, LoadDocumentFromFile, LoadDrawingFromFile.....

 

Are those all the exact same thing?  Is there a difference between document and drawing? vs LoadFromFile?

-Jason



Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

The LoadDocumentFromFile method analyzes the provided file name and load a library or a drawing document, depending on the file extension, while the LoadDrawingFromFile and LoadLibraryFromFile methods expect and load a drawing document and a library document respectively. So if you know whether you are loading a drawing document or a library document, it is better to use the corresponding method. In this way there won't be any unecessary checks and you won't have to cast the read document to a drawing or a library document later on.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic