Author Topic: AutoLisp kinematics with dim constraint?  (Read 7178 times)

0 Members and 1 Guest are viewing this topic.

felixs

  • Guest
AutoLisp kinematics with dim constraint?
« on: May 19, 2011, 05:25:52 AM »
Hello,

Is it possible to make a program to do a kinematic analysis with dimensional constraints?
I made a Lisp program, but is it possible to automate this process like a driven dimension
in Inventor?


Thanks.
« Last Edit: May 19, 2011, 05:43:49 AM by felixs »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: AutoLisp kinematics with dim constraint?
« Reply #1 on: May 19, 2011, 08:23:36 AM »
Welcome to the Swamp.

I've never used Inventor so I don't know what "driven dimensions" are.
Nor do I understand by your explanation what exactly you are trying to do but most things are
possible with LISP but not all things. :-)


Would you explain further.
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.

felixs

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #2 on: May 19, 2011, 10:21:14 AM »
Use Drive Constraint on the context menu to simulate mechanical motion by driving a constraint through a sequence of steps. The Drive Constraint command is limited to one constraint, but you can drive additional constraints by using Equations to create algebraic relationships between constraints.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: AutoLisp kinematics with dim constraint?
« Reply #3 on: May 19, 2011, 12:02:53 PM »
Hello,

Is it possible to make a program to do a kinematic analysis with dimensional constraints?
I made a Lisp program, but is it possible to automate this process like a driven dimension
in Inventor?
Thanks.

Yes. BUT not a trivial routine.  8-)
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.

felixs

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #4 on: May 22, 2011, 06:59:16 PM »
Yes. BUT not a trivial routine.  8-)

Something for AutoCAD Wish List?

HofCAD

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #5 on: May 26, 2011, 05:07:11 AM »
Yes. BUT not a trivial routine.  8-)

Something for AutoCAD Wish List?
Felixs,

Test HofDriven.lsp with command Driven.
1) Open a drawing from DrivenDwgs.zip.
2) Load the program HofDriven.lsp.
3) Read in the Layout 'Info for HofDriven' the preferable settings.
4) Give in Modelspace the command DRIVEN
5) Give in your settings and click on OK
6) Select the driven dimensional constraint
7) See the moving mechanical components

Regards, HofCAD CSI.
« Last Edit: May 26, 2011, 05:13:41 AM by HofCAD »

kruuger

  • Swamp Rat
  • Posts: 637
Re: AutoLisp kinematics with dim constraint?
« Reply #6 on: May 27, 2011, 06:22:45 PM »
holy cow :-o HofCAD thats really cool  :-)
kruger

Harrie

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #7 on: May 29, 2011, 02:27:32 PM »
Really wonderful idea. I like it.

Perhaps you can chance:
1) Oscilating in Oscillating.
2) ‘Non Oscillating’ in Rotating.
3) Gray out the ‘End Value’ when ‘Non Oscillating’ is chosen.
4) Chance the default value for ‘Steps’ in dependence of the movement.
5) Check of the input values.
« Last Edit: May 29, 2011, 02:32:44 PM by Harrie »

HofCAD

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #8 on: June 03, 2011, 10:05:23 AM »
Really wonderful idea. I like it.

Perhaps you can chance:
1) Oscilating in Oscillating.
2) ‘Non Oscillating’ in Rotating.
3) Gray out the ‘End Value’ when ‘Non Oscillating’ is chosen.
4) Chance the default value for ‘Steps’ in dependence of the movement.
5) Check of the input values.
Try the new HofDriven.lsp
Sorry, there is still no check of the input values.

Regards, HofCAD CSI.

felixs

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #9 on: June 18, 2011, 06:24:27 PM »

Try the new HofDriven.lsp
Sorry, there is still no check of the input values.

Regards, HofCAD CSI.
Thanks,

More ideas?

Serge J. Gianolla

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #10 on: June 18, 2011, 06:54:57 PM »
Holy cow! :-o
Frak, this is good Hof.

You can zoom, pan and animation still goes on!
« Last Edit: June 18, 2011, 07:06:03 PM by Serge J. Gianolla »

HofCAD

  • Guest
Re: AutoLisp kinematics with dim constraint?
« Reply #11 on: June 21, 2011, 12:04:55 PM »
Thanks,

More ideas?

You can't constrain 3D Solids, but it is possible with block references and Attribs.
See as example 3D_Hello.dwg
1) Open the drawing 3D_Hello.dwg
2) Load the program HofDriven.lsp.
3) Read in the Layout 'Info for HofDriven' the preferable settings.
4) Give in Modelspace the command DRIVEN
5) Give in your settings and click on OK
6) Select the driven dimensional constraint
7) See the moving 3D Text

Regards, HofCAD CSI.
« Last Edit: September 22, 2011, 02:55:29 AM by HofCAD »