Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Add Leader to 2d Components

Status
Not open for further replies.

dddn

Mechanical
Joined
Nov 26, 2022
Messages
35
Location
IT
Hello everyone, I need your help:
Is it possible to automate (with a CATIA macro) the insertion of the "Add Leader", in an object (detail component), and associate it with a dimension? The objective is to link the instantiated 2d component with the reference dimension.
I have attached images of the problem.

Thank you all for your help!

1_clskkk.png

2_l0hq47.png
 
I don't believe CATIA has this functionality. It sounds looks like you are trying to create a custom text frame; maybe look into creating this in your drafting standard? You could fake it by creating an empty text box behind the component, but that is cheesy.
 
Here's the code I use to remove leaders from balloons

Code:
Dim MyLeaders
    Set MyLeaders = SelectedBalloon.Leaders
    On Error Resume Next
    MyLeaders.Remove (1)
    'MsgBox Err.Number


End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top