Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetNumberingSchemesByType - AutogenField class - Current Value

2 REPLIES 2
Reply
Message 1 of 3
Micky_SDP
277 Views, 2 Replies

GetNumberingSchemesByType - AutogenField class - Current Value

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

2 REPLIES 2
Message 2 of 3
Redmond.D
in reply to: Micky_SDP

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.

Message 3 of 3
Micky_SDP
in reply to: Micky_SDP

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report