I use this API, but I will lose some drawing information
hwv.view.fitNodes([3401], 300)
Hello @15089700278,
Do you know the node type for 3401? To quickly check, please run the following in the web browser console:
Communicator.NodeType[hwv.model.getNodeType(3401)];
Thanks,
Tino
Hello @15089700278,
Thanks for trying the code snippet.
In order for us to do a deeper investigation, we will need to get the SCS file in our hands. If the file is less than 4MB, you can probably just send it to me directly via a direct message here on the forum. If the file is too big to seen via DM, let me know and we’ll work out an alternative solution.
Thanks,
Tino
1.scs.zip (1.4 MB)
Thanks for sending the SCS file.
One interesting point about the drawing is that certain nodes have an inordinately large bounding box (which could be affecting the camera). For example, when I run the function getNodesBounding on node 3401:
console.log(JSON.stringify(await hwv.model.getNodesBounding([3401])));
…this is the result:
{"min":{"x":31.42701530456543,"y":100.12189483642578,"z":452.69061279296875},"max":{"x":32.79170608520508,"y":101.69248962402344,"z":452.69061279296875}}
Notice the z-value. It looks like the drawing on the right has even greater z-values. To get a better sense of the depth of the drawing, you can try switching the camera projection to perspective and then zooming out:
hwv.view.setProjectionMode(Communicator.Projection.Perspective);
Was this particular drawing generated using Authoring or was it generated just through Converter?
Thanks,
Tino
just through Converter.
This is the source file
激光雕刻机工程图纸.dwg.zip (2.3 MB)
Hello @15089700278,
As a quick follow-up to our previous correspondences both on and off the forum, we are creating an internal ticket for the zoom issue manifesting for certain DWG drawings.
Thanks,
Tino