chcastro Posted March 22, 2010 Report Share Posted March 22, 2010 Hi, I am using LVClass API in my graduation work to generate LV classes from a UML class diagram exported to XMI file. Using the API I can access the class's control cluster and, using scripts, I can drop the attributes over the cluster (a shadow appers) but not into it. If I move the control over the cluster with the mouse, it is absorved by the cluster. Can someone to help-me with this issue? Thank you very much, Cláudio H. Quote Link to comment
MikaelH Posted March 22, 2010 Report Share Posted March 22, 2010 When you place controls on the Front Panel you can tell LV who the Parent is. So first you need to get the control (the only control found on the Front Panel) reference for the Cluster, and then use this ref as parents for all attributes. FYI, the GDS tool has an API interface to do this and it also has XMI support,if you are interested to try it out let me know. Cheers, Mikael Quote Link to comment
Popular Post chcastro Posted March 23, 2010 Author Popular Post Report Share Posted March 23, 2010 When you place controls on the Front Panel you can tell LV who the Parent is. So first you need to get the control (the only control found on the Front Panel) reference for the Cluster, and then use this ref as parents for all attributes. FYI, the GDS tool has an API interface to do this and it also has XMI support,if you are interested to try it out let me know. Cheers, Mikael Hi MikaelH, I managed to use labXML to access the XMI file and, with François tip, class API to include the controls in class private data. It was necessary to do as you said (see my post in Code repository). Thanks for you offer and help but I need to "write" the the code to my graduation work. 3 Quote Link to comment
Aristos Queue Posted March 24, 2010 Report Share Posted March 24, 2010 Thanks for you offer and help but I need to "write" the the code to my graduation work. WOO HOO! Dear chcastro: You have no idea how happy it makes some of us on this board to hear a student who actually *wants* to do his/her own homework. We get a lot of requests asking for someone to write assignments for students. Quote Link to comment
crelf Posted March 24, 2010 Report Share Posted March 24, 2010 Thanks for you offer and help but I need to "write" the the code to my graduation work. I'm with Aristos - kudos for you! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.