Jump to content

Help Creating a Lisp to Add Rock Bolts to a Tunnel Body


Recommended Posts

Posted

This is my first post here, and I appreciate your help. I’m currently working on a tunnel project. I’ve created the tunnel corridor in Civil 3D and also generated the tunnel profile in Leica Infinity, which I then exported as a DBX file.

 

The only part I need help with is adding rock bolts to the tunnel body (mostly perpendicular, as shown in the photo below).

 

image.png.bf4e9827b6563e0d975019d264dddaaa.png

 

These bolts are positioned along chainages defined by the alignment and follow a staggered pattern.

 

image.png.b95ab59555e6e1e43defccf69492d7af.png

 

 

I searched online and found a Dynamo script (only screenshots of the script). I tried replicating it in Dynamo, but it didn’t work for me.

 

The Lisp should allow me to:

-Choose the corridor or 3D model.

-Specify the alignment.

-Define the bolt pattern (centered / staggered).

-Set the spacing between bolts.

-Input the length of the bolts.

-Select the layer for all bolts.

-Export the lines and name them based on their corresponding chainage and the number of lines in each chainage, to be shown in Leica TS and able to select the line by name.

 

I understand this is not an easy task, and I truly appreciate your support!

Posted

Hello. Any answer, please.

Posted

Can you attached example drawing

 

Posted

Its not an easy task and has a very technical answer, so may need some extensive testing, it is very much a 3d answer, You can get the perpendicular direction of a point from say a pline then draw the rock bolt, pushing the Z value each time. I am not sure that need a solid rather just the extrusion end shape. 

 

It may be a pay for task.

 

Can you post a sample dwg and some idea about the rock bolt spacing.

 

Had a quick go at it.

image.png.2161280ee21d64713fd5065191224123.png

Posted

C3D_Drawing2.dwg

Hello Bigal, 

 

Thank you for your response.

 

I am currently working on a tunnel corridor and need the rock bolts to be positioned on the body of the corridor. While I can convert the corridor into a 3D solid and manually place the bolts, I am looking for an automated solution due to the large number of bolts required.

 

I have attached a file that includes rock bolts created by someone else for a different project (unfortunately, I have no contact with them) and a 3DFace representation of the tunnel. I need a solution that replicates the rock bolts exactly as shown in the file, but applied to the tunnel corridor I’m using.

 

I am willing to pay for a solution that meets these requirements, and we can discuss all the details further if you’re open to it.

 

Thank you!

Posted
On 1/18/2025 at 1:56 AM, hosneyalaa said:

Can you attached example drawing

 

Hi Hosneyalaa,

Please find my example in my new post to Bigal above

Posted
5 hours ago, Matine said:

Please find my example in my new post to Bigal above

PLS  

attached example CIVIL  drawing 

 

 

Posted

If you zoom in close then can see that a point is on a 3d face. So there will be formula for a 90 to a face or use ucs in some way. 

image.png.aae4ce2d090fac8159e7841f5313039d.png

 

 

I really have no idea where to start as I used a simple shape so just used a move Z, working out 3d points on the faces is where I stopped, so I don't think I can help you, will email some one I know maybe he can help. The issue is when the 3dfaces make a non parrallel shape ie one end is different to the other. 

 

Posted
19 hours ago, hosneyalaa said:

PLS  

attached example CIVIL  drawing 

 

 

ACAD-Drawing2.dwg

Hi hosneyalaa,

I have attached the cad file. Thank you!

Posted
11 hours ago, BIGAL said:

If you zoom in close then can see that a point is on a 3d face. So there will be formula for a 90 to a face or use ucs in some way. 

image.png.aae4ce2d090fac8159e7841f5313039d.png

 

 

I really have no idea where to start as I used a simple shape so just used a move Z, working out 3d points on the faces is where I stopped, so I don't think I can help you, will email some one I know maybe he can help. The issue is when the 3dfaces make a non parrallel shape ie one end is different to the other. 

 

Hi Bigal,

Thank you so much, appreciate it!

Posted
10 hours ago, Matine said:

I have attached the cad file. Thank you!

USE Dynamo  IN CIVIL  drawing 

 

image.thumb.png.29158a6dd492ee7f2decff66edac0841.png

 

image.png.2bae6605ac51752dbb02ef35cbd4b66b.png

Posted
10 hours ago, hosneyalaa said:

USE Dynamo  IN CIVIL  drawing 

 

image.thumb.png.29158a6dd492ee7f2decff66edac0841.png

 

image.png.2bae6605ac51752dbb02ef35cbd4b66b.png

Hello hosneyalaa,

Can you please attach the Dynamo images with high resolution. Thank you!

Posted
10 hours ago, hosneyalaa said:

image.thumb.png.eeb161b6465c70d4c3a6080228b2ad98.png

If you could please attach the dwg example and Dynamo file. I appreciate this. Thanks!

  • 3 weeks later...
Posted (edited)
On 1/23/2025 at 12:12 AM, hosneyalaa said:

 

@hosneyalaa thank you Hosneyalaa!, and sorry for the delaying of my reply. I tried it but found that the lines are not perpendicular to the 3d object. Also, can I start those lines from a specific range of chainage (e.g. CH +15.00 to CH +30.00), control how many in raw, the second line should be in Staggered(photo attached), last thing  to add all these lines to a layer (each raw in a layer with the name of the chainage that the line on it). a gain thank you so muchi

image.thumb.png.51fc1bd0100387605b4d3caee57a2b3e.png

image.png.afd7a5c14ab9c7d8d1dbf502dde59440.png

Edited by Matine

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...