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 TugboatEng 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
Joined
Mar 19, 2003
Messages
41
Location
US
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.
 
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

Back
Top