CoCreate User Forum

CoCreate User Forum (https://www.cocreateusers.org/forum/index.php)
-   Customization (https://www.cocreateusers.org/forum/forumdisplay.php?f=12)
-   -   Position - Align Axis in Lisp - how? (https://www.cocreateusers.org/forum/showthread.php?t=8220)

jkramer 09-04-2015 12:04 AM

Position - Align Axis in Lisp - how?
 
Hi,

I'm trying to Position a part with Align Axis in Lisp, but whatever I try, it doesn't work... This is the most logical syntax I could come up with:
Code:

        (sd-call-cmds(pos_dynamic :objects-by-selection (sd-pathname-to-obj "/Isolated_Torus")  :mate-align-method :on :align-axis :on  cyl1  Adjface1 cyl2 Adjface2))
cyl1 and cyl2 are cylindrical faces on the moving part, Adjface1 and Adjface2 are cylindrical faces on a reference part.
I also tried the old position_pa command, but also with no success. Translations work fine, but Align Axis is the problem.
Any clues?
Thanks!!
Jaap

Mike_Maenpaa 10-26-2015 08:25 AM

Re: Position - Align Axis in Lisp - how?
 
Hi Jaap,

Did you get this solved?

I may need to doing something like this also.
Take a look in the Help file at MATE_ALIGN_PART_SA and see if that helps.

Mike

rvn 11-05-2015 11:00 PM

Re: Position - Align Axis in Lisp - how?
 
I'm trying to use this command
Code:

(sd-call-cmds (POSITION_PA (sd-inq-parent-obj face1) (POSITION_PA_SA :MATE_ALIGN :MATE_FACES face1 face6)))
But I can't get it to work. Is there anybody who has some more experience with this command?


All times are GMT -8. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.