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 to create Alignment with Site?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
phuongtv7MJF8
420 Views, 2 Replies

How to create Alignment with Site?

When I create new alignment by c# API, the alignment is site less.

I can use method CopyToSite ("sitename") and deleted the original one. But this task is complicated to do it every new alignment.

So is there anyway to set the default site? Or make a setting before call Alignment.Create();

 

Thank in advance for your help.

 

2 REPLIES 2
Message 2 of 3
hippe013
in reply to: phuongtv7MJF8

How are you currently creating your alignment? Post your code? The Alignment.Create method takes a siteId as one of the parameters.

 

http://docs.autodesk.com/CIV3D/2018/ENU/API_Reference_Guide/html/db966ebd-6646-86b2-e219-0a9d707fa35...

 

hippe013_0-1617974423673.png

 

Message 3 of 3

Thanks, I use exactly the same method which already include the siteId.

I didn't understand why I did not see that parameter.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report