Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone please tell me why the " if (is3D())" is in the post? It is causing me problems, but I want to make sure it is not necessary before removing it. It is just retrieving the tool information for the comments at the beginning of the program. If the first tool is an end mill it works great but if the first tool is a drill it skips the loop.
// dump tool information
if (properties.writeTools) {
var zRanges = {};
if (is3D()) {
var numberOfSections = getNumberOfSections();
for (var i = 0; i < numberOfSections; ++i) {
var section = getSection(i);
var zRange = section.getGlobalZRange();
var tool = section.getTool();
if (zRanges[tool.number]) {
zRanges[tool.number].expandToRange(zRange);
} else {
zRanges[tool.number] = zRange;
}
}
}
Solved! Go to Solution.