Author Topic: Replicate Autoconstrain command in AutoLISP  (Read 1167 times)

0 Members and 1 Guest are viewing this topic.

jtm2020hyo

  • Newt
  • Posts: 198
Replicate Autoconstrain command in AutoLISP
« on: January 23, 2021, 02:34:44 PM »

Does someone know if exists any AutoLISP routine to do exactly what _Autoconstrain command does? if yes, please share the link.

Applications:

A simple application is in AutoCAD architecture and MEP, here exist objects has walls and columns, actually us possible use manual constraints but the autoconstrain command do nothing.

 

... And a autoconstrain.LSP could be create then could be recicled for multiple applications in different objects, included in Civil 3D or maybe Advanced Steel.

d2010

  • Bull Frog
  • Posts: 326
Re: Replicate Autoconstrain command in AutoLISP
« Reply #1 on: January 27, 2021, 09:39:17 AM »
applications in different objects, included in Civil 3D or maybe Advanced Steel.

Very Easy.
a)You open the file jtm2020hyo.dwg.
b)You set color RED for one-object.
c)You clone one-object. (or duplicate)
d)You set color GREEN for last object c)
e).You develope a programe.lsp (compare objC and objA)

jtm2020hyo

  • Newt
  • Posts: 198
Re: Replicate Autoconstrain command in AutoLISP
« Reply #2 on: January 28, 2021, 03:32:24 AM »
Sound good but no idea how start, I never hear something like that.