Hey, Im really struggling trying to set a parts parent. Why this type of a connection is impossible?
Thanks
Hey, Im really struggling trying to set a parts parent. Why this type of a connection is impossible?
Thanks
Hi,
This limitation is removed in 6.08 which will be released shortly.
The reason was that the type returned from GetParent might not always be compatible with SetParent (which must have the API type IHasGraphicComponents). In the future the connection will be allowed but will generate an error if the object type is wrong.
Thanks, good to know. Im taking part in competition organised by ABB in Poland atm, and the deadline for a simulation is in 2 weeks. Any chance that 6.08 ll be released by then?
Hopefully but not guaranteed. In the meantime, try the attached smart component that converts any object to the proper type for SetParent (if possible).
AsParent.zip (8.24 KB)
You have no idea how much this SC helped me. Thanks to You I didnt need to use some nasty workarounds. atm my project is much cleaner. Thank you :smile: . Could you please compile one more simply SC that would convert object to the proper type for Child in Attacher? I thought about giving a RobotStudio SDK a try myself, but there is not much time left until the deadline of the competition. So maybe after that ;]
Never mind, I managed to build the smartComponent that I needed. It was easier than i thought ;]