Import new "version" of the molecule
-
Hello @Laëtitia
You can export and import molecules using the following functions:
#include "SAMSON.hpp" ... SBNodeIndexer nodeIndexer; SAMSON::getActiveDocument()->getNodes(nodeIndexer); // get an indexer of all nodes in the active document SAMSON::exportToFile(nodeIndexer, "pathToMolecule/export.pdb"); // export these nodes to a file SAMSON::getActiveDocument()->erase(); // close the active document SAMSON::importFromFile("pathToMolecule/import.pdb"); // import a molecule from a fileImporters and exporters will be detected by SAMSON based on the extension of the filenames.
-
Hi Laëtitia, it's not yet possible to have several windows simultaneously. For now, the molecules should be opened in different documents. Would you like to have several views of the same document? Or be able to render a molecule by itself even without it being part of a document?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login