Custom Entity Stretch Command

Custom Entity Stretch Command

Anonymous
Not applicable
770 Views
1 Reply
Message 1 of 2

Custom Entity Stretch Command

Anonymous
Not applicable

Hello,

 

My goal is to create a custom stretch command which almost does the same thing as the built-in AutoCAD stretch. The difference being it will communicate the comitted result to my SQL database. Take a look at my example:

 

stretch.png

 

When the user will click on the stretch button, they will select either the infeed or discharge portion of the centerline. Personally, I believe choosing the centerline as a pickpoint will be an easier task to manage. They would then proceed to lengthen/shorten the centerline. Once the user commits, I will redraw the countour polyline as well as the green symbols that go with it.

 

Ideally, I'd like to provide a jig of the whole thing. I tried checking for custom stretch commands and didn't find anything...

 

Is what I'm wanting to do even possible?

Alex

0 Likes
771 Views
1 Reply
Reply (1)
Message 2 of 2

BKSpurgeon
Collaborator
Collaborator

Perhaps a better way would be to utlise a dynamic block to stretch. Once that is complete you call a method to write to your database the length that is changed.

 

 

0 Likes