CREATE REPORTS-CREATE SLOPE STAKE REPORT

CREATE REPORTS-CREATE SLOPE STAKE REPORT

Anonymous
Not applicable
933 Views
10 Replies
Message 1 of 11

CREATE REPORTS-CREATE SLOPE STAKE REPORT

Anonymous
Not applicable

1.png2.pngP1.pngP2.pngHı,

How ı can do the slopes full of by grade or the grades by slope.

it uses slope if its under 50%.If ıt ıs more than or equal to 50% ,report uses by grade.I want to use full of grade or slope.

Thanks  a lot .

Saygılarımla...

0 Likes
Accepted solutions (2)
934 Views
10 Replies
Replies (10)
Message 2 of 11

tcorey
Mentor
Mentor

That report is written in .NET, so you can't open and modify, unless Autodesk were to give you the original code. I don't know if they do that for reports, but you might ask.

 

Many other reports have an xsl (style sheet), which describes how various data should be formatted. This particular report does not appear to rely on an xsl, disallowing us from making those customizations.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 3 of 11

Jeff_M
Consultant
Consultant

@tcorey wrote:

That report is written in .NET, so you can't open and modify, unless Autodesk were to give you the original code. I don't know if they do that for reports, but you might ask.

 

Many other reports have an xsl (style sheet), which describes how various data should be formatted. This particular report does not appear to rely on an xsl, disallowing us from making those customizations.


The Source code for the .NET reports has been included since c. C3D 2009 🙂 For 2019 it is found here:

C:\ProgramData\Autodesk\C3D 2019\enu\Data\Reports\Net\Source

 

It was this source code that I used to make the edits to the ParcelMapCheck report many moons ago.

Jeff_M, also a frequent Swamper
EESignature
Message 4 of 11

Jeff_M
Consultant
Consultant
Accepted solution

If you feel like modifying the report code, you would need to edit this Function in the CorridorSlopeStake_ExtractData.vb file:

   Private Shared Function GetSlopeData(ByVal curOff As Double, ByVal lastOff As Double, _
                                ByVal curElev As Double, ByVal lastElev As Double) As String
        Dim deltaX As Double
        Dim deltaY As Double
        Dim slope As Double
        Const percent2Slope As Double = 0.5
        deltaX = Math.Abs(curOff - lastOff)
        deltaY = curElev - lastElev

        If (deltaX <> 0) Then
            slope = deltaY / deltaX
            Dim roundedSlope As Double
            roundedSlope = Math.Floor(Math.Abs(slope) * 10000 + 0.5) / 10000
            If (roundedSlope < percent2Slope) Then
                GetSlopeData = slope.ToString("p") 
            Else
                GetSlopeData = "1:" + slope.ToString("0.00")
            End If
        Else
            GetSlopeData = "0.00"
        End If

    End Function

This is where the slope value gets formatted. If you wanted to have an option of one or the other, you would have to add that to the form and use the setting to determine the format.

 

Hope that helps!

Jeff_M, also a frequent Swamper
EESignature
Message 5 of 11

Anonymous
Not applicable

Hi ,

Thanks for reply.

First I thought that the slope decision  coming from 

Const percent2Slope As Double = 0.5

I changed it to zero.

Nothing changed.

Then  I changed couple of things.Nothing changed.

Then although deleted all files for coridorslopestake.Nothing changed.

How it is possible..

Thanks for help.

0 Likes
Message 6 of 11

Jeff_M
Consultant
Consultant
Accepted solution

Its not just a matter of changing the source code... You need to be editing the code in Visual Studio, then rebuilding the solution to replace the existing C3DReports.dll, then start C3D. 

Jeff_M, also a frequent Swamper
EESignature
Message 7 of 11

Anonymous
Not applicable

Hi again,

I am greatfull for your replys and helps .

Could u sent me some pıc .I rebuılded ıt.I have opened "C3DReports.sln" than changed the code .But dll file didnt change.I am not got at vb. 😕 .I dont want to break down my civil 3d.


0 Likes
Message 8 of 11

cyberflow
Advisor
Advisor

Hi @Jeff_M, these files in "C:\ProgramData\Autodesk\C3D 2019\enu\Data\Reports\Net\Source" are the ones that are used for the "Toolbox / Reports" ?

I mean, its the source files that are used to create the DLL file with all the reports in it ?

 

2019-05-22_095701.png

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 9 of 11

Jeff_M
Consultant
Consultant

@cyberflow wrote:

Hi @Jeff_M, these files in "C:\ProgramData\Autodesk\C3D 2019\enu\Data\Reports\Net\Source" are the ones that are used for the "Toolbox / Reports" ?

I mean, its the source files that are used to create the DLL file with all the reports in it ?

 

 


Yes and no. There are 2 types reports used by C3D, XSL and .NET. The .NET Reports are all located in the C3DReport.dll and the source code for those are where you show. The XSL based reports are all included in the Reports\xsl folder.

Jeff_M, also a frequent Swamper
EESignature
Message 10 of 11

cyberflow
Advisor
Advisor

Hi @Jeff_M , i noticed that after posting my question i did some exploring.

But i noticed that we can "configure" and create new reports.

Pretty cool, but, i've got 2 questions that come in mind : 

 


1) Where is the configuration for the created reports (The arborescence of "Reports" in the toolbox palette) ?
2019-05-22_130958.png

 


2) Where can i find more information about the data formatting in XSL ? 

2019-05-22_131342.png

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 11 of 11

Jeff_M
Consultant
Consultant

1. The Reports configuration is stored in the Toolbox xml file:

C:\ProgramData\Autodesk\C3D 2019\enu\Data\ToolBox\ToolBoxCfg.xml

 

2. Your guess is a good as mine. With only a few exceptions, I've avoided the XSL reports as there is little, to no, real documentation for these. That, and they are difficult, at best, for me to read. Sorry I cannot be of more help with these.

Jeff_M, also a frequent Swamper
EESignature