×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

Multiple products with varied part families??

Multiple products with varied part families??

Multiple products with varied part families??

(OP)
Greetings!

I am working on a project that involves multiple (~26) products, each of which contains at least 6 parts that are going to change from each product variation. The only change on these parts will be overall dimensions, and I worked out that I can use the design tables and part catalogs to take care of that. My question is how can I automate the creation of all of these assemblies without building 26 assemblies from scratch?

I've heard there is a way you can generalize constraints by publishing components of a part, and I understand that I'll have to use this as well - I'm just wondering if I can code/use some fancy feature of CATIA.

Thanks!

RE: Multiple products with varied part families??

If you have the Product Knowledge Template (PKT) module, you can create a document template and add that to the catalog. With the document template you could include detail drawings which would instantiate with the main product assembly.
or
If you do not have this module, you can create a script to preform a File --> New from of this template. This script is easy to follow using tools --> Macro -- Record. You can add this to an icon and drop it on the menus using Customize -- Toolbars - Add commmands - Macros.

Both options create new part UUID numbers and this is the key, other methods will result in instance copies. (other than Save as new, too much work)

Regards,
Derek


Win XP64
R20/21, 3DVIA Composer 2012, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB

RE: Multiple products with varied part families??

(OP)
OK so that's a good tip, I appreciate that - however when I create a new product from the original without recording a macro, it prompts to duplicate the parts in the assembly as well. But it does not do this when I try and record a macro then do this. By the way, I'm using CATIA V5R19 and I have to for the project.

Also, I don't know how to change the code to increment the document name - right now the macro builder will just create a new document with the same name as the one that I record initially. Can someone point me in the direction of where I can find out about Catia and VB interfacing?

Thanks!

RE: Multiple products with varied part families??

Hi,

Copy-Paste in a CATScript, put your "template" CATProduct in C:\temp\ or modify the macro according to your needs. For your question regarding CATIA and VB search in FAQ section for learning programming in CATIA.

Language = "VBSCRIPT"

Sub CATMain()

Set documents1 = CATIA.Documents

Set partDocument1 = documents1.NewFrom("C:\temp\Template.CATProduct")

Dim File

File=CATIA.FileSelectionBox("Filename", "*.CATProduct", CATFileSelectionModeSave)

End Sub

Regards
Fernando

https://picasaweb.google.com/102257836106335725208

RE: Multiple products with varied part families??

Another method you could use would be parameters at the assembly level.

Create your assembly
In the ASD workbench, pick FX
Create an integer parameter (in my example I also added a string for name control.
Add a formula to the Part Number of the product

String.1 + " " + ToString(Integer.1 )

Since Part Number is a string it would be invalid to add an integer, the ToString( ) command converts integers/reals to strings.

"Bolt " + ToString(Integer.1 )

I hard coded the Nut and Bolt but added the incremental Integer.1 to the formula

Save it in the Temp folder Ferdo had suggested.
Run the macro for New From.

The most important step for naming occurs here. Change the integer number BEFORE you save. This will update the name from what would be Asm_Bracket 1_1 to Asm_Bracket 2

Save Management -->

Regards,
Derek


Win XP64
R20/21, 3DVIA Composer 2012, ST R20
Dell T7400 16GB Ram
Quadro FX 4800 - 1.5GB

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!


Resources