Transitioning Macros Part 7: Deployment

March 27, 2024 Iouri Apanovitch

This is Part 7 – the last article in this series of blog posts, in which we’ll talk about how you deploy the 3DX macros company-wide, so the other users can enjoy the fruits of your labor.

For reference, here are all of the blogs in this series:
Part 1: Framework
Part 2: Creating, Opening, and Saving Files
Part 3: Services
Part 4: Product Modeler
Part 5: Part Modeling and Drafting
Part 6: Selections
Part 7: Deployment
---------------------------------------------------------

In the V5 world, the macros would be stored in folders on the local or on the network drives.

In 3DX, the macros must be stored in the PLM database. How does 3DX control access to the macros? Using the concept of the “Collaborative Space”. In a sense a Collaborative Space works like a “folder” for the data, with controlled access. You have access to that Collaborative Space – you can see and use the content. And vice versa – you don’t have access to the Collaborative Space, then you can’t see or use the data.

So, for the users in your company to see and use your macros, they must have access to the appropriate Collaborative Space.

Figure 1

Whether or not you can modify the content of a Collaborative Space depends on your Role:

Contributor: Can access the content, but can’t modify it

Author: Can modify and manage the content

Leader/Owner: Can modify and manage the content. Also administers members and roles.

Whether or not you can see the content is determined by the Visibility property of the Collaborative Space:

Public: Content is visible to all users from the same organization

Protected: Released or Obsolete content is visible to all users. In Work or Frozen content is private.

Private: Content is only visible to the members of that space


Figure 2

Logically, what you want to avoid is the engineers in your company using un-debugged macros, still under development. And, once the macro is fully debugged, you want it to be accessible throughout your company.

Here’s the recommended process:

  • Initially, the macro is developed and debugged in a ‘local’ macro library in Private space, using either Owner/Leader or Author role
    • At this point, other 3DX users cannot see or use it
  • When the macro is fully debugged and ready to be released, add it to the company-wide ‘global’ macro library
    • The ‘global’ macro library should be in the Public space, so any user in your organization can see and use it
    • The use of Export/Import (VBA) or Copy/Paste (CATScript/VBScript) to move the code from the ‘local’ to the ‘global’ library is recommended
    • Use of Transfer Ownership option in the Collaborative Lifecycle Management app is also possible, but this would result in creating multiple ‘global’ macro libraries in the Public space
  • Once the macro is added to the ‘global’ Public library, then it can be accessed by any member of the organization

To access the ‘global’ macro library content, the end-users must search for it using the library’s name, then open it.


Figure 3

Once the library is opened, the Macros dialog box displays, and the user can select which macro to run.


Figure 4

The last topic here – how do you assign macros to icons so that end-users just need to click an icon, instead of going through the pain of finding the library and running a macro from there?

The good news – yes, it’s possible. The bad news – the macros are assigned to icons on the client level, tied to the user’s profile and settings; therefore, must be done for each user separately.

Figure 5

To assign a macro to an icon in the Action Bar and/or Action Pad, right-click in the blue bar at the top of the 3DX window and select Display > Customize.


Figure 6

Go to the Commands tab and pick an icon for each of your macros.


Figure 7

To add macros to the Action Bar, go to the Sections tab, and either select an existing Section, or create a new one. Then click Add commands and select the macros you want to add to the Action Bar.


Figure 8

To add macros to the Action Pad, go to the Action Pad tab, click Add commands and select the macros you want to add to the Action Pad.

Figure 9

Well, that’s it! This is the last post in the series. It’s been a long journey, but I hope you enjoyed the ride!

If you have any questions or would like to learn more about 3DEXPERIENCE, feel free to contact us at training@rand.com

About the Author

Iouri Apanovitch

Senior Technical Training Engineer<br><br>As a senior member of the Rand 3D team with a doctorate degree in Finite Element Analysis (FEA) and over 35 years of experience, Iouri provides design, consulting, and training services to those in the aerospace, automotive, electronics, and consumer goods industries. Iouri is a seasoned pro in 3D parametric design and prototyping using knowledge-based engineering methods, and has worked on a wide range of projects including BOM automation, CMM points generation, automated 3D annotation creation, and die tooling automation design. He is also a sought-after instructor and holds the designations of both CATIA Certified Professional (Expert level) and CATIA Certified Instructor.

Follow on Linkedin Visit Website More Content by Iouri Apanovitch
Previous Article
Transitioning Macros Part 6: Selections
Transitioning Macros Part 6: Selections

Learn about Selections in Part 6 of this blog series on Transitioning Macros from CATIA V5 to 3DEXPERIENCE.

Next Article
2023: Year in Review
2023: Year in Review