×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)

Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)

Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)

(OP)
Hi -

Does someone here know if it is possible to set or change the fit method programmatically in Annotation Preferences > tab "Fit Methods"
In NX drafting application..
In some of our NX drawing files , "Auto Size Column" is ticked...
But I need to be able to untick this pref > pleas see attached pics..
Do some of you guys know if I can set the part preference, so this is unticked...
I use vb.net in my app's....

lklo

RE: Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)

I posted some code on the Siemens community site a while back that shows how to change the fit method of tabular note cells.

www.nxjournaling.com

RE: Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)

(OP)
Cowski - thanks again for your reply.

I already use the fit_methods() in my tabNotes in my program.
I use it for changing some indvidual cell's, when editing/creatin cells in program...

But I also need to change the default FitMethod preferences in the current drawing part,in the start of the program.
I found out to use this:

CODE -->

Dim lkl_cell_prefs As UFTabnot.CellPrefs
        ufs.Tabnot.AskDefaultCellPrefs(lkl_cell_prefs)
        lkl_cell_prefs.nm_fit_methods = 4
        lkl_cell_prefs.fit_methods(0) = UFTabnot.FitMethod.FitMethodAutoSizeRow
        lkl_cell_prefs.fit_methods(1) = UFTabnot.FitMethod.FitMethodAutoSizeCol
        lkl_cell_prefs.fit_methods(2) = UFTabnot.FitMethod.FitMethodTruncate
        lkl_cell_prefs.fit_methods(3) = UFTabnot.FitMethod.FitMethodAutoSizeText
        ufs.Tabnot.SetDefaultCellPrefs(lkl_cell_prefs) 

works very well....
I also ask for restore_cell_prefs...(not seen in below code)
Then in the end of program, I restore the FitMethod preferences to the Initial preferences...

(I have a really nice video I would like to share, but seems like it's not possible to upload videos here on the site)

lklo


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources