[Da...] Posted November 11, 2022 Share Posted November 11, 2022 Is there any way to load CAD views or manipulate the CAD view window directly by PCM? The only commands effecting the CAD view is setFit() and setViewDirection() so far, but with this I can't achieve exactly what I want. Background: I want to measure some STL files and there are some manual "probings" needed. So I would like to zoom/rotate automatically to fit the features on screen. Link to comment Share on other sites More sharing options...
[He...] Posted November 14, 2022 Share Posted November 14, 2022 There is a command, saveViewToFile() (i think thats what it is called) that will store a view to file. And after that the view is left active. And then I just delete the file. saveViewToFile("ISO","C:\temp\dummy") deleteFile("C:\temp\dummy") Link to comment Share on other sites More sharing options...
[Ja...] Posted November 14, 2022 Share Posted November 14, 2022 I don't think you need PCM. I did this a long time ago, so I am not 100% positive if these steps are correct. Set the CAD view the way you want it, in CAD view, Save view, give it a name. Then in the characteristic, click on the graphic icon and select the CAD view. I did this once and had the CAD view changing on it's own through out the program. Link to comment Share on other sites More sharing options...
[Ja...] Posted November 14, 2022 Share Posted November 14, 2022 You can also insert a CAD presentation from the CAD dropdown menu. Link to comment Share on other sites More sharing options...
[Da...] Posted November 15, 2022 Author Share Posted November 15, 2022 Please sign in to view this quote. Thanks, this was exactly what I needed. @Jason: Thanks for your suggestion, but it won't work for me, as I need the CAD views during measurement run, not during evaluation... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in