Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Forum Highlight: CATIA V6

 

Get Answers to Your V6 Questions
Dassault Systèmes answers user questions about CATIA V6.  Discuss these answers and propose new questions with end users from around the world in the CATIA V6 Forum.

COE DISCUSSION FORUM
Subject: Accessing Properties Window in CATIA V5 through Visual Basic 6.0

You are not authorized to post a reply.   
Author Messages
phaneendra_u

10 Jul 2008 11:51 PM

Hi all,

How to access the properties window in CATIA V5 through visual basic(i mean through code). any API's for that.Please give me info about this issue.

thanks and regards,

Phaneendra.

MBERRY

11 Jul 2008 06:55 AM
There are API's for some things like name and graphic properties. Maybe that is what you want? If you want other info (and you must use VB) you will have to use Windows API's. If this doesn't help, give some more detail...

Mike
phaneendra_u

11 Jul 2008 12:33 PM
I need to access the mass properties for the part.If we go to mass properties tab there u will find a check box with label as "Only Main Bodies". I need to uncheck that through code. Is it possible.
MBERRY

14 Jul 2008 06:39 AM
CATIA does not expose an API for that. The only options will be CAA or VB, however the VB option will really be calls to windows API's. These calls will simulate the mouse clicks you would make yourself in CATIA. A couple of warnings though...This is more advanced coding - maybe not for beginner and also I would not necessarily use this method for KBE type user apps. The problem with KBE user apps is the user will see the dialog panels popping up and being modified which can look strange and also user mouse movements/mouse clicks could affect the result. So this method is best for batch type utilities where you need to process a lot of data but in a controlled environment....for example, maybe you need to make this change to 500 CATParts.

Anyway if you want to learn more google Windows API and you might also want to look at a free tool called AutoIT - it is like a simplifed script language to make Win API calls.

Mike
phaneendra_u

15 Jul 2008 04:57 AM
Thank you very much for the information you have given
You are not authorized to post a reply.
Forums > COE Forums > KBE > Accessing Properties Window in CATIA V5 through Visual Basic 6.0



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)