Hyperview System Collector Issue
Hi All,
When creating a user system using SetOrientationByCoords method in hyperview, we have specified last set of coordinates as xy plane. However, Z- axis of local system created is not pointing in the same direction
Also, we have checked in HM, where we used dataname to get normals of element and created a vector and translated in normal direction. But we noticed that translated nodes in vector direction is not aligning with element normal. Please see the image below. Kindly provide a suitable solution or reason for our error
Answers
-
can you include a couple more images, and also identify what nodes have you used? or what coordinates?
this image is only in HM, but I can't tell what are these nodes amd what are you trying to show in this picture.
Please, maybe add a PPT file explaining better what happens in HV and what happens in HM.
0 -
We need to create a system collector in HyperView such that its x axis is parallel to the element and z axis is normal to the element (Fig 1).However on using HyperView API "SetOrientationByCoords", the system collector is not generated as intended (fig 2).Following set of coordinates are being used for system collector generation.
x1,y1,z1 – coords of node1
x2,y2,z2 – coords of node n2
x3,y3,z3 – coords of element normal
0 -
Jouher_20819 said:
We need to create a system collector in HyperView such that its x axis is parallel to the element and z axis is normal to the element (Fig 1).However on using HyperView API "SetOrientationByCoords", the system collector is not generated as intended (fig 2).Following set of coordinates are being used for system collector generation.
x1,y1,z1 – coords of node1
x2,y2,z2 – coords of node n2
x3,y3,z3 – coords of element normal
from the documentation (extracted from the help), it says that 3 nodes are needed.
But these would be, from my understanding:
- base node
- node defining local X direction (from base)
- node defining local Y direction (from base)
local Z is simply defined by righ hand rule.
So, node 3 should be poiting to another node of your base element, not its normal.
If you take a look at the example in the end of the documentation, it creates a local system aligned with the global axis, by defining>
- base 0,0,0
- node1 5,0,0
- node2 0,5,0
>> automatically gives you normal pointing to global Z.
poISystem SetOrientationByCoords
Sets the orientation of the coordinate system using the coordinate values of three nodes.
Syntax
system_handle SetOrientationByCoords coord_string
Application
HyperView Tcl Modify
Description
This command sets the orientation of the coordinate system using the coordinates of three nodes. The orientation can be set for user-defined systems only! The first three values define node1, the next three values define the location of node2, and the final three values define the location of node3.
Inputs
- coord_string
- The string representing the coordinates of the three nodes defining the system.
Example
To set the orientation of a user-defined system using coordinates:hwi OpenStack hwi GetSessionHandle session_handle session_handle GetProjectHandle project_handle project_handle GetPageHandle page_handle [project_handle GetActivePage] page_handle GetWindowHandle window_handle [page_handle GetActiveWindow] window_handle GetClientHandle client_handle client_handle GetModelHandle model_handle [client_handle GetActiveModel] model_handle GetUserDefinedSystemHandle sys1 “UserSystem 2” # Set the orientation of the system so that it has the same axes alignment # as the global system sys1 SetOrientationByCoords “0 0 0 5 0 0 0 5 0” hwi CloseStack
0