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: 

Copy Corridor properties to new corridor

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
rahulj
783 Views, 2 Replies

Copy Corridor properties to new corridor

Hi,
I am creating new corridor with some of baselines and / or regions from existing corridor. I have implemented basic functionalities.
But while doing it, I could not copy following properties from original corridor to new corridor,
1) Parameters viz. Target and Overrides.
2) codes (Link, Point, Shape)
3) Feature lines with styles
4) Surfaces and its specified codes
5) Boundaries

Please guide me to set all (/any) of these properties from original corridor to new corridor.

 

Thanking you for all your help,
Mahesh

Tags (2)
2 REPLIES 2
Message 2 of 3
augusto.goncalves
in reply to: rahulj

If the .NET object have a .Clone method you can easily create a copy and reuse... otherwise you'll need to create a new one and copy property by property.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 3
rahulj
in reply to: augusto.goncalves

Hi Augusto,

 

As you suggested, I created the new corridor by using clone method.

But when I undo all, the corridor surface from original corridor gets unchecked (Corridor->Properties->Surfaces).

As per standard behavior, all properties from original corridor must be intact when I undo all processes that I have done in the last transaction.

 

Please suggest me the way so that I can restrict the change in original corridor surfaces.

 

Thanking you,

Rahul.

 

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report