×
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

Title block automation

Title block automation

Title block automation

(OP)
Hello everybody my name is Sebastian and i'm new in catia programing macro. In my new job i;m working on catia v5 R19 and my company have some already made title blocks as drawings. Every time they draw something new they copy paste the title block and fill it by hand. What i want to do is to automat this proces to fill everything automated but this is where the problem is i don't know how to write such macro and i wan't to learn how to do it. I was looking at the macro for automated title block creator in catia the sample one, but didn't know how this works and why. The macro i want to create is i want to take for example the parameter like part number or mass from the part and place that information in text in the title block. I just need a simple explenation how to do this please help.

RE: Title block automation

Hi,
i was made some same macro i think, and here is post on this forum too.

https://www.eng-tips.com/viewthread.cfm?qid=426512
You can find some good stuff on this topic.

So how would your macro work, if you run in from drawing, it will go to the part, take parameters from part, than back to drawing and fill those parameters.
In this case, part number and drawing need to be same, so you can go to the part.

https://catiavbmacro.com/

RE: Title block automation

(OP)
Hi

Thank you for help. I will check that topic and see what goodes it have and that site you liked will be probbably very helpfull. I'm new in catia programing and i want to help the people i'm working with, to make they job easier and to myself to.

RE: Title block automation

(OP)
Hello again.I was reading everything catiavbmacro's posted here but still have some problems understending making macros. I found one site where some dude is drawing his title block by macro here is the link Link and it's work great and is easy to undestaned how is working and do new lines and texts but now to fill the test using macro with a parametr like part name or nomeclature? Here is some code i found on some site taking the nomeclature from part and showing it in a pop up message box

Sub CATMain()

'Read Nomenclature CATPart Properties

nomen = CATIA.ActiveDocument.GetItem(1).Nomenclature


MsgBox nomen

End Sub
But now how to take this and put it in drawing in specific text block. Please help i was thinking this was by easy but going deeper and deeper i'm geting confused.

RE: Title block automation

(OP)
Hi
I found something interesting it's catia V5 title block creator made by some german dude Link. I tested this but i have a problem with making my new title block from added one. Ther is a option to add your title block in just a drawing frame and title block and only need to modific the text propertis but for me it don't work.


and were i try to add a title block a get a error in this line.

RE: Title block automation

Hi,
i think you need to try to understand those codes little bit better,you can't find anything what you need. That link i posted is very good, also there are links inside it from ferdo how to fill title block.

Take some time to figure it out, i was made some similar macro, and i read all of these and need some time, to make it good for work.

All the best

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

eBook - Mastering Tolerances for Machined Parts
When making CNC machined parts, mastering tolerances can be challenging. Are general tolerances good enough? When does it make sense to call out for tighter tolerances? Do you need a better understanding of fits, datums, or GD&T? Learn about these topics and more in Xometry's new e-book. Download Now
eBook – How to Choose the Correct Corrosion Testing Method
When designing a metal component, engineers have to consider how susceptible certain alloys are to corrosion in the final product’s operating environment. In a recent study by NACE (National Association of Corrosion Engineers), it was estimated that the direct and indirect costs of corrosion in the United States is approximately 6.2% of the GDP. In 2016, that cost exceeded $1 trillion dollars for the first time. 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