GetNumberingSchemesByType - AutogenField class - Current Value

GetNumberingSchemesByType - AutogenField class - Current Value

Micky_SDP
Enthusiast Enthusiast
554 Views
2 Replies
Message 1 of 3

GetNumberingSchemesByType - AutogenField class - Current Value

Micky_SDP
Enthusiast
Enthusiast

Hi,
I'm new in this forum....

 

I have a problem reading the AutogenField class, in particular I don't know how to read the current value of

FieldType Autogenerated.

I haven't found a member in this class.

 

For example in the ComplexField ther is ComplexVal member.

 

This is my code:

 

foreach (NumSchmField n in num)
 {
   FieldType fT = n.FieldTyp;
    if (fT == FieldType.FixedText)
     {
        FixedTxtField f = (FixedTxtField)n;
         MessageBox.Show(f.FixedTxtVal);
         }
    else if (fT == FieldType.FreeText)
      {
         FreeTxtField f = (FreeTxtField)n;
           MessageBox.Show(f.DfltVal);
     }
     else if (fT == FieldType.Autogenerated)
     {
       AutogenField f = (AutogenField)n;

 

 

Can anyone help me?!?

 

...Sorry for my bad English....Smiley Happy

 

 

thanks

Michele

0 Likes
555 Views
2 Replies
Replies (2)
Message 2 of 3

Redmond.D
Autodesk
Autodesk

To repeat your question, you have a numbering scheme with an AutogenField and you want to know what the next number is going to be. 

 

I don't think there is a way to get that information without generating the next number in the sequence.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 3 of 3

Micky_SDP
Enthusiast
Enthusiast

Thank's for the reply...

 

I try with Autocad 2013 and when I save the draw with a numbering scheme with an AutogenField, Autocad offers me the next number automatically.

 

This information is saved into Autocad?

Because if this is true, I can try to save this infomation into my application by code..

 

Michele

0 Likes