Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Nov 26, 2022
35
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
 
Replies continue below

Recommended for you

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