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
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)
www.nxjournaling.com
RE: Annotation Preferences > Fit Methods > change or set via NXOpen (vb.net)
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