Get draft dimension by display name

Valued Contributor
Valued Contributor

I need to add a subfix to one dimension on a draft.  Is there a way to get that dimension by display name instead of item #?  the Item # will change from draft to draft.

Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.
2 REPLIES

Re: Get draft dimension by display name

worst case,  why not seach by name but return the item #? (not sure what "item #" is)

 

In the attached screenshots my Dimensin is V629 - Named "Hole2Hole"  see the diff Properties for each6-7-2017 3-13-13 PM.png6-7-2017 3-12-58 PM.png

 

 

 

 

===================================================
Matt Johnson
Solid Edge Certified Professional (ST7 & ST8)
Solid Edge ST9 (SEEC) - Production
NX10 (Tc Integration) Pre-Production Testing
Teamcenter 10.1.6

Re: Get draft dimension by display name

Valued Contributor
Valued Contributor

I ended up doing this and got it to work...

 

foreach (SolidEdgeFrameworkSupport.Dimension dimension in cSE.oDimensions)
{
var name = dimension.DisplayName;
if (name=="LargeEnd")
{
dimension.SubfixString = sTaperInfo;
}
}

Bob Reinkemeyer
CAD Integration developer
Martin Sprocket and Gear Inc.