Dear All,
I have created longitudinal section using input Marco. I am getting the following output as attached.
I want to display the vertical schematic instead of vertical geometry details on top. please guide me where shall i have to change the macro to get the vertical schematic. I am attaching the macro and input for your reference
Thanks in advance
Regards
Hari Krishna Palla
DRAW minor option 846, field 7 can be used to generate the vertical schematic from the geometry string (7=-34 or 7=-35 - two different styles are available). You will need to add the option to add this option. See the Help file for further details.
Answer Verified By: Hari Krishna Palla
Hi Mr. Marnell,
Thank you very much for reply. I got the vertical schematic. I want to display the K value instead of Radius in vertical schematic and also i want to delete the vertical geometry details which are shown in the top of LS. Please help in where i have to modify the input.
See the following link for K value https://communities.bentley.com/products/road___site_design/f/geopak-inroads-mx-openroads-forum/88091/how-to-show-k-value-in-profile-by-in-put-files
You need to amend the macro to remove the lines which draw the vertical geometry details.
Dear Mr. Marnell,
Thanks for your reply. I did not get proper solution from mention link. The following macro i have used to get vertical schematic with Radius for your reference.
#Draw Vertical Schematic Diagram &VAD&809,HTPS &VAD&846,&LG&,,V001,,&XS&,&YS&,-34,&XE&,&YE&
000 VAD Vertical schematic diagram code 000
Please help to write the macro to get he K value in vertical schematic.
Here is an example input file that shows one method to annotate the K value. Please work through it carefully so you understand what it is doing, and then amend your macro to use the technique in the macro. I could not upload the file, so I have had to paste the commands instead.
// // Some more notes on this workaround for anntating the k-value: //=========================================================================== // MX always stores the M-VALUE in the g-string, not the vertical radius and // not the k-value. // Depending on your project settings, you can report the k-value, e.g. using // REPORT,992 (string points), but the data which is stored in the g-string // is still the M-VALUE. // The MXExplorer for example will always show the m-value when you look at // the points of the g-string. // // The relations between M-value, vertical radius and k-value are as follows: // Vertical Radius = 10000 / M-value // Vertical Radius = 100 * k-value // k-value = Vertical Radius / 100 // k-value = 100 / M-value // M-value = 10000 / Vertical Radius // M-value = 100 / k-value //
//<a>-- Copy/create strings in a model to draw the profiles --</a>
// Create a dedicated model to store all required strings for the // profile drawingDELETE LSECTIONSCREATE LSECTIONS
// copy strings from the design model into the LSECTIONS modelCOPY,MX TUTORIAL DESIGN,LSECTIONS // Copy m-string, g-string and carriageway edges060,mc10060,gc10060,ce10060,ce1i //=========================================================================== // Copy the g-string a second time and modify the m-value so that the // k-value get's annotated; // This is done by using a scale transformation of dimension 8 of the // g-string (m-value) by a factor of 100; // Please note that this 2nd copy of the g-string is ONLY used for annotating // the k-values; You can't use it for annotating other vertical geometry, // because you are changing the geometry / m-value !!! 059059,1=SCAL,4=8,5=100 // this copy of 'gc10' will be automatically renamed to 'gc11'060,gc10 // reset transformation059 //===========================================================================999
// section the existing ground triangulationSECTION,TRI TUTORIAL GROUND,LSECTIONSSECTION,LSECTIONS177,mc10,tx00,ls10999
//<a>-- Create a new empty profile drawing --</a> // open a temporary drawingNEWDPF,Temp.dpw
// Delete a possibly existing drawingSUBS SYSDEL,ProfileDrawing.DPFSYSDEL,ProfileDrawing*.DWGSYSDEL,ProfileDrawing*.DGN999
// Create the new empty drawingNEWDPF,ProfileDrawing.DPF
//<a>-- Draw the profile drawing --</a> // // Because all strings are now in the LSECTIONS model, you don't need to // specify a reference model, just the LSECTIONS model is enough. // // Using this LSECTIONS model for the profile drawing has the additional // advantage that you don't modify your orginal design data when you modify // the g-string; //
DRAW,LSECTIONS
// pgae setup800,4=1,2802,5=2,1,8=2,1803,long,page,notr,4=1,7=2500,9=3,10=250804,long,3=mc10,5=0,,8=1077.941
// draw the m-string in red805,2810 826,mc10,mc10,5=0,8=1077.941
// draw the existing ground in green805,3810 826,ls10,mc10,5=0,8=1077.941 // draw the carriageway edges in yellow 805,6 810 826,ce10,mc10,5=0,8=1077.941 826,ce1i,mc10,5=0,8=1077.941
// display the g-string as a grey dashed line805,10806,10810,DASH,,,,0.1,0.1,,0.1,0.1809,VIPS826,gc10,mc10,5=0,8=1077.941
// annotate distance and gradient between VIPs // -21 - Plan distance between Adjacent Points // -23 - Percentage Gradient between Adjacent Points808,4=0.13,3,1.0809,VIPS,ONES,7=0.1 858,gc10001,&-21&m809,VIPS,ONES,4=13,7=-0.1 858,gc10,d001001,&-23&%
// draw a symbol @ VIPS805,1806,1809,VIPS863,gc10,2=2,10=0 // annotate level and chainage @ VIPS808,,n 4,,0.13,3,1809,VIPS869,gc10,d000,4=4,7=0.1,10=270808,4=0.13,3,1809,VIPS869,gc10,d001,4=3,7=0.1,10=270
// draw a symbol @ VTPS805,2806,2809,VTPS861,gc10,vertarro,4=0.4,10=270 // annotate level and chainage @ VTPS808,,n 4,,0.13,3,1809,VTPS869,gc10,d000,4=4,7=0.1,10=270808,4=0.13,3,1809,VTPS869,gc10,d001,4=3,7=0.1,10=270
// draw a symbol @ VFPS805,6806,6809,VFPS 861,gc10,vxarrow,4=0.2,10=270 // annotate level and chainage @ VFPS808,,n 4,,0.13,3,1809,VFPS 869,gc10,d000,4=4,7=0.1,10=270808,4=0.13,3,1809,VFPS 869,gc10,d001,4=3,7=0.1,10=270
// draw a symbol @ VMOS805,5806,5809,VMOS863,gc10,2=4,4=0.1,10=0 // annotate level @ VMOS808,4=0.13,3,1809,VMOS869,gc10,dc00,4=3,7=0.1,10=270
// define boxes for annotation805806808810845,,CC,DAT,,,,-7.6,,0.0,1.0845,BBL,CL ,bt01,,,,-7.6,,-1.0,1.0845,BBL,CL ,bt02,,,,-7.6,,-2.0,1.0845,BBL,CL ,bt03,,,,-7.6,,-3.0,1.0845,BBL,CL ,bt04,,,,-7.6,,-4.0,1.0845,BBL,CL ,bt05,,,,-7.6,,-5.0,1.0845,BBL,CL ,bt06,,,,-7.6,,-6.0,1.0
845,BBL,BCPL,ba01,,,,,,-1.0,1.0845,BBL,BCPL,ba02,,,,,,-2.0,1.0845,BBL,BCPL,ba03,,,,,,-3.0,1.0845,BBL,CL ,ba04,,,,,,-4.0,1.0845,BBL,CL ,ba05,,,,,,-5.0,1.0845,BBL,CC ,ba06,,,,,,-6.0,1.0
// put text into the titleboxes806,3808,,4=0.25,6=1
847,*,,bt01,,,,,,,0.0001,PROPOSED ROAD LEVEL847,*,,bt02,,,,,,,0.0001,EXISTING GROUND LEVEL847,*,,bt03,,,,,,,0.0001,VERTICAL ALIGNMENT847,*,,bt04,,,,,,10=0.0001,HORIZONTAL ALIGNMENT847,*,,bt05,,,,,,,0.0001,SUPERELEVATION (%)847,*,,bt06,,,,,,,0.0001,PROPOSED CHAINAGE
// show values/diagrams in the annotation boxes 848,mc10,,DATM,,,,-9.0847,*,,DAT,,,,,,,0.0001,LEVEL DATUM = &DATM&m
// set font for standard boxed annotation808,,,,0.13,3,1.0
// design levels805,2806,2846,mc10,mc10,ba01,10,5=0,,3,8=1077.941,10=-90
// design chainages846,mc10,,ba06,4=10,5=0,7=4,8=1077.941,10=-90
// existing ground levels805,3806,3846,ls10,mc10,ba02,,5=0,,3,8=1077.941,10=-90
// horizontal alignment diagram805,6806,6808,, 0,,0.18,2,1809,HTPS701,gc10,,ba03711,gc10,,HLIN
721,gc10,LINE,10=90721,3=tva2,4=-43001,Ls=&tva2&
721,gc10,LINE,I000,10=90721,3=tva4,4=-44001,R=&tva4&
721,gc10,LINE,I001,10=90721,3=tva5,4=-45001,Lc=&tva5&
721,gc10,LINE,10=90721,3=tva6,4=-40001,Straight L=&tva6&
731,gc10,,BOX
// add chainages at HTPS808,,n 40,,0.13,0,1809,HTPS846,gc10,mc10,ba03,5=0,7=4,8=1077.941,10=-90
// vertical alignment diagram805,5806,5808,,n 00,,0.18,0,1
701,gc10,,ba04711,gc10,,VLIN,0.1
721,gc10,,10=90721,3=grln,4=-40001,L=&grln&m
808,,n 0 ,,0.18,3,1721,gc10,,i001,10=90721,3=g,4=-23001,G=&g&%
721,gc10,,i001,10=90721,3=grrl,4=-45001,Lv=&grrl&m
//=========================================================================== // Annotate the "radius" - but because the m-value has been changed, // the value which gets annotated is the k-value, not the radius; // This is the ONLY place where you must use this copy of the g-string; // So in this example, use 'gc11' not 'gc10';701,gc11,,ba04721,gc11,LINE,I000,10=90721,3=tva7,4=-53001,K=&tva7& //===========================================================================
// add chainages at VTPS808,,n 40,,0.13,0,1809,VTPS846,gc10,mc10,ba04,5=0,7=4,8=1077.941,10=-90
// draw superelevation diagram805,6806,6808,,,,0.18,2,1.0846,SUPE,,ba05,7=-36846,mc10,ce1i,ce10
// draw some ordinates805,10810849,mc10,,vf,10,5=0,7=0.0,8=1077.941
// reset colours etc... to default values805806808810999
// Dislpay the profileDISPLAY
// Delete the temp drawingSUBS SYSDEL,Temp.DPFSYSDEL,Temp.DWGSYSDEL,Temp.DGN999
FINISH*