catia commands lists in 3dexperience and v5

13
2017 Fernando Petre, Technical Manager, CAD/PLM Consultant E: [email protected] M: +40 725 155 588 CATIA Commands Lists in 3DEXPERIENCE and V5. Creating macros from Excel with this list.

Upload: fernando-petre

Post on 06-Apr-2017

366 views

Category:

Engineering


12 download

TRANSCRIPT

Page 1: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Fernando Petre, Technical Manager, CAD/PLM Consultant

E: [email protected]: +40 725 155 588

CATIA Commands Lists in 3DEXPERIENCE and V5.

Creating macros from Excel with this list.

Page 2: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

In CATIA V5 there is a command in View menu which is showing a Command Lists… available for what licenses you have.

Page 3: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

This list can be pretty long if you have access to several workbenches (in my case I have an AL3 which includes everything).

Selecting a command and clicking on OK or by simply double click on a command in the list will launch that command in CATIA V5.

Just some of these commands have shortcuts (like New… which is CTRL+N for example) and none of them are shown in the list. Also there is no icon available in this Commands List panel.

Of course, CATIA will let you customize what ever you want, assigning shortcuts or icons with methods which can be found easy in documentation (or internet).

Page 4: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

In 3DEXPERIENCE this command is not so visible as in CATIA V5 but is there. For the beginning you need a little adjustment for what is coming on screen by default.

Page 5: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Click the Right Mouse Button to sett the Status Bar and Action Pad for a much easier way of work.

Page 6: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

In 3DEXPERIENCE Status Bar write like in CATIA V5 c:Commands List and hit Enter keyboard. This will bring a new panel in front. Pick Commands List

Page 7: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

This list has same functionalities like in V5 but is coming with much more information's, you are able to see the icons and also the shortcuts.

All these commands can be deployed on the Action Bar in their corresponding workbenches, even if they don’t have assigned icons.A button with text will be deployed on the Action Bar.

Page 8: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

In both cases, 3DEXPERIENCE or CATIA V5, this list can be useful because you can use those commands in CATIA programming using CATIA.StartCommand (“Your Desired Command Name”). Most of the usual commands are available in an Excel worksheet created for this purpose.

Page 9: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Because in 3DEXPERIENCE macros are saved in the database, I created a simple Excel macro to copy the code inside the clipboard and let user paste in the macro editor inside the 3DEXPERIENCE platform.

For CATIA V5, the Excel macro will create a CATScript file inside c:\Temp folder and will run directly the CATScript in CATIA V5 from that location.

For a even more convenient way of use, there is also a macro which is writing to the clipboard only the CATIA.StartCommand(“your_command_choice”) to the clipboard.

Be aware that this is done just for exemplification only, you might encounter some errors because macros are not checking if the commands are available for the current workbench in session (for both cases, 3DEx or V5).

Page 10: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Running the desired macro from Excel in CATIA V5.

Note that in Excel macro there is an Array which is including some characters like Space, / , comma, or point . This Array was created in order to replace those characters with underscore, so the saved CATScript can be launched directly from EXCEL to CATIA. You can add other characters if you need. Having spaces or forbidden characters in the name of the CATscript file will cause errors (just for launching from Excel.)

Page 11: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Running Excel macro to create a simple CATScript in 3DEXPERIENCE.

Page 12: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

When you paste the code from clipboard directly in macro editor in 3DEXPERIENCE you will notice that you will have only one line which will cause obviously an error executing that CATScript.

To correct this, I suggest you first to use Write editor, paste the code from clipboard inside Write, then copy the formatted code once again in the clipboard and finally paste in macro editor in 3DEXPERIENCE.

For your information, the Excel list for 3DEXPERIENCE contains 740 commands , CATIA V5 has 1234 commands.

The excel file is available free here: Microsoft Excel

Macro-Enabled Worksheet

Page 13: CATIA Commands Lists in 3DEXPERIENCE and V5

2017

Thank you!