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!

Balloon Auto-Fill

Status
Not open for further replies.

Alan Lowbands

Aerospace
May 17, 2017
274
GB
Hi,
Is it possible to have a macro that when run, would allow me to click on a part in an assembly drawing, create a balloon and populate the text with a property I created in the part properties. ?
I'm struggling trying to find the code to point to a specific property.

any help would be appreciated.

thanks
Alan
 
Replies continue below

Recommended for you

Tried the code but couldn't get it to work.
Does anyone know how catia shows the number of a part before it creates the balloon ?
Also I use catia start command to begin the balloon creation it doesn't actually put a balloon around the text, any ideas why ?
 
Does anyone know how catia shows the number of a part before it creates the balloon ?

After you run Generate Numbers, the number appears in the Properties of each assembly component
 
Thanks jackk,

I have searched the net trying to find a snippet of code that pulls a parts parameters into a drawing but nothing seems to be out there.
Do you know if this is just one of them things that catia can't do. ?
The odd item that I have come across doesn't work.

ta
Alan
 
Hi, i am sry, i wasnt here for some time, its not that hard to take those parameters.
If you are in drawing just switch to the part u want to take parameters, take it, then switch back to the drawing and fill it.

I have one more idea, if you crate first ballons with part number, you can use that info to swith to the parts or open them, so u can tak ethat parameters you want.
 
Hi, thanks for the replies,
The method you mentioned is the one I'm using at the moment.
When you balloon a part it will auto fill with the part number, what I'm trying to find out is how does it find this number ?
If I could find the code it uses them maybe it's possible to have a macro that will autofill balloons with any part property you like.
 
Correct me if I am wrong, but before you run the balloons, you need to run the Generate Numbering command, which generates Instance Numbers in Part Properties

regards,
LWolf
 
Hi LWolf,
If you go to options / drafting / annotation & dress up / balloon creation
you can select either Numbers, Instance or Part number.
So my thinking is, if it knows the part number why can't it find a property inside that part ?
I could be barking up the wrong tree again & it might not be that simple.

cheers
alan
 
I probably didn't make myself clear when I first asked about this.
I don't want catia to auto-balloon an assembly as such.
I'm looking to create a macro that will create a single balloon that will contain a properties text instead of the part number.

clear as mud :/
 
Hi,
i m not sure that's possible, but i m also interested how they do it, it must be smthg, i dont work a lot with 2D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top