Reply
Solved! Go to solution

Get draft dimension by display name

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.

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
Solution
Solution
Accepted by topic author martyman
‎06-09-2017 12:58 PM

Re: Get draft dimension by display name

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;
}
}