Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SettingsAbbreviationSuperelevation dubt

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
joantopo
378 Views, 2 Replies

SettingsAbbreviationSuperelevation dubt

I´m trying to do a process called "Read Abbreviatures Superelevations" to read abbreviatures:

 

http://docs.autodesk.com/CIV3D/2013/ENU/API_Reference_Guide/html/28c85f39-be6d-59ef-ebb8-745f378aa3b...

 

 

 public static void Read_Abbreviatures_Superelevations()
        {
                Document doc = Application.DocumentManager.MdiActiveDocument;
                Database db = doc.Database;
                Editor ed = doc.Editor;

                    using (Transaction trans = db.TransactionManager.StartTransaction())
                    {

                        Autodesk.Civil.Settings.SettingsAbbreviationSuperelevation Abreviatura = Autodesk.Civil.Settings<SettingsAbbreviation>() as SettingsAbbreviationSuperelevation;

                      variables_globales.PeralteMaxInicio = Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.BeginFullSuper);
                     variables_globales.PeralteMaxFinal = Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.EndFullSuper);

                     variables_globales.BombeoInicio =  Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.BeginNormalCrown);
                     variables_globales.BombeoFinal =  Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.EndNormalCrown);
                    
                    variables_globales.InicioAlin= Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.BeginOfAlignment);
                    variables_globales.FinAlin = Abreviatura.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.EndOfAlignment);
                    }
        }

 

However, I have a trouble with this line:

 

Autodesk.Civil.Settings.SettingsAbbreviationSuperelevation Abreviatura = Autodesk.Civil.Settings<SettingsAbbreviation>() as SettingsAbbreviationSuperelevation;

 How should be this line code to be OK?

 

Thank you.

 

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes
2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: joantopo

            CivilDocument civdoc = (CivilDocument)CivilApplication.ActiveDocument;
            SettingsAbbreviationSuperelevation superabbr = (SettingsAbbreviationSuperelevation)civdoc.Settings.DrawingSettings.AbbreviationsSettings.Superelevation;
            string beginfull = superabbr.GetSuperelevationAbbreviation(AbbreviationSuperelevationType.BeginFullSuper);

 

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
joantopo
in reply to: Jeff_M

Thank you very much, Jeff.

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report