-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export each part as separate STL and STEP file from console #262
Comments
Hello @semixor Mayo should also support executing a scripting file from command line and exit What do you think of that solution? |
Hello @HuguesDelorme, Looking forward when you will be able to implement it, many thanks, can't wait ! |
Hello @HuguesDelorme , any status update on this ? |
Hello @semixor console.debug("Mayo version: " + application.versionString);
console.debug("Document count: " + application.documentCount);
for (let i = 0; i < application.documentCount; i++) {
let doc = application.documentAt(i); // Access i-th document
console.debug("Document: " + doc.name);
console.debug(" filePath: " + doc.filePath);
console.debug(" entityCount: " + doc.entityCount);
}
if (application.documentCount > 0) {
let doc = application.documentAt(0); // Access 1st document
doc.traverseModelTree(
nodeId => {
console.debug(
"treeNodeId: " + nodeId
+ " name: " + doc.treeNodeName(nodeId)
+ " parentId: " + doc.treeNodeParent(nodeId)
+ " tag: " + doc.treeNodeTag(nodeId)
);
}
);
} The next important things to be supported are:
For writer objects it's not easy to support what you ask "ability to export faces of a part and wires(edges)" because the smallest thing that can be exported is a "node" in the model tree. A model tree node in Mayo being an assembly, instance or part. |
Hi @HuguesDelorme this is very nice, looking forward to be able to work with it, great job, thank you ! |
Hi @HuguesDelorme when I will be able to test this beautiful work :) ? Thanks ! |
@semixor |
Hi @HuguesDelorme , |
Hi @HuguesDelorme, |
@semixor |
@HuguesDelorme wow that's a lot of work being done from your side, thank you. |
This scripting feature is great. The only thing I am missing to cover my personal need is a way of exporting the text output of the script either by allowing creating a TXT file in the filesystem (preferred) or by allowing copying the Javascript console content so it can be manually pasted somewhere else. |
Hello,
is it possible to export each part of CAD (STEP) file as a separate STL and also STEP file from console ?
also wondering if it's possible to export faces of each part as STL ?
Frankly speaking, I'm doing this with FreeCAD but it's very slow on big assemblies, tested Mayo and it's blazing fast, would be nice if you guys can help on this.
Thank you.
The text was updated successfully, but these errors were encountered: