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: 

Featureline.MoveToSite() woes.....

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Jeff_M
434 Views, 2 Replies

Featureline.MoveToSite() woes.....

In an attempt to come up with a solution to Joan's need for a GetSplitCurves() for Featurelines, I have uncovered a quirk with the MoveToSite method. In order for new SplitFeaturelines to not be have their elevations affected by the original Featurline I create a Temporary Site which I move the original featurline to. I then edit the elevations of the new featurelines. All of this is working well, however when I use the MoveToSite() a second time to return the original featureline to the original Site I get a system argument exception when passing the original Site.ObjectId. Code to follow....

Jeff_M, also a frequent Swamper
EESignature
2 REPLIES 2
Message 2 of 3
Jeff_M
in reply to: Jeff_M

No code...found a workaround by not using sites at all. First erase the f/l then unerase it after editing the new f/l's.
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 3
Partha.Sarkar
in reply to: Jeff_M

HI Jeff,

 

Looks like you have found out a work-around. Let me know if you need any further help here.

 

Thanks,

Partha



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