Can I control the order in which entities are exported in any other way than the predefined ways?
Custom order for export
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Custom order for export
From a QCAD/CAM user:
Re: Custom order for export
It is possible to overwrite exportEntities to define any desired custom order in which entities are exported.
The simplest implementation would be (random order):
The simplest implementation would be (random order):
MyClass.prototype.exportEntities = function() { var ids = this.document.queryAllEntities(); for (var i = 0; i < ids.length; ++i) { var entityId = ids; var entity = this.document.queryEntity(entityId); this.exportContourEntity(entity.data()); } };