Set a Site Current

Set a Site Current

Anonymous
Not applicable
3,720 Views
11 Replies
Message 1 of 12

Set a Site Current

Anonymous
Not applicable

C3D 2012

 

I have a number of Sites in my drawing.  I want to be able to set a Site current (in LISP) so that when you  create or draw a feature line, the site is set to the desired value.  I haven't seen a variable or setting for this.

 

Dave

0 Likes
3,721 Views
11 Replies
Replies (11)
Message 2 of 12

Jeff_M
Consultant
Consultant

C3D hs no concept of Current-anything. To get the functionality you desire, you could just set a lisp variable to the site you desire, then create your own Featurelineline creation command which mimics the stock command but uses th specified site. I can't think of an easier way at the moment.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 12

Anonymous
Not applicable

Yeah, that sounds more complicated than I wanted.  I think I can just do a "Move to Site" instead.  Of course I will have to account for the fact that the FL might already be on the site I want. 

 

Dave 

0 Likes
Message 4 of 12

Anonymous
Not applicable

Oh well, it looks like I can't do the "Move to Site" command and input the site name.  It has to come from the dialog box.  I see the site name is listed in the properties box, but is not editable.  Is there a way to change the site that the FL is associated with in LISP or .NET?  I can always create the FL and change the site it is on.

 

Dave

0 Likes
Message 5 of 12

Jeff_M
Consultant
Consultant

I don' think so, Dave. The Sites/Parcels/Gradings/Featurelines have been so quirky without us 'amateurs' mucking around with them, that these are the last items to get some real API stuff built for them. Especially the Site stuff. I keep dreaming that we will see some improvements on this with each release.

 

Edit - OK, so there are some new tools in the .NET API to get the Site a Featureline is on, and there is also a MoveToSite method. But these are in 2014 only.

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 6 of 12

Anonymous
Not applicable

Hi Dave -

 

Do you see any UI tools which allows us to set a Site as current ?

 

Thanks,

 

0 Likes
Message 7 of 12

Anonymous
Not applicable

No, I have not seen any UI settings for Current Site.  Keep in mind, I am in C3D 2012.

 

Dave

0 Likes
Message 8 of 12

Anonymous
Not applicable

Neither I see it in 2014 release.

 

Is it part of any workflow ? Do you see it anywhere in the user guide  / help ?

 

Thanks,

Partha

0 Likes
Message 9 of 12

Anonymous
Not applicable

I did a search in Help for "current site" with no usable results.  I have not seen it in any workflows or the user's guide.

 

Dave 

0 Likes
Message 10 of 12

Anonymous
Not applicable

I think I can explain you why 'Set current' for Site is not there.

 

In UI, when you create Site relevant objects, you see the Site selection drop down list in the UI dialog.

 

Similarly, using API, when we create objects which needs a Site refernce, we need to pass in either the SiteId or the Site name.

 

So, in the both ways using an appropriate Site object is well defined in the workflow of relevant Civil 3D objects like Parcels, Alignments etc.

 

Thanks,

Partha

0 Likes
Message 11 of 12

Anonymous
Not applicable

To set a particular site "current", create an object on that site. Then any command that is site specific (such as "quick elevation edit") will use the last site that had an object created on it. You can then, of course, delete the object if it was used only to select the current site. Enjoy!

Message 12 of 12

josh8KY32
Observer
Observer

Type Quickeditfeatureelevs in command line.

Then type Site.

Then select object on desired site.