Hot News:

Mit Unterstützung durch:

  Foren auf CAD.de (alle Foren)
  NX Programmierung
  Umgang mit Tabellen im NX (Zeichnungsmodus)? VB.Net geht es damit?

Antwort erstellen  Neues Thema erstellen
CAD.de Login | Logout | Profil | Profil bearbeiten | Registrieren | Voreinstellungen | Hilfe | Suchen

Anzeige:

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen nächster neuer Beitrag | nächster älterer Beitrag
  
Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für NX
Autor Thema:  Umgang mit Tabellen im NX (Zeichnungsmodus)? VB.Net geht es damit? (3378 mal gelesen)
NXDJ
Mitglied
Konstrukteur


Sehen Sie sich das Profil von NXDJ  an!   Senden Sie eine Private Message an NXDJ  Schreiben Sie einen Gästebucheintrag für NXDJ

Beiträge: 15
Registriert: 19.01.2009

erstellt am: 21. Jan. 2009 17:57    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities

Hallo zusammen habe mal ein Thema was denke ich viele interessiert!

Problem: Tabellen in NX mit VB.Net

Also wie kann man mit VB.Net Tabellen im NX bearbeiten?
Die Erstellung ist ja kein Problem aber wie bekomme ich Daten hinein?
Aber noch wichtiger ist wie bekomme ich Infos über meine Tabelle?

Habe im Internet mal etwas gesucht aber leider nur was für C++ gefunden  !

Meine Hauptfrage Fragen:
- Wie bekomme ich den tag der einzelnen Zellen heraus?
- Wie bekomme ich den tag der einzelnen Zeilen heraus?
- Wie bekomme ich den tag der einzelnen Spalten heraus?


VB.Net Code:

Code:
Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.UF


Module NXJournal

Dim theUI As UI = UI.GetUI()
Dim ufs As UFSession = UFSession.GetUFSession()

Sub Main
        Dim Tabnot_Tag As NXOpen.Tag
        Dim Tabnot_origin() As Double = Tabnot_pos()
        Dim Tabnot_Pref As NXOpen.UF.UFTabnot.SectionPrefs

        Tabnot_Pref.max_height = 250
        Tabnot_Pref.border_width = 6
        Tabnot_Pref.attach_point = UFTabnot.AttachPoint.AttachPointTopLeft
        Tabnot_Pref.header_location = UFTabnot.HeaderLocation.HeaderLocationBelow
        Tabnot_Pref.overflow_direction = UFTabnot.OverflowDirection.OverflowLeft
        Tabnot_Pref.overflow_spacing = 6
        Tabnot_Pref.use_double_width_border = False


        ufs.Tabnot.Create(Tabnot_Pref, Tabnot_origin, Tabnot_Tag)
End Sub

    Function Tabnot_pos() As Double()

        Dim Titel As String = "Tabellenposition setzen!"
        Dim TheUFsess As UFSession = UFSession.GetUFSession()
        Dim Pointresponse As Integer
        Dim Base_point(2) As Double


        ufs.Ui.LockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)

        Try
            TheUFsess.Ui.PickPoint(Titel, Base_point)

        Finally
            ufs.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
        End Try


        Return Base_point


    End Function

End Module


C++ Code:

Code:
double knuckled_profile_report::make_table(double offest)
{ int irc, n_rows, n_cols, num_sections, i, j, shift_row;  double pt[3];
  UF_TABNOT_section_prefs_t tabnote_section_prefs, tabnote_section_prefs_save;
  UF_TABNOT_cell_prefs_t    tabnote_cell_prefs,    tabnote_cell_prefs_save;
  tag_t work_view_tag, wcs_tag, m_tag, csys_tag;
  int mpi[100]; double mpr[70]; char rp[27+1], dp[27+1];
  UF_ATTR_value_t attr_val; char sval[UF_ATTR_MAX_STRING_LEN+1];
  double box[6], ymin, ymax;

  try
  {
  irc=UF_DRF_ask_preferences(mpi, mpr, rp, dp);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_CSYS_ask_wcs(&wcs_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_CSYS_create_matrix(matrix, &m_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_CSYS_create_temp_csys(map(0.0,-offest,pt), m_tag, &csys_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_TABNOT_ask_default_section_prefs(&tabnote_section_prefs);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  tabnote_section_prefs_save=tabnote_section_prefs;
    tabnote_section_prefs.attach_point = UF_TABNOT_attach_point_t(UF_TABNOT_attach_point_top_left);
    tabnote_section_prefs.max_height = 0L;

  irc=UF_TABNOT_ask_default_cell_prefs(&tabnote_cell_prefs);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  tabnote_cell_prefs_save=tabnote_cell_prefs;
    tabnote_cell_prefs.is_vertical = false;
    tabnote_cell_prefs.nm_fit_methods = 2;
    tabnote_cell_prefs.fit_methods[0] = UF_TABNOT_fit_method_t(UF_TABNOT_fit_method_auto_size_row);
    tabnote_cell_prefs.fit_methods[1] = UF_TABNOT_fit_method_t(UF_TABNOT_fit_method_auto_size_col);
    tabnote_cell_prefs.format = UF_TABNOT_format_t(UF_TABNOT_format_text);
    tabnote_cell_prefs.horiz_just = UF_TABNOT_just_t(UF_TABNOT_just_left);
    tabnote_cell_prefs.vert_just  = UF_TABNOT_just_t(UF_TABNOT_just_middle);
    if(flag_table_line_color)
    tabnote_cell_prefs.bottom_line_cfw[0]=tabnote_cell_prefs.right_line_cfw[0]=table_line_color;
    if(flag_table_line_font)
    tabnote_cell_prefs.bottom_line_cfw[1]=tabnote_cell_prefs.right_line_cfw[1]=table_line_font;
    if(flag_table_line_width)
    tabnote_cell_prefs.bottom_line_cfw[2]=tabnote_cell_prefs.right_line_cfw[2]=table_line_width;
    tabnote_cell_prefs.text_height = mpr[44];
    if(flag_table_text_height) tabnote_cell_prefs.text_height=table_text_height;
    if(flag_table_text_color)  tabnote_cell_prefs.text_color=table_text_color;
    if(flag_table_text_width)  tabnote_cell_prefs.text_density=table_text_width;

  irc=UF_TABNOT_set_default_section_prefs(&tabnote_section_prefs);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_TABNOT_set_default_cell_prefs(&tabnote_cell_prefs);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_CSYS_set_wcs(csys_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_TABNOT_create(&tabnote_section_prefs, pt, &tabnote_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_TABNOT_enable_automatic_update(false);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

    irc=UF_TABNOT_ask_nm_rows(tabnote_tag, &n_rows);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    for(i=0; i<n_rows; i++)
    { tag_t row_tag;
    irc=UF_TABNOT_ask_nth_row(tabnote_tag, 0, &row_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_remove_row(row_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    irc=UF_TABNOT_ask_nm_columns(tabnote_tag, &n_cols);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    for(i=0; i<n_cols; i++)
    { tag_t col_tag;
    irc=UF_TABNOT_ask_nth_column(tabnote_tag, 0, &col_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_remove_column(col_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    n_rows=1+((int)segments.size()<table_number_of_rows?(int)segments.size():table_number_of_rows);
    i=segments.size()/(n_rows-1);
    n_cols=5*( (double)segments.size()/(n_rows-1)-i > 0 ? i+1 : i );

    for(i=0; i<n_rows; i++)
    { tag_t row_tag;
    irc=UF_TABNOT_create_row(10.0, &row_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_add_row(tabnote_tag, row_tag, 0);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    for(i=0; i<n_cols; i++)
    { tag_t col_tag;
    irc=UF_TABNOT_create_column(10.0, &col_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_add_column(tabnote_tag, col_tag, 0);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    std::vector < std::vector <tag_t> > vvcells;
    vvcells.reserve(n_rows);

    for(i=0; i<n_rows; i++)
    { std::vector <tag_t> vbuff; tag_t row_tag;
    irc=UF_TABNOT_ask_nth_row(tabnote_tag, i, &row_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
        for (j=0; j<n_cols; j++)
        { tag_t col_tag, cell_tag;
        irc=UF_TABNOT_ask_nth_column(tabnote_tag, j, &col_tag);
        if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
        irc=UF_TABNOT_ask_cell_at_row_col(row_tag, col_tag, &cell_tag);
        if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
        vbuff.push_back(cell_tag);
        }
    vvcells.push_back(vbuff);
    }


    for(i=0; i<(int)vvcells.at(0).size(); i++)
    {
      if(1 == i%5)
      {
      irc=UF_TABNOT_set_cell_text(vvcells[0][i], "Distance Base");
      if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
      }
      if(3 == i%5)
      {
      irc=UF_TABNOT_set_cell_text(vvcells[0][i], "Distance Top");
      if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
      }
      if(4 == i%5)
      {
      irc=UF_TABNOT_set_cell_text(vvcells[0][i], "Knuckle Angle");
      if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
      }
    irc=UF_TABNOT_set_cell_prefs(vvcells[0][i], &tabnote_cell_prefs);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    int txt_prec=-1; bool txt_tr_zer=true;
    if(flag_table_text_precision)        txt_prec  = table_text_precision;
    if(flag_table_text_keep_trail_zeroes) txt_tr_zer = table_text_keep_trail_zeroes;
    for(i=1, j=1, shift_row=-5; i<(int)table_segments.size(); i++, j++)
    {
    if((i-1)%(n_rows-1) == 0) { shift_row+=5; j=1; }
    irc=UF_TABNOT_set_cell_text(vvcells[j][shift_row+0], table_segments[i].get_index().c_str());
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_set_cell_text(vvcells[j][shift_row+1], table_segments[i].get_dist_base(txt_prec, txt_tr_zer).c_str());
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_set_cell_text(vvcells[j][shift_row+2], table_segments[i].get_index().c_str());
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_set_cell_text(vvcells[j][shift_row+3], table_segments[i].get_dist_top(txt_prec, txt_tr_zer).c_str());
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    irc=UF_TABNOT_set_cell_text(vvcells[j][shift_row+4], table_segments[i].get_angle().c_str());
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

    if(flag_table_line_color)
    {
    irc=UF_OBJ_set_color(tabnote_tag, table_line_color);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }
    if(flag_table_line_font)
    {
    irc=UF_OBJ_set_font(tabnote_tag, table_line_font);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }
    if(flag_table_line_width)
    {
    irc=UF_OBJ_set_line_width(tabnote_tag, table_line_width);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }
    if(flag_table_text_layer)
    {
    irc=UF_OBJ_set_layer(tabnote_tag, table_text_layer);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

  irc=UF_TABNOT_enable_automatic_update(true);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_DRAW_update_tabnot(tabnote_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_CSYS_set_wcs(wcs_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_TABNOT_ask_nm_sections(tabnote_tag, &num_sections);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    attr_val.type=UF_ATTR_string; attr_val.value.string = sval;
    strcpy(sval, value_attribute_mk_type_tabnote);
    for(i=0; i<num_sections; i++)
    { tag_t section_tag;
    irc=UF_TABNOT_ask_nth_section(tabnote_tag, i, §ion_tag);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    tabnote_sections.push_back(section_tag);
    irc=UF_ATTR_assign(section_tag, name_attribute_mk_type, attr_val);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    }

  irc=UF_VIEW_ask_work_view(&work_view_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_VIEW_convert_to_model(work_view_tag, tabnote_tag);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_TABNOT_set_default_section_prefs(&tabnote_section_prefs_save);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  irc=UF_TABNOT_set_default_cell_prefs(&tabnote_cell_prefs_save);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);

  irc=UF_MODL_ask_bounding_box (tabnote_sections[0], box);
  if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
  ymin=box[1]; ymax=box[4];
    for(i=1; i<num_sections; i++)
    {
    irc=UF_MODL_ask_bounding_box (tabnote_sections[i], box);
    if(irc) throw ug_err(THIS_FILE, __LINE__, irc);
    if(box[1] < ymin) ymin=box[1];
    if(box[4] > ymax) ymax=box[4];
    }

  }
  catch(base_err &e) { e.trace(THIS_FILE, __LINE__); throw; }
  catch(...)        { base_err e(THIS_FILE, __LINE__, "System error"); throw e; }
return ymax-ymin;
}


Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

Overcast
Mitglied



Sehen Sie sich das Profil von Overcast an!   Senden Sie eine Private Message an Overcast  Schreiben Sie einen Gästebucheintrag für Overcast

Beiträge: 111
Registriert: 21.12.2005

.

erstellt am: 27. Jan. 2009 13:09    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für NXDJ 10 Unities + Antwort hilfreich

Zitat:
Original erstellt von NXDJ :

Problem: Tabellen in NX mit VB.Net

Aber noch wichtiger ist wie bekomme ich Infos über meine Tabelle?


Im UGAnswer gibt es einen VB Code dazu.
Denke, er ist eine gute Grundlage für Dein Vorhaben.

Sample NX Open .NET Visual Basic program : report tabular note

Code:

Imports System
Imports NXOpen
Imports NXOpen.UF
Imports System.Windows.Forms
Imports System.Environment
Module NXJournal

Dim nxopenSession As NXOpen.UF.UFSession

    Sub Main
        Dim tabular_note_section As NXOpen.Tag
        Dim tabular_note As NXOpen.Tag
        Dim nm_rows As Integer
        Dim nm_cols As Integer

        nxopenSession = NXOpen.UF.UFSession.GetUFSession()

        While select_a_tabular_note(tabular_note_section) = Selection.Response.Ok

          'MessageBox.Show("Tabular Note Section Tag:" & tabular_note_section.ToString())

          ' now get the tabular note tag from the section tag:
          nxopenSession.Tabnot.AskTabularNoteOfSection( tabular_note_section, tabular_note )
          MessageBox.Show( "Tabular Note Section Tag:" & tabular_note_section.ToString() & _
                          NewLine & "Tabular Note Object Tag:" & tabular_note.ToString() )

          nxopenSession.Tabnot.AskNmColumns(tabular_note, nm_cols)
          nxopenSession.Tabnot.AskNmRows(tabular_note, nm_rows)
          MessageBox.Show( "Columns:" & nm_cols.ToString() & Newline _
                          & "Rows:" & nm_rows.ToString() )

         
          ' turn off highlighting
          nxopenSession.Disp.SetHighlight(tabular_note_section, 0)

        End While

    End Sub


    Function select_a_tabular_note(ByRef tabular_note As NXOpen.Tag) As Selection.Response

        Dim message As String
        Dim title As String = "Select a tabular note"
        Dim scope As Integer = UFConstants.UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY
        Dim response As Integer
        Dim obj as NXOpen.Tag
        Dim view As NXOpen.Tag
        Dim cursor(2) As Double
        Dim ip As UfUi.SelInitFnT = AddressOf init_proc
        nxopenSession.Ui.LockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)

        Try
        nxopenSession.Ui.SelectWithSingleDialog(message, title, scope, ip, Nothing, response, tabular_note, cursor, view)
        Finally
        nxopenSession.Ui.UnlockUgAccess(UFConstants.UF_UI_FROM_CUSTOM)
        End Try

        If response <> UFConstants.UF_UI_OBJECT_SELECTED Then
            Return Selection.Response.Cancel
        Else
          Return Selection.Response.Ok
        End If

    End Function

    Function init_proc(ByVal select_ As IntPtr, ByVal userdata As IntPtr) As Integer
        ' Selection initialization

        Dim num_triples As Integer = 1
        Dim mask_triples(0) As UFUi.Mask
        mask_triples(0).object_type = UFConstants.UF_tabular_note_type
        mask_triples(0).object_subtype = UFConstants.UF_tabular_note_section_subtype
        mask_triples(0).solid_type = 0

        nxopenSession.Ui.SetSelMask(select_, UfUi.SelMaskAction.SelMaskClearAndEnableSpecific, num_triples, mask_triples)
        return UFConstants.UF_UI_SEL_SUCCESS

    End Function

End Module


Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

NXDJ
Mitglied
Konstrukteur


Sehen Sie sich das Profil von NXDJ an!   Senden Sie eine Private Message an NXDJ  Schreiben Sie einen Gästebucheintrag für NXDJ

Beiträge: 15
Registriert: 19.01.2009

erstellt am: 29. Jan. 2009 19:06    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für NXDJ 10 Unities + Antwort hilfreich

Danke für deine Antwort werde es mal Versuchen!

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

NXDJ
Mitglied
Konstrukteur


Sehen Sie sich das Profil von NXDJ an!   Senden Sie eine Private Message an NXDJ  Schreiben Sie einen Gästebucheintrag für NXDJ

Beiträge: 15
Registriert: 19.01.2009

erstellt am: 25. Feb. 2009 18:14    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für NXDJ 10 Unities + Antwort hilfreich

Habe mal eine kleine Übersicht zu Tabellen erstellt!

Code:

            Dim Hole_Tabnot_Tag As NXOpen.Tag
            Dim Hole_Tabnot_origin() As Double = Hole_Tabnot_pos()
            Dim Hole_Tabnot_Pref As NXOpen.UF.UFTabnot.SectionPrefs
            Dim Hole_Cell_Pref As NXOpen.UF.UFTabnot.CellPrefs
            Dim Index AS Integer = 0

            ''' Tabellen Einstellungen

            Hole_Tabnot_Pref.max_height = 250
            Hole_Tabnot_Pref.border_width = 0
            Hole_Tabnot_Pref.attach_point = UFTabnot.AttachPoint.AttachPointTopLeft
            Hole_Tabnot_Pref.header_location = UFTabnot.HeaderLocation.HeaderLocationBelow
            Hole_Tabnot_Pref.overflow_direction = UFTabnot.OverflowDirection.OverflowLeft
            Hole_Tabnot_Pref.overflow_spacing = 6
            Hole_Tabnot_Pref.use_double_width_border = False

            ''' Neue Tabelle
            ufs.Tabnot.Create(Hole_Tabnot_Pref, Hole_Tabnot_origin, Hole_Tabnot_Tag)


            'Tag Kopfspalte
            ufs.Tabnot.AskNthColumn(Hole_Tabnot_Tag, Index, Column_Tag)

            'Tag einer Kopfzeile
            ufs.Tabnot.AskNthHeaderRow(Hole_Tabnot_Tag, Index , Row_Tag)

            'Tag Kopfzelle
            ufs.Tabnot.AskCellAtRowCol(Row_Tag, Column_Tag, Cell_Tag)

            ufs.Tabnot.SetCellText(Cell_Tag, "Text")


            ''''''''''''''''''''''''''''''''''''''''''

            'Tag Spalte
            ufs.Tabnot.AskNthColumn(Hole_Tabnot_Tag, 0, Column_Tag)
            'Tag einer Zeile
            ufs.Tabnot.AskNthRow(Hole_Tabnot_Tag, 0, Row_Tag)
            'Tag Zelle
            ufs.Tabnot.AskCellAtRowCol(Row_Tag, Column_Tag, Cell_Tag)

            ' Eigenschaft Zelle
            ufs.Tabnot.AskCellPrefs(Cell_Tag, Hole_Cell_Pref)


Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP



Scientist - Optical Design and Simulation (m/f/d)

We are tooz technologies, a spin-off of ZEISS, focused on the development and production of optics for smart glasses with vision correction. To complete our team, we are looking for a Scientist - Optical Design and Simulation (m/f/d).


You will work on the optical design and the simulation of complex optical systems for AR and VR data glasses. In this role, you will analyze, ...

Anzeige ansehenPhysik
pzyfhg
Mitglied


Sehen Sie sich das Profil von pzyfhg an!   Senden Sie eine Private Message an pzyfhg  Schreiben Sie einen Gästebucheintrag für pzyfhg

Beiträge: 1
Registriert: 23.04.2009

erstellt am: 23. Apr. 2009 16:29    Editieren oder löschen Sie diesen Beitrag!  <-- editieren / zitieren -->   Antwort mit Zitat in Fett Antwort mit kursivem Zitat    Unities abgeben: 1 Unity (wenig hilfreich, aber dennoch)2 Unities3 Unities4 Unities5 Unities6 Unities7 Unities8 Unities9 Unities10 Unities Nur für NXDJ 10 Unities + Antwort hilfreich

Hello, I am having trouble updating a Tabular note cell when the table is being edited with the spreadsheet. If I have a normal tabular note and I update the cell text using the API the cells does update the text, but not when the table is being referenced by a spreadsheet.

Does anyone know what functions to use to update the tabular notes cells when referenced by a spreadsheet?

I am also trying to get the cell pref to get the referenced_spreadsheed TAG but every time I try to use any of the Ask, Set default/Cell Pref functions I get some type of internal error.

I have test this function on the older version of the API for example the ''UF_TABNOT_ask_cell_prefs' and it does work fine(but this is in an older program that used this API type)

I am using XNOpen API for the NX3 version.

Thanks!

Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP

Anzeige.:

Anzeige: (Infos zum Werbeplatz >>)

Darstellung des Themas zum Ausdrucken. Bitte dann die Druckfunktion des Browsers verwenden. | Suche nach Beiträgen

nächster neuerer Beitrag | nächster älterer Beitrag
Antwort erstellen


Diesen Beitrag mit Lesezeichen versehen ... | Nach anderen Beiträgen suchen | CAD.de-Newsletter

Administrative Optionen: Beitrag schliessen | Archivieren/Bewegen | Beitrag melden!

Fragen und Anregungen: Kritik-Forum | Neues aus der Community: Community-Forum

(c)2023 CAD.de | Impressum | Datenschutz