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: 

How do I programmatically turn on/off corridor baselines in C3D?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
heyimsp12
346 Views, 5 Replies

How do I programmatically turn on/off corridor baselines in C3D?

In C3D under Corridor properties > Parameters we have an option to show/hide all the baselines of a corridor as shown in the figure below. I want to do something similar using C3D API, is there a way to do this using C# or VBA?

 

Or is there any alternate way to show/hide corridors?

 

heyimsp12_0-1680880190214.png

 

Labels (5)
5 REPLIES 5
Message 2 of 6
hosneyalaa
in reply to: heyimsp12

Hi

as an idea Maybe you need classesCheckBox in your code

 

foto042.jpg

Message 3 of 6
heyimsp12
in reply to: hosneyalaa

@hosneyalaa No no. 

 

I meant to ask if there is any property of Corridor or baseline in civil 3d API that can allow me to turn it on/off?

Message 4 of 6
hosneyalaa
in reply to: heyimsp12

@heyimsp12 

I understand what you want

I don't know if in civil 3d API This option

You can search at

Autodesk. Civil. Settings Namespace

 

https://help.autodesk.com/view/CIV3D/2024/ENU/?guid=b7139987-5e0a-7d2d-85f1-1cf623575d72

Message 5 of 6
gleeuwdrent
in reply to: heyimsp12

The property 'NeedsProcessing' defines if a baseline or baseline region is turned of (false) or on (true).

Message 6 of 6
heyimsp12
in reply to: gleeuwdrent

Thank you @gleeuwdrent that worked.

Along with 'NeedsProcessing' property of baselines, I also found corridor has 'Visible' property which i was able to use together to get the required results. In order to completely hide the corridor from Model space, both property (in corridors as well as baseline) has to be used.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report