Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catia VBA Command "No 3D background"

Status
Not open for further replies.

RA2020

Automotive
Nov 29, 2020
1
DE
Hello everyone,

for better visualization i would like to use the command "No 3D background" (all geometries outside the plane are invisible) in a macro.

By choosing a plane and clicking on the button, it creates a working support and displays only elements inside the plane. (Screenshot 1&2)

But using CATIA.StartCommand ("No 3D Background") i get a different result.
Everything is still displayed, no working support, plane is selected and the button is active (Screenshot 3).

For testing i used this simple code:

Sub CATMain()

Dim oSel as Selection
Set oSel = CATIA.ActiveDocument.Selection
oSel.Search ("Name=Plane.1,all")
CATIA.StartCommand ("No 3D background")

End Sub

I would be glad to get some tipps on how to use the command for macros.

Greetings
RA2020
 
 https://files.engineering.com/getfile.aspx?folder=92cb1438-71d5-4ce7-a44d-708284b81e49&file=No_3d_Baclgorund.png
Replies continue below

Recommended for you

Try this

2020-12-02_14_20_44-CAA_V5_Visual_Basic_help_zags0b.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top