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 JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference dimensions in Drafting

  • Thread starter Thread starter el-mariachi
  • Start date Start date
E

el-mariachi

Guest
(note: I am only a week into using Catia)

I have looked through every tool bar and properties and I cannot find where to change a dimension to reference other than manually adding parenthesis in front and after the dimension

There has to be a better/easier way
 
As you use CATIA more and more you will learn how great and powerful it is as a 3D modeler and yet how weak CATIA V5 is for drafting

CATIA V5 has no capability to make a dimension reference - you have to type in a parenthesis before and after the value.

I've noticed some users have a little macro that will add the parenthesis. If I can find it, I'll add something to this thread.
 
Last edited:
As you use CATIA more and more you will learn how great and powerful it is as a 3D modeler and yet how weak it is for drafting

CATIA V5 has no capability to make a dimension reference - you have to type in a parenthesis before and after the value.

I've noticed some users have a little macro that will add the parenthesis. If I can find it, I'll add something to this thread.

I am starting to see what you mean about the drafting
 
I found the macro program. Jus copy&paste the code below into a new macro on your system:

======

Sub CATMain()

Dim MySel As Selection
Set MySel = CATIA.ActiveDocument.Selection

Dim MyDim As DrawingDimension
Dim Array1 As String
Dim Array2 As String
Dim Array3 As String
Dim Array4 As String
For i = 1 To MySel.Count
If TypeName(MySel.Item(i).Value) = "DrawingDimension" Then
Set MyDim = MySel.Item(i).Value
MyDim.GetValue.GetBaultText 1,Array1,Array2,Array3,Array4
MyDim.GetValue.SetBaultText 1, "(", ")",Array3,Array4
End If
Next

End Sub

======

The code above was written by Fernando.

https://www.eng-tips.com/viewthread.cfm?qid=328045
 
I found the macro program. Jus copy&paste the code below into a new macro on your system:

======

Sub CATMain()

Dim MySel As Selection
Set MySel = CATIA.ActiveDocument.Selection

Dim MyDim As DrawingDimension
Dim Array1 As String
Dim Array2 As String
Dim Array3 As String
Dim Array4 As String
For i = 1 To MySel.Count
If TypeName(MySel.Item(i).Value) = "DrawingDimension" Then
Set MyDim = MySel.Item(i).Value
MyDim.GetValue.GetBaultText 1,Array1,Array2,Array3,Array4
MyDim.GetValue.SetBaultText 1, "(", ")",Array3,Array4
End If
Next

End Sub

======

The code above was written by Fernando.

https://www.eng-tips.com/viewthread.cfm?qid=328045

Great thank you!
 

Part and Inventory Search

Sponsor

Back
Top