Jump to content

Set CAD view via PCM


---
 Share

Recommended Posts

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

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

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

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

 Share

×
×
  • Create New...