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!

Drawing dimensions Set Value

Status
Not open for further replies.

dddn

Mechanical
Nov 26, 2022
35
Hello everyone.
It is possible change value of dimension, in a drawing sketch, with a simple macro in CATIA?
For eeample:
value_jhcft2.png


Thank you all
 
Replies continue below

Recommended for you

What do you want to change?
The number of shown numericals? It's governed by the drawing standard. You can edit it (if you're allowed) to your desires and it'll show the standard value for dimensions.
 
Hi Wuzhee,
I want a change the numerical value, with a CATScript, for example from 132,505 to 150.

Thank you
 
DO you want to show a fake value (line = 132 but value = 150) or do you wan the geometry to adapt to new value?
in your case it seems the value will drive the geometry (not a fake value) Is that what you want ?

Not sure API could change value of driving dimension

Eric N.
indocti discant et ament meminisse periti
 
Hello itsmyjob,
yes I want drive (adapt) the geometry with a new real value (not Fake)

Thank you
 
Are we ultimately talking about the modification of purely 2D geometry in a drawing, or, is the drawing geometry projected from a 3D model and the intent is to modify the 3D model from the drawing by manipulating the drawing dimension?

If it is truly just the modification of 2D geometry, another option could be to 'drive' the value via a Parameter in the CATIA drawing perhaps then get your macro to modify the Parameter value?

Parameter_onmesa.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor