I have a program that is inserting a reusable component from a family table. The component (size, length) is configured in a blockstyler UI and a point is also selected in the UI. Once it's added it places the component at the specified point however I am wanting to also orient the component to a supplied vector but I'm having issues with the ComponentPositioner and ComponentNetwork methods. Mainly because I dont know how to interpret the recorded journal's output for Matrix3x3.
The components in question are screws, so my X and Y vectors are not important. Essentially, I want to orient the component by the UI supplied point and vector (vector being Z) same as if I were to move a component dynamically. Does anyone have any recommendations for me?
Additionally I am curious about setting a components stored CSYS position within an assembly. To elaborate, if I were to move a component and move the dynamic handles to a new location the new position is stored at an instance level within the assembly. I know this because if I go to move the component again, the dynamic handles are in the new position and not the default. Is there a way to do this in code? I perused the "Wrangling the WCS" topic however it did not seem to apply to individual component CSYS's.
re: move component
I think the following thread might help (especially the answer from technisites):
https://community.sw.siemens.com/s/question/0D5KZ000008QBe50AG/how-to-sp...