Hello,
Can anybody provide any example code for graphic view manipulation?
For example,
- Switch the view direction to Top, Right and Isometric
- Toggle grid view
- Toggle graphic items such as probe
Thank you in advance.
Best Regards,
Aki
Your Products have been synced, click here to refresh
Hello,
Can anybody provide any example code for graphic view manipulation?
For example,
Thank you in advance.
Best Regards,
Aki
Would creating viewsets not do exactly this? Not entirely sure about the grid bit definitely the different views.
Thank you for your reply.
I noticed that we could use RECALL_VIEWSET to select an existing viewset.
However, I am not familiar to define a viewset programmatically. Can we do it?
It would be nicer if we can switch a graphic item (probe, for example) visible/invisible.
Thank you for your reply.
I noticed that we could use RECALL_VIEWSET to select an existing viewset.
However, I am not familiar to define a viewset programmatically. Can we do it?
It would be nicer if we can switch a graphic item (probe, for example) visible/invisible.
The default shortcut for hiding the probe is "CTRL + Y".
You can define a viewset programmatically under Insert > "Report Command > Define Viewset" and below that option should be one to insert "Recall Viewset" into the program.
Just be aware that the recall command behaves similar to how moving the edit window cursor into a different alignment will adjust your trihedron in the graphical view. Your graphical view window will snap to however you had it oriented for that defined viewset, inside or outside of execution.
Thank you for your reply.
As for the probe visiblity, Ctrl+Y seems not working on my environment, I will check the further settings.
In my unserstanding, Define Viewset command save the current view with a viewset name.
I could not find the viewset modifiers to change them programmatically...
Set DmisCommand = DmisCommands.Add(VIEWSET, TRUE) DmisCommand.Marked = TRUE ' Set ID = Viewset1 retval = DmisCommand.PutText ("Viewset1", ID, 0)
Anyway, I appreciate your comment.
I think the modifications for viewsets are held within the graphics display window. They may not be part of the view set members
Thank you for your reply.
I understood the possibilities and the current limitations.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |