Looking For System Variable / Setting

Looking For System Variable / Setting

My_Civil_3D
Advocate Advocate
1,329 Views
16 Replies
Message 1 of 17

Looking For System Variable / Setting

My_Civil_3D
Advocate
Advocate

Hi Guys i am looking for a System Variable or Setting to set the Default to the "offsetfeature" command to use slope by default. every time i restart civil 3D it defaults back to elevation.

 

My_Civil_3D_0-1717958385026.png

 

Civil 3D Certified Professional
0 Likes
1,330 Views
16 Replies
Replies (16)
Message 2 of 17

chriscowgill7373
Advisor
Advisor

I dont think that this would be a system variable. It may be available within the Toolspace, Settings - under one of the commands.  I'm not seeing it though in the places I would think to look.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 3 of 17

My_Civil_3D
Advocate
Advocate

also tried to find it, also stuck. I went through all the Settings and also checked through the list of Civil 3D variables. Not Sure if it might not be accessible

Civil 3D Certified Professional
0 Likes
Message 4 of 17

chriscowgill7373
Advisor
Advisor

I dont think it is possible. You could try checking out the ideas forum and see if it has been suggested previously, or if not, adding it.  It would be nice if it remembered your last option across sessions.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 5 of 17

brian.strandberg
Advisor
Advisor

Best approach would be to have it in edit command settings, I also don't see it.  These things are not very well documented, it would help if in the help it said where to adjust the defaults.

 

You can try this lisp code I wrote.  This bypasses the "Through" option for the feature line offset, but it worked for me in limited testing.  Please reach out if I can help.

 

(defun c:foff (/ )
(vl-load-com)
(setq ofd (getdist "Offset Distance: "))
(setq ofo (ssget "_:S+."))
(vl-cmdf "offsetfeature" ofd ofo  "S")
)
 
Thanks.
Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0
0 Likes
Message 6 of 17

My_Civil_3D
Advocate
Advocate

I Tested it and still askes the question to select grade and slope. the other issue is that when this command is launched for the first time after civil 3D is restarted it defaults back again, once you run the command once with slope it keeps that then my lisp file works as expected.

Civil 3D Certified Professional
0 Likes
Message 7 of 17

chriscowgill7373
Advisor
Advisor

You could create a system variable and store it, then look for it when using the LISP routine.  I've done this a few times where I write to the registry some variable that I can recall back later on.  Since you want this to work across drawings, ta system variable makes more sense than storing it as XDATA within the file you are working on.

VL-REGISTRY-WRITE and VL-REGISTRY-READ could assist with this.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 8 of 17

My_Civil_3D
Advocate
Advocate

the question is how will you store the variable and call it. because if you call it the first time it will use slope, but when you call it again after it gives an error due to already being active, how will you check if its active?

Civil 3D Certified Professional
0 Likes
Message 9 of 17

ChicagoLooper
Mentor
Mentor

@My_Civil_3D 

There's isn't a variable known as OFFSETFEATURE.

 

You may go here:

101.png

 

In the search box. enter *OFF* to search for system variables. The asterisk (*) is a wildcard which you may insert before and after your search item.

102.PNG

 

You may also refine your search using other strings such as: 

*SET*

*FEATURE*

*OFFSET*

*OFFSETFEATURE*

 

Chicagolooper

EESignature

0 Likes
Message 10 of 17

My_Civil_3D
Advocate
Advocate

I Went Through the full list off all the System variables, took me a good 2 hours, There isn't a system variable linked to this, which is really weird because if you change it it keeps that particular setting as default for that drawing.

Civil 3D Certified Professional
0 Likes
Message 11 of 17

ChicagoLooper
Mentor
Mentor

@My_Civil_3D 

Two hours?!

 

You've overlooked the 1st sentence in post #9. If there IS a variable, the images in post 9 would clearly display it. Those images, however, indicate the variable you are desperately seeking, OFFSETFEATURE, does NOT exist.

 

Chicagolooper

EESignature

0 Likes
Message 12 of 17

brian.strandberg
Advisor
Advisor

The 2nd message on this thread nailed it, Civil 3d doesn't typically do command modifiers through system variables.  These settings would be under Toolspace Settings Commands.  I looked for about 15 minutes and couldn't find a setting for this.  This is something that could be suggested in the ideas forum. 

 

This is typically how these are setup.  If I look at Addlinebetweenpoints - you can see the settings for default styles.  This isn't what you needed, but I can't find a setting for that, that is why I did that bit of code in a previous reply.

brianstrandberg_0-1718636953057.png

 

Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0
Message 13 of 17

My_Civil_3D
Advocate
Advocate

That is not the variable i am looking for. 

Civil 3D Certified Professional
0 Likes
Message 14 of 17

ChicagoLooper
Mentor
Mentor

@My_Civil_3D wrote

<<…i am looking for a System Variable or Setting to set the Default to the "offsetfeature"…>>

 

Huh?

Chicagolooper

EESignature

0 Likes
Message 15 of 17

My_Civil_3D
Advocate
Advocate

Maybe read the full post and not just the first section. 

Civil 3D Certified Professional
0 Likes
Message 16 of 17

brian.strandberg
Advisor
Advisor

I would post in the Ideas forum and request that they add a setting for this.  I haven't found one, and while I can miss something I don't think @ChicagoLooper @chriscowgill7373 and myself would all miss it if it was there.

Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0
0 Likes
Message 17 of 17

ChicagoLooper
Mentor
Mentor

@My_Civil_3D  Wrote in opening Post #1:

<<Hi Guys i am looking for a System Variable or Setting to set the Default to the "offsetfeature" command...>>

 

So you are NOT looking for a system variable?

And you are NOT looking for anything related to OFFSETFEATURE?

 

Chicagolooper

EESignature

0 Likes