Is it possible ?

(5 posts) (2 voices)
  • Started 10 months ago by sunder3dvia
  • Latest reply from iainB85

Tags:

No tags yet.

  1. sunder3dvia

    veteran
    Joined: May '13
    Posts: 276

    Hi,

    I have created my own class named myClass1 and myClass2. Now I want to access the element of both class(not members of those class rather when iterator those class using arrayIteratorBB the output format) in a single function. Where the function displays the values of member variables.

    Can anyone tell me how to handle this situation? For more clarity, in c++ there is keyword called "template" where we can pass any type of input to that particular function.

    Awaiting for your great reply and help!!

    Posted 10 months ago #
  2. iainB85

    Interplanetary Delivery Boy
    Joined: Jun '08
    Posts: 515

    Hello sunder,

    What you want to do sounds possible, I am just not clear enough on the scenario to try it out. Can you explain in any more detail or have a sample where it's not working?

    Posted 10 months ago #
  3. sunder3dvia

    veteran
    Joined: May '13
    Posts: 276

    Hi iain,

    Here I attach you a sample project which explains my need.

    In this project I have created a new BB called "Extract data from Class Object" which gets myClass1 as input. I want this BB to handle for myClass2 also. This BB must be generic for handling data of both class.

    I hope I am clear. Awaiting for your reply.

    Posted 10 months ago #
  4. sunder3dvia

    veteran
    Joined: May '13
    Posts: 276

    Hi iainB,

    Thanks for your reply. Here I attach my sample project which explains my need clearly.

    In this project, I have created BB(vsl) called "Extract data from Class Object" which takes myClass1 element as input and displays data. I want this BB to handle the data for myClass2 also.

    Hope, I am clear to you.

    Attachments

    1. Forum.mpexp (8 KB, 3 downloads) 10 months old
    WARNING: Files uploaded in the forums are not monitored by 3DVIA and therefore might contain content that is malicious or offensive. Download at your own risk
    Posted 10 months ago #
  5. iainB85

    Interplanetary Delivery Boy
    Joined: Jun '08
    Posts: 515

    I do not know of a way to accomplish this with VSL -- I think you may need to go down to the SDK level to accomplish a generic input like you want. Maybe someone else knows a way though...

    Posted 10 months ago #

Reply

You must log in to post.