Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SAC Question - If no catch then target featureline

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
jmartt
421 Views, 5 Replies

SAC Question - If no catch then target featureline

jmartt
Collaborator
Collaborator

Today I have to figger-out how to code this daylight condition.

 

Capture.PNG

 

Which I've thought a bit about and I think my problem comes down to my current inability to say (code) "If there is no catch..."

How would I say that?

 

Thanks in advance, wizards.

0 Likes

SAC Question - If no catch then target featureline

Today I have to figger-out how to code this daylight condition.

 

Capture.PNG

 

Which I've thought a bit about and I think my problem comes down to my current inability to say (code) "If there is no catch..."

How would I say that?

 

Thanks in advance, wizards.

5 REPLIES 5
Message 2 of 6
KMercier_C3D
in reply to: jmartt

KMercier_C3D
Advisor
Advisor
Accepted solution

Test using an auxiliary point using the test geometry and then use a decision for AP1.isvalid=true to determine if that point can be made or not. 



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Test using an auxiliary point using the test geometry and then use a decision for AP1.isvalid=true to determine if that point can be made or not. 



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Message 3 of 6
jmartt
in reply to: KMercier_C3D

jmartt
Collaborator
Collaborator

Ah, yes. Of course! Man, if I get away from doing this stuff for a bit, I have trouble starting it again. Grazie, grazie.

 

Capture.PNG

0 Likes

Ah, yes. Of course! Man, if I get away from doing this stuff for a bit, I have trouble starting it again. Grazie, grazie.

 

Capture.PNG

Message 4 of 6
jmartt
in reply to: KMercier_C3D

jmartt
Collaborator
Collaborator

Okay, so now of course I want to move that decision to the hinge point atop the levels of strata.

I've done this before, and had redundant branches to daylight the substrata into the resultant slopes using Intersection: TwoPointsSlope.

 

But it occurs to me that there may be a more elegant way to do this. I want to have the preferred slope be an input parameter because it'll vary for different regions. But if I can redefine that parameter (when needed) within the SA, using the resultant slope of the (AP1.IsValid is not true) Decision, I could perhaps use the redefined parameter to build the substrata.

 

But I don't see a "Redefine Parameter" tool. And the "Define Variable" tool doesn't have Slope as an option.

 

If this isn't possible, I can still get it done with two branches. I just thought if it is possible, I'd save myself untold hours of redundant building of layers.

 

DOC.jpg

0 Likes

Okay, so now of course I want to move that decision to the hinge point atop the levels of strata.

I've done this before, and had redundant branches to daylight the substrata into the resultant slopes using Intersection: TwoPointsSlope.

 

But it occurs to me that there may be a more elegant way to do this. I want to have the preferred slope be an input parameter because it'll vary for different regions. But if I can redefine that parameter (when needed) within the SA, using the resultant slope of the (AP1.IsValid is not true) Decision, I could perhaps use the redefined parameter to build the substrata.

 

But I don't see a "Redefine Parameter" tool. And the "Define Variable" tool doesn't have Slope as an option.

 

If this isn't possible, I can still get it done with two branches. I just thought if it is possible, I'd save myself untold hours of redundant building of layers.

 

DOC.jpg

Message 5 of 6
KMercier_C3D
in reply to: jmartt

KMercier_C3D
Advisor
Advisor

The two things you want to use in your Toolbox are: 

 

Define Variable which creates a variable that behaves just like any of your input parameters. You can even pass an input parameter to the variable. 

 

Set Variable Value this allows you to redefine a previously defined variable. Often done in decisions just like you are thinking



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

The two things you want to use in your Toolbox are: 

 

Define Variable which creates a variable that behaves just like any of your input parameters. You can even pass an input parameter to the variable. 

 

Set Variable Value this allows you to redefine a previously defined variable. Often done in decisions just like you are thinking



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Tags (2)
Message 6 of 6
jmartt
in reply to: KMercier_C3D

jmartt
Collaborator
Collaborator

@KMercier_C3D, Thank you very much indeed for your help yesterday. I was able to get a SA that works for me. (I've noticed that my "SA"'s seem to be more like full Assemblies.) 

I was having some problems with the sideslope catching on EG above the bottom of structural, which sometimes meant I wanted to opt for forcing the daylighting to the existing ditch, but quite often it would be better if I "punched-through" and found a second daylight...And then I found that sometimes I had to find a tertiary daylight, like when the 4:1 "hooked" through the existing shoulder, crossing the EG surface twice. See screenshot of a section where it is utilizing a secondary daylight.

 

Capture2.PNG

Anyway, when I attempted to do this, I couldn't get the daylight to see past the previous daylight. Like if the first daylight was called P1, and I told it to start at P1 and find daylight again, it would just find P1 again. I found that if I borrowed @Jowennl's method of .0001 and created P2, which I created from P1, cheated down the slope by .0001 and told it to daylight from P2 it worked. See screenshot.

 

Capture.PNG

 

I wonder if there's a better way of punching-through and finding multiple daylights than the one I came up with?

 

0 Likes

@KMercier_C3D, Thank you very much indeed for your help yesterday. I was able to get a SA that works for me. (I've noticed that my "SA"'s seem to be more like full Assemblies.) 

I was having some problems with the sideslope catching on EG above the bottom of structural, which sometimes meant I wanted to opt for forcing the daylighting to the existing ditch, but quite often it would be better if I "punched-through" and found a second daylight...And then I found that sometimes I had to find a tertiary daylight, like when the 4:1 "hooked" through the existing shoulder, crossing the EG surface twice. See screenshot of a section where it is utilizing a secondary daylight.

 

Capture2.PNG

Anyway, when I attempted to do this, I couldn't get the daylight to see past the previous daylight. Like if the first daylight was called P1, and I told it to start at P1 and find daylight again, it would just find P1 again. I found that if I borrowed @Jowennl's method of .0001 and created P2, which I created from P1, cheated down the slope by .0001 and told it to daylight from P2 it worked. See screenshot.

 

Capture.PNG

 

I wonder if there's a better way of punching-through and finding multiple daylights than the one I came up with?

 

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

Post to forums  

Rail Community


Autodesk Design & Make Report