×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

using catalog browser with vba

using catalog browser with vba

using catalog browser with vba

(OP)
Hi guys i would like to do this with the vba on catia :

1 : open the catalogue browser that is ok => CATIA.StartCommand ("Catalog Browser")
2 : set the current lib as I want => I don't know how to set this...
3 : set the filter with a input value with a inputbox
4 : Search it
5 : select the part (only one available)
6 : copy and past it in a current catproduct

I have a major issue that when I start the command I can't make a sendkeys because the Catalog Browser is not activate windows...

Do you have some solution ?
Here is my little code...


CODE --> CATmain

Sub CATMain()

CATIA.ActiveWindow.Activate

Dim productDocument1 As ProductDocument
Set productDocument1 = CATIA.ActiveDocument

Dim selection1 As Selection
Set selection1 = productDocument1.Selection

CATIA.StartCommand ("Catalog Browser")

SendKeys ("a")

End Sub 
Thx for your help guys !

RE: using catalog browser with vba

Although it is possible to do with WinAPI and out-of-process VBA or .NET, it is a terrible idea since you have to code a lot of non-obvious stuff to get CATIA windows working.

The only viable solution is to use CAA.

RE: using catalog browser with vba

(OP)
@ferdo

Yeah ! Actually I think about it but my main issue is activate an other window and back to Catia window.
If we can do that, it's better.
I have my "Catalog" on VPM so it's Firefox/Mozilla running window and Catia window who have to work together. Do you know how to do that ?

@Little Cthulhu
I'm sorry but i'm a noob in vba and script. What is CAA ?

RE: using catalog browser with vba

CAA is C++ framework.

Firefox? Are you on V5 or on 3Dx?

RE: using catalog browser with vba

(OP)
@ferdo
Sry about the lack :(
I'm working on the Catia V5 with VPM 3.0

@Little Cthulhu
With C++ we could do it ?

RE: using catalog browser with vba

VPM 3.0? What release are you on?

CAA requires it's own license which is not cheap at all.

RE: using catalog browser with vba

(OP)
Hi guys,

Sorry for the delay...
I always looking for a tips to load part under a product using the catalog browser... Can we do that without macro ? Maybe with a list ?
I'm actually on DMA and they call it DMA 3.2... I don"t know more...

Thanks for your help !

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close