If it were a PC, I could press Ctrl to enter multiple selection mode, but on an iPad, there is no Ctrl, so I don't know how to enter multiple selection mode. It may not be possible.
------------------- 3/29 Added ------------------
I am wondering about this issue...on a PC, if you hold down Ctrl, you can select a rectangular area.
I would like to be able to do this on the iPad as well, so that when the user presses a button for a custom extension, they can press and hold Ctrl as they do on the PC, or tap and hold it for a long time.
------------------- 4/7 Added ------------------
Autodesk.Viewing.Initializer(options, () => {
const config3d = {
extensions: [
"Autodesk.DocumentBrowser",
"Autodesk.BoxSelection", // I added here too
],
};
const viewer = new Autodesk.Viewing.GuiViewer3D(
document.getElementById("forgeViewer"),
config3d
);
// I Added here
if (Autodesk.Viewing.isMobileDevice()) {
viewer.addEventListener(
Autodesk.Viewing.EXTENSION_LOADED_EVENT,
(event) => {
if (event.extensionId === "Autodesk.BoxSelection") {
let ext = viewer.getExtension(event.extensionId);
ext.addToolbarButton(true);
}
}
);
}
viewer.start();
this.viewer = viewer;
const documentId = "urn:" + urn;
Autodesk.Viewing.Document.load(
documentId,
this.onDocumentLoadSuccess.bind(this),
this.onDocumentLoadFailure.bind(this)
);
});
}