Jump to content

Recommended Posts

Posted

Does anyone know if it is possible to create an action on a single-line dynamic block that retains the original insertion point but moves the endpoint of the line using X and Y coordinates?

Posted

It should be possible if you are talking about relative coords of the moving endpoint -meaning relative to the block insertion point.

For absolute coords... maybe with some programming.

Posted
It should be possible if you are talking about relative coords of the moving endpoint -meaning relative to the block insertion point.

For absolute coords... maybe with some programming.

 

I'm trying to move it using VBA, so that part is covered. Point is that I can't get the endpoint of the line in a variable. If you know how to do it with relative coords I can try to find out how to acces it with VBA.

Posted

Sorry, I am not familiar with the VBA. I will move this thread in the dedicated forum.

Posted
Sorry, I am not familiar with the VBA. I will move this thread in the dedicated forum.

 

If you can tell me how to create an action in a dynamic block that can move the endpoint of a line, I think I can manage.

Posted

I gave it a quick try (see attach)

Is this what you mean?

The only thing you have to do is to assign a basepoint parameter to the start of the line and a point parameter to the end of the line, then doubleclick the point parameter and assign a stretch to it.

 

(the attachement is a block > insert)

line.dwg

Posted
I gave it a quick try (see attach)

Is this what you mean?

The only thing you have to do is to assign a basepoint parameter to the start of the line and a point parameter to the end of the line, then doubleclick the point parameter and assign a stretch to it.

 

(the attachement is a block > insert)

 

You're the greatest! This is exactly what I was looking for.

 

Maybe a bit too soon... The line changes perfectly, but the attachted text attributes don't stay aligned and on the same relative position on the line. Can this also be done by creating a basepoint for the text attibutes or something?

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