Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Does anyone know how to change "mat

Status
Not open for further replies.

Jevakil

Mechanical
Mar 19, 2003
41
Does anyone know how to change "mate dimension value" through API?. There is a function "AssemblyDoc.EditMate", but in order to use it you have to select faces, or edges used to create the mate. All I want to do is to change the dimension value. Is there an easey way to access this value directly and change it?

Thanks.
 
Replies continue below

Recommended for you

First, I would rename the mate so that it is meaningful. You can use the same method as you would for changing dimensions.
Code:
Part.Parameter("Dist@TBW").SystemValue = rTBW
In this case, TBW is the name of the mate (i.e. Distance1) and Dist is the name of the dimension. Using default settings for the mate, you would use something like this:
Code:
Part.Parameter("D1@Distance1").SystemValue = rValue
Remember that the value gets set in meters...

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor