Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How can we change the custom name of the Drafting View using NXOpen in NX 7.5 ?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
Hi Everyone,

Can someone let me know how can i change the custom name of a drafting view using NXOpen?
I tried using the SetName method but the view name is not changing.

Thanks and Regards,
Amitabh
 
Replies continue below

Recommended for you

This works in both NX6 and NX8.

Code:
NXOpen.Drawings.BaseView baseView1 = (NXOpen.Drawings.BaseView)workPart.DraftingViews.FindObject("TOP@1");

    baseView1.SetName("NewName");

Suresh
 
Thanks Suresh.
It works in NX 7.5.It was a small error on my part for which it was not updating.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor