Jump to content

Dynamic Blocks - Trying to create a pipe hanger with variable rod length


Recommended Posts

Posted

Hi. I hope I put this in the right category!

 

     I am trying to create a pipe hanger with a variable length rod hanger. But if I use the stretch action for a dynamic block it just moves the rod. I tried the scale command but don't see how to just have the length stretch and not have it affect the diameter. (file is attached)

 

Thanks!

Clevis_Models.dwg

Posted

You can't stretch a 3D solid with the normal 'stretch' command Dynamic blocks only use ther standard 2D commands so if you can find something else that will work with stretch, but you will need to try different objects (maybe an extrusion - I really have no idea because I only use LT) otherwise you are out of luck, this is NOT what Dynamic blocks were designed to do.

Or look for a workaround eg. use overlapping solids and just stretch (move) one of them over the other to appear as a stretch.

Posted

Thank you. I appreciate the feedback.

 

  I am using Plant3D and know that their pipe hangers utilize a dynamic rod length. I am not sure how they do it.

 

  Thank you,

       eric 

Posted

If you drew the hanger from a number of objects say 3 blocks and a circle with a thickness you could change the length of the rod and say group the result or make them a new nested block. Draw say thickness 100, elev 0, circle 10 have a look at it in 3d.

Posted

@Eric_M If you have a working example from Plant3D then post it here we should be able to see how that one works.

Posted

I have found out through an AutoCAD forum that Plant3D uses the Python programming language ( I don't know the first thing about it.)

 

I appreciate the feedback! 

thanks!

Posted

One approach may to consider the hanger as three parts, a block for the top (yellow), a block for the bottom (green) and a cylinder (red).

A simple vlisp program could place the two blocks and create the cylinder from 3 points (2 for the end ponts and one for the orientation) or some similar input.  How do you usually specify the location of a hanger?

image.png.9f4eaca51e77d1b4b3616dda0bf8553d.png

Posted

If you entget a solid in this case a circle rad 5, 0,0,100 extruded 100 high, the only thing that made sense was these 2 assoc's 

(1 . "plane-surface $-1 -1 $-1 0 0 200 0 0 1 1 0 0 forward_v I I I I #") is it top

(1 . "plane-surface $-1 -1 $-1 0 0 100 0 0 1 1 0 0 forward_v I I I I #") is it bottom

(1 . "point $-1 -1 $-1 5 0 100 #") is this rad and height ?

 

This maybe the big hint "Open Design Alliance ACIS Builder" maybe there is a clue about codes. 

 

I think Lrm suggestion 3 blocks is simplest the rod can be stretched very simply as a 1 unit high block using scale.

 

PS Have a look at acisout and acisin. Its a text file made some changes and acsin and it doubled in height but no top and bottom may play again.

Posted

Try this version, I just made a copy of the rod and used an 'array' on the copy which gives it the appearance of stretching. You may see a tiny gap every so often in the rod, I set the array distance to as close as possible to the length of the rod 4 71/128" (but that isn't the exact size) I'm more used to using metric sizes and being an LT user I don't have the commands available to edit the solid to a more user friendly length. Hopefully this will get you started though.

Clevis_Models(1).dwg

Posted (edited)

Looking on a another forum there may be a way of changing rod length and its pretty straight forward. Solidedit Face Extrude choose top circle/face of rod then Enter and enter a change value.

 

So if 100 now enter 100 will be 200, enter -25 will be 75 long.

 

Ok now the tricky bit pick the top of the rod ? Hmm (1 . "plane-surface $-1 -1 $-1 0 0 200 0 0 1 1 0 0 forward_v I I I I #") is it top

 

Added 4 to rod but its not a block anymore.

 

image.png.29d3520dcd67dacb18c1a839cd8806ba.png

Edited by BIGAL
Posted
On 12/28/2021 at 2:47 PM, Eric_M said:

Thank you. I appreciate the feedback.

 

  I am using Plant3D and know that their pipe hangers utilize a dynamic rod length. I am not sure how they do it.

 

  Thank you,

       eric 

 

Why not use the Plant 3D hangers?

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...