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: 

Site boundary?

6 REPLIES 6
Reply
Message 1 of 7
Jeff_M
338 Views, 6 Replies

Site boundary?

Is there a method to obtain the overall Site boundary? I have not found one, if there is, but it would sure come in handy when creating reports. We must always include the project Boundary as the first item in a report, so being able to add it to the existing reports would be a huge timesaver.

Jeff_M, also a frequent Swamper
EESignature
6 REPLIES 6
Message 2 of 7
Partha.Sarkar
in reply to: Jeff_M

Hi Jeff,

 

Site is an abstraction for construction site containing parcels and alignments. I don't see even in UI we assign any geometry to it nor it shows any geometry property like boundary etc. in UI dialog.

 

In your requirement, I think we can use Surface Boundary - isn't it ?

 

Thanks,

Partha

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 3 of 7
Jeff_M
in reply to: Partha.Sarkar

Hi Partha,

While a Site can effectively not have a 'boundary, such as when miscellaneous alignments and featurlines exist, it can have a ParcelAreaLabel displayed showing the Site Area. The SIte Area is also displayed in Prospector. As I'm composing this response I am seeing the difficulty in providing this request. I guess I will just continue to do what I have always done and have a separate Site for the project Boundary.

 

No, a surface boundary would not work for this. At least not that I can tell as the Parcel MapCheck report only gets Parcel info.

Jeff_M, also a frequent Swamper
EESignature
Message 4 of 7
Partha.Sarkar
in reply to: Jeff_M

Hi Jeff -

 

Since you need it now, I gave it a try 🙂

 

Looks like we can get the site boundary / perimeter from it's base curve.

 

Check this -

 

             

Site site = siteId.GetObject(OpenMode.ForRead) asSite;

             

Polyline sitePerimeter = (Polyline)site.BaseCurve ;             

             

ed.WriteMessage(

"\nSite Name :    " + site.Name.ToString());

             

ed.WriteMessage(

"\nSite Area :    " + site.Area.ToString());

             

ed.WriteMessage(

"\nSite Perimeter :    " + sitePerimeter.Length.ToString());

 

 

I did a quick test on a sample and seems returning correct results.

Please let me know if you find this returns incorrect boundary in your DWG files.

 

Thanks,

Partha Sarkar

Autodesk

 

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 5 of 7

Hi Jeff -

 

I am just revisiting this and wondering if you want the Site boundary geometry to be visible / printed as part of your project report ?

 

Thanks,

Partha



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 6 of 7
Jeff_M
in reply to: Partha.Sarkar

Partha, I think my current workflow will suffice. Thanks for checking back, though.
Jeff_M, also a frequent Swamper
EESignature
Message 7 of 7
Partha.Sarkar
in reply to: Jeff_M

OK. Thx for the confirmation !

 

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report