Author Topic: Shorten polyline without any commands (eg Lengthen Break)  (Read 1510 times)

0 Members and 1 Guest are viewing this topic.

Rod

  • Newt
  • Posts: 185
Shorten polyline without any commands (eg Lengthen Break)
« on: February 06, 2011, 04:36:41 AM »
I am looking for a function that will shorten a polyline for use inside a reactor. (So I can't use any autocad commands)
I thought I had seen this function somewhere here but now I am unable to find it.
Does anyone remember seeing this or have a copy of a similar function?

Regards Rod

"All models are wrong, some models are useful" - George Box

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Shorten polyline without any commands (eg Lengthen Break)
« Reply #1 on: February 06, 2011, 08:06:25 AM »
Rob,
It's easy enough to modify the end vertex to lengthen the pline using entmod.
But if the reactor is an object reactor called by the pline it can not be modified.
If another object called the reactor or it's a command reactor then you can modify the pline with entmod.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Rod

  • Newt
  • Posts: 185
Re: Shorten polyline without any commands (eg Lengthen Break)
« Reply #2 on: February 06, 2011, 07:36:25 PM »
Thanks CAB
another object will call the reactor.
My routine may require that the polyline endpoint is moved back to a previous segment which is not to difficult for straight lines but would also need to maintain the radius of arcs so the buldge factor would need to be taken into account. With some time I will be able to program this myself. But i was hoping to find something so that I can do some test code and see if my idea works.
"All models are wrong, some models are useful" - George Box

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Rod

  • Newt
  • Posts: 185
Re: Shorten polyline without any commands (eg Lengthen Break)
« Reply #4 on: February 06, 2011, 10:21:36 PM »
Thanks CAB i'll look though them.
"All models are wrong, some models are useful" - George Box