Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7069477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:27:00+00:00 2026-05-28T05:27:00+00:00

I often times have the need to import 3D points (x,y,z data) into the

  • 0

I often times have the need to import 3D points (x,y,z data) into the CAD software CATIA. Currently I do this by creating an excel spreadsheet using a java library, and then executing a visual basic macro from within excel to add the data to CATIA.
Now I’m not much of a VB guy, which is why I’d like to skip the excel step and directly send data to CATIA. Is there a way to do this? Maybe a java library to allow me to call VB code? Or maybe there is a java api to CATIA which I could use?

Kind regards,
MHOOO

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:27:01+00:00Added an answer on May 28, 2026 at 5:27 am

    Unless you are lucky enough to have a CAA licence, the only API exposed by CATIA V5 is the VB one. The good thing is that this is in fact a COM interface, which you can invoke not only from VBA but also from a variety of languages that do support this protocol. (C++, Python, Java, …).

    For Java, you need a library for accessing COM and thus the CATIA API. The easiest for me is Jacob (http://danadler.com/jacob/).

    Here’s some sample code using Jacob:

    import java.net.UnknownHostException;
    
    import com.jacob.com.Dispatch;
    import com.jacob.com.Variant;
    
    import com.jacob.activeX.ActiveXComponent;
    
    class TestMacroInvocation
    {
        public static void main( String [] args ) throws Exception
        {
            ActiveXComponent catia = new ActiveXComponent("CATIA.Application");
            catia.setProperty("Visible", new Variant(true));
            Dispatch oDocuments = catia.getProperty("Documents").toDispatch();
            Dispatch oDocument = Dispatch.call(oDocuments, "Open", "C:\\Users\\Me\\Desktop\\TestRib.CATPart").toDispatch();
    
            Dispatch.call(catia, "StartCommand", "MyMacro");
            Dispatch.call(catia, "Quit");
        }
    

    It’s just a different way to use the CATIA VBA API, and you’ll have to rely on the documentation provided by Dassault Sytèmes.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Often times it seems I have a list of items, and I need to
Often when writing PHP I'll have it output some HTML like this - echo
Often times applications will need some database code tables (aka reference tables or domain
I have many many XML files that often contain nodes mutiple times (each time
Often times in applications I have a property that would normally .animate(), but every
I need to import a RTF document into a FlowDocument for further parsing.. But
I have a form in my forms.py that looks like this: from django import
I have a scroll view and I need to reload the contents often while
I have this situation that is really irritating me now. At random times with
I'm often in the habit of having a standard import block, so I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.