Jump to content

Using scripts to create LV classes


chcastro

Recommended Posts

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.

Link to comment

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

Link to comment
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.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.