Add component from eCatalog

Forum Forums Visual Components 4.0 .NET Addon Programming Add component from eCatalog

This topic contains 7 replies, has 4 voices, and was last updated by Avatar xiongxi2019 5 days, 23 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12016
    Avatar
    SimonS
    Participant

    Hi,

    I want to add a component from the eCatalog to the world layout by using the .NET Api.

    Can anyone give me a hint how to implement this function?

    Thank you.

    #12034
    TSy
    TSy
    Participant

    You can add reference to VisualComponents.eCatalogue.DataModel.dll and then do something like this. I didn’t test it so handling details such as file paths etc. might be wrong.

     

    #12055
    Avatar
    SimonS
    Participant

    It works!

    Thanks alot for your support!

    #13565
    Avatar
    xiongxi2019
    Participant

    Hello, I want to write a form with c#, the form has a button and an input box, enter the component name in the input box, click the button, the components in the component library will be generated in the 3D world, how to use this code?Please enlighten me.

    #13518
    Avatar
    fuzhenbiao
    Participant

    Excuse me, how to use this code, for example, I want to write a form with c#. The form has an input box and a button. Enter the component ID in the input box and click the button to generate the component in the 3D world. How do I do this? Please advise, thank you.

    #13556
    Avatar
    fuzhenbiao
    Participant

    How can I use this program? I want to create a form with c#, enter the name of the component in the input box, click the OK button, and the component will generate the coordinates I want to set in the 3D world.

    #13605
    TSy
    TSy
    Participant

    Well, my example class is quite trivial to use so I assume your problem is with how to add such a form to the application in general and get a handle to IApplication instance.
    For that take a look at the .NET API tutorials:
    http://academy.visualcomponents.com/category/lessons/net-api/

    #13813
    Avatar
    xiongxi2019
    Participant

    Haha, thank you. The problem has been solved. As you said, there is no handle for getting IApplication instances.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.