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: 

Project rules vars using C#

4 REPLIES 4
Reply
Message 1 of 5
joantopo
364 Views, 4 Replies

Project rules vars using C#

alignment properties-tab "design rules".

Can I know the variable "speed project" and its station project?

Can I know the value (text) specified in "minimum radius table" and "sobreelevation setting method"?

 

I need the variables for programming in C#.

I would make an application form the Spanish alignment and Profiles rules.

 

See the screenshoot.

 

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
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: joantopo

Hi joantopo,  

 

Please look into the following in Civil 3D .NET API -

 

Alignment.DesignSpeeds Property -> Gets the Alignment design speed collection.

 

DesignSpeedCollection.GetDesignSpeed Method -> Gets the DesignSpeed object in the collection by raw Station value.

 

Does it help ?

 

Thanks,

Message 3 of 5
joantopo
in reply to: joantopo

ok. Iit´s right.

 

Thank you.

 

But where is the property "MinimumRadiusTableName"? for DesignCriteria

 

I would like get this property.

 

it exist for AutoWideningDesignCriteria.

 

 

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
Message 4 of 5
Anonymous
in reply to: joantopo

I don't see 'MiniumRadius Table' is exposed for Alignment object, however, you can use the Alignment.CriteriaFileName API and get the design criteria XML file and read the value from there.

 

Does it help ?

 

Thanks,

Message 5 of 5
joantopo
in reply to: Anonymous

Yes, but it is not a solution for me. There exist 2 groups (2 tables) in the XML (spanish rules), and I want to know which the user chooses, from the properties of alignment.

 

At the moment, I will put a combobox with these 2 options of table, but I had liked to obtain the value of this form.

 

I hope that it appears in some API's new version

 

Trank 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

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report